C# Class Aspects.Logging.LogAttribute

Inheritance: OnMethodBoundaryAspect
Afficher le fichier Open project: vnvizitiu/AOP

Private Properties

Свойство Type Description
GetLoggingInfo LoggingInfo

Méthodes publiques

Méthode 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

Méthode Description
GetLoggingInfo ( ) : LoggingInfo

Gets the logging information.

Method Details

CompileTimeInitialize() public méthode

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.
Résultat void

CompileTimeValidate() public méthode

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
Résultat bool

OnEntry() public méthode

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 .
Résultat void

OnException() public méthode

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.
Résultat void

OnExit() public méthode

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.
Résultat void

OnSuccess() public méthode

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.
Résultat void

RuntimeInitialize() public méthode

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