Method | Description | |
---|---|---|
DelegateInterceptor ( Action |
Initializes a new instance of the DelegateInterceptor class.
|
|
Intercept ( IInvocation invocation ) : void |
Intercepts the specified invocation.
|
Method | Description | |
---|---|---|
Initialize ( Action |
public DelegateInterceptor ( Action |
||
after | Action |
/// The action to execute after proceeding. This action will not run /// if the invocation throws an exception. /// |
before | Action |
The action to execute before proceeding. |
condition | bool>.Func |
/// The interception condition. If this condition returns |
@finally | Action |
|
onError | Func |
The function to execute when an error occurs. |
proceed | Action |
The action to execute. Only set this if proceeding as normal is not desired. |
return | System |
public Intercept ( IInvocation invocation ) : void | ||
invocation | IInvocation | The invocation. |
return | void |