C# 클래스 Aspects.Logging.LogAttribute

상속: OnMethodBoundaryAspect
파일 보기 프로젝트 열기: vnvizitiu/AOP

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