IOnStateMachineBoundaryAspect Interface
Extends the IOnMethodBoundaryAspect interface with two advises to be applied on state machines.

Namespace: PostSharp.Aspects
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.30.0 (4.3.30.0)
Syntax
C#
public interface IOnStateMachineBoundaryAspect : IOnMethodBoundaryAspect, 
	IMethodLevelAspect, IAspect

The IOnStateMachineBoundaryAspect type exposes the following members.

Methods
  NameDescription
Public methodOnEntry
Method executed before the body of methods to which this aspect is applied.
(Inherited from IOnMethodBoundaryAspect.)
Public methodOnException
Method executed after the body of methods to which this aspect is applied, in case that the method resulted with an exception.
(Inherited from IOnMethodBoundaryAspect.)
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).
(Inherited from IOnMethodBoundaryAspect.)
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.).
(Inherited from IOnMethodBoundaryAspect.)
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 IMethodLevelAspect.)
Top
See Also