Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / On­Method­Boundary­Aspect Class / On­Method­Boundary­Aspect Methods

OnMethodBoundaryAspect Methods

The OnMethodBoundaryAspect type exposes the following members.

Methods
  NameDescription
Public methodCompileTimeInitialize
Method invoked at build time to initialize the instance fields of the current aspect. This method is invoked before any other build-time method.
(Inherited from MethodLevelAspect.)
Public methodCompileTimeValidate(Object)
Method invoked at build time to ensure that the aspect has been applied to the right target.
(Inherited from MethodLevelAspect.)
Public methodCompileTimeValidate(MethodBase)
Method invoked at build time to ensure that the aspect has been applied to the right target.
(Inherited from MethodLevelAspect.)
Protected methodCreateAspectConfiguration
Method invoked at build time to create a concrete AspectConfiguration instance specifically for the current Aspect type.
(Overrides Aspect.CreateAspectConfiguration().)
Public methodGetAspectConfiguration
Method invoked at build tome to get the imperative configuration of the current Aspect.
(Inherited from Aspect.)
Public methodOnEntry
Method executed before the body of methods to which this aspect is applied.
Public methodOnException
Method executed after the body of methods to which this aspect is applied, in case that the method resulted with an exception.
Public methodOnExit
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).
Public methodOnResume
Method executed when a state machine resumes execution after an yield return or await statement.
Public methodOnSuccess
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.).
Public methodOnYield
Method executed when a state machine yields, as the result of an yield return or await statement.
Public methodRuntimeInitialize
Initializes the current aspect.
(Inherited from MethodLevelAspect.)
Protected methodSetAspectConfiguration(AspectConfiguration, Object)
Method invoked at build time to set up an AspectConfiguration object according to the current Aspect instance and a specified target element of the current aspect.
(Inherited from MethodLevelAspect.)
Protected methodSetAspectConfiguration(AspectConfiguration, MethodBase)
Method invoked at build time to set up an AspectConfiguration object according to the current Aspect instance and a specified target element of the current aspect.
(Overrides MethodLevelAspect.SetAspectConfiguration(AspectConfiguration, MethodBase).)
See Also