PostSharp.ILAPI ReferencePost­Sharp.​AspectsIOn­State­Machine­Boundary­Aspect
Open sandboxFocus

IOnStateMachineBoundaryAspect Interface

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

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

Methods

Name Description
OnResume(MethodExecutionArgs)

Method executed when a state machine resumes execution after a yield return or await statement.

OnYield(MethodExecutionArgs)

Method executed when a state machine yields, as the result of a yield return or await statement.