Open sandboxFocus

Interface IOnMethodBoundaryAspect

Runtime semantics of OnMethodBoundaryAspect.

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

See OnMethodBoundaryAspect for details.

Methods

Name Description
OnEntry(MethodExecutionArgs)

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

OnException(MethodExecutionArgs)

Method executed after the body of the methods to which this aspect is applied, when the method ended with an exception.

OnExit(MethodExecutionArgs)

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

OnSuccess(MethodExecutionArgs)

Method executed after the body of the methods to which this aspect is applied, but only when the method returns successfully, that is, when no exception is thrown out of the method.

See Also