Open sandboxFocus

Interface IOnMethodBoundaryAspect

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, 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 try/catch block, and add this logic to the catch block.

OnExit(MethodExecutionArgs)

Implement OverrideMethod(), call meta.Proceed() in a try/finally block, and add this logic to the finally block.

OnSuccess(MethodExecutionArgs)

Implement OverrideMethod(), call meta.Proceed() in a try/catch block, and add this logic to the end of the try block.

Extension Methods