Use OverrideMethodAspect and implement your own try/catch/finally block.
Namespace: PostSharp.Aspects
Assembly: Metalama.Migration.dll
Syntax
[Obsolete("Use 'OverrideMethodAspect' and implement your own <c>try</c>/<c>catch</c>/<c>finally</c> block.", false)]
public interface IOnMethodBoundaryAspect : IMethodLevelAspect, IAspectMethods
| 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 |