PostSharpAPI ReferencePost­Sharp.​AspectsIOn­Method­Boundary­Aspect
Open sandboxFocus

Interface IOnMethodBoundaryAspect

Runtime semantics of OnMethodBoundaryAspect.

Namespace: PostSharp.Aspects
Assembly: PostSharp.dll
Syntax
[HasInheritedAttribute]
public interface IOnMethodBoundaryAspect : IMethodLevelAspect, IAspect

Methods

Name Description
OnEntry(MethodExecutionArgs)

Method executed before the body of methods to which this aspect is applied.

OnException(MethodExecutionArgs)

Method executed after the body of methods to which this aspect is applied, in case that the method resulted with an exception.

OnExit(MethodExecutionArgs)

Method executed after the body of methods to which this aspect is applied, even when the method exists with an exception (this method is invoked from the finally block).

OnSuccess(MethodExecutionArgs)

Method executed after the body of methods to which this aspect is applied, but only when the method successfully returns (i.e. when no exception flies out the method.).