IOnMethodBoundaryAspect Interface
Use OverrideMethodAspect and implement your own try
/catch
/finally
block.
Namespace: PostSharp.Aspects
Assembly: Metalama.Migration.dll
Syntax
public interface IOnMethodBoundaryAspect : IMethodLevelAspect, IAspect
Methods
Name | Description |
---|---|
OnEntry(MethodExecutionArgs) | Implement OverrideMethod() and add this logic before the call to meta.Proceed(). |
OnException(MethodExecutionArgs) | Implement OverrideMethod(), call meta.Proceed() in a |
OnExit(MethodExecutionArgs) | Implement OverrideMethod(), call meta.Proceed() in a |
OnSuccess(MethodExecutionArgs) | Implement OverrideMethod(), call meta.Proceed() in a |