C# Class Aspects.Logging.LogAttribute

Inheritance: OnMethodBoundaryAspect
Datei anzeigen Open project: vnvizitiu/AOP

Private Properties

Property Type Description
GetLoggingInfo LoggingInfo

Public Methods

Method Description
CompileTimeInitialize ( MethodBase method, AspectInfo aspectInfo ) : void

Method invoked at build time to initialize the instance fields of the current aspect. This method is invoked before any other build-time method.

CompileTimeValidate ( MethodBase method ) : bool

Method invoked at build time to ensure that the aspect has been applied to the right target.

OnEntry ( MethodExecutionArgs args ) : void

Method executed before the body of methods to which this aspect is applied.

OnException ( MethodExecutionArgs args ) : void

Method executed after the body of methods to which this aspect is applied, in case that the method resulted with an exception.

OnExit ( MethodExecutionArgs args ) : void

Method executed after the body of methods to which this aspect is applied, even when the method exists with an exception (this method is invoked from the finally block).

OnSuccess ( MethodExecutionArgs args ) : void

Method executed after the body of methods to which this aspect is applied, but only when the method successfully returns (i.e. when no exception flies out the method.).

RuntimeInitialize ( MethodBase method ) : void

Initializes the current aspect.

Private Methods

Method Description
GetLoggingInfo ( ) : LoggingInfo

Gets the logging information.

Method Details

CompileTimeInitialize() public method

Method invoked at build time to initialize the instance fields of the current aspect. This method is invoked before any other build-time method.
public CompileTimeInitialize ( MethodBase method, AspectInfo aspectInfo ) : void
method System.Reflection.MethodBase Method to which the current aspect is applied
aspectInfo AspectInfo Reserved for future usage.
return void

CompileTimeValidate() public method

Method invoked at build time to ensure that the aspect has been applied to the right target.
public CompileTimeValidate ( MethodBase method ) : bool
method System.Reflection.MethodBase Method to which the aspect has been applied
return bool

OnEntry() public method

Method executed before the body of methods to which this aspect is applied.
public OnEntry ( MethodExecutionArgs args ) : void
args MethodExecutionArgs Event arguments specifying which method /// is being executed, which are its arguments, and how should the execution continue /// after the execution of .
return void

OnException() public method

Method executed after the body of methods to which this aspect is applied, in case that the method resulted with an exception.
args
public OnException ( MethodExecutionArgs args ) : void
args MethodExecutionArgs Event arguments specifying which method /// is being executed and which are its arguments.
return void

OnExit() public method

Method executed after the body of methods to which this aspect is applied, even when the method exists with an exception (this method is invoked from the finally block).
args
public OnExit ( MethodExecutionArgs args ) : void
args MethodExecutionArgs Event arguments specifying which method /// is being executed and which are its arguments.
return void

OnSuccess() public method

Method executed after the body of methods to which this aspect is applied, but only when the method successfully returns (i.e. when no exception flies out the method.).
args
public OnSuccess ( MethodExecutionArgs args ) : void
args MethodExecutionArgs Event arguments specifying which method /// is being executed and which are its arguments.
return void

RuntimeInitialize() public method

Initializes the current aspect.
public RuntimeInitialize ( MethodBase method ) : void
method System.Reflection.MethodBase Method to which the current aspect is applied.
return void