C# Class Shaspect.BaseAspectAttribute

Inheritance: System.Attribute
Show file Open project: mshmelev/Shaspect

Public Methods

Method Description
Initialize ( MethodBase method ) : void

Called once at application startup for every method the aspect is applied for.

OnEntry ( MethodExecInfo methodExecInfo ) : void

Called on target method is starting execution

OnException ( MethodExecInfo methodExecInfo ) : void

Called on unhandled exception occured in target method.

OnExit ( MethodExecInfo methodExecInfo ) : void

Called on target method finished execution either successfully or with exception. Called after OnSuccess and OnException

OnSuccess ( MethodExecInfo methodExecInfo ) : void

Called on target method successfully finished execution.

Method Details

Initialize() public method

Called once at application startup for every method the aspect is applied for.
public Initialize ( MethodBase method ) : void
method System.Reflection.MethodBase
return void

OnEntry() public method

Called on target method is starting execution
public OnEntry ( MethodExecInfo methodExecInfo ) : void
methodExecInfo MethodExecInfo
return void

OnException() public method

Called on unhandled exception occured in target method.
public OnException ( MethodExecInfo methodExecInfo ) : void
methodExecInfo MethodExecInfo
return void

OnExit() public method

Called on target method finished execution either successfully or with exception. Called after OnSuccess and OnException
public OnExit ( MethodExecInfo methodExecInfo ) : void
methodExecInfo MethodExecInfo
return void

OnSuccess() public method

Called on target method successfully finished execution.
public OnSuccess ( MethodExecInfo methodExecInfo ) : void
methodExecInfo MethodExecInfo
return void