C# Класс Aspects.Logging.LogAttribute

Наследование: OnMethodBoundaryAspect
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
GetLoggingInfo LoggingInfo

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
GetLoggingInfo ( ) : LoggingInfo

Gets the logging information.

Описание методов

CompileTimeInitialize() публичный Метод

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.
Результат void

CompileTimeValidate() публичный Метод

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
Результат bool

OnEntry() публичный Метод

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 .
Результат void

OnException() публичный Метод

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.
Результат void

OnExit() публичный Метод

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.
Результат void

OnSuccess() публичный Метод

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.
Результат void

RuntimeInitialize() публичный Метод

Initializes the current aspect.
public RuntimeInitialize ( MethodBase method ) : void
method System.Reflection.MethodBase Method to which the current aspect is applied.
Результат void