PostSharpAPI ReferencePost­Sharp.​AspectsOn­Method­Boundary­AspectOn­Resume
Open sandboxFocus

Method OnResume

OnResume(MethodExecutionArgs)

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

Declaration
[MethodExecutionAdviceOptimization]
[RequiresMethodExecutionAdviceAnalysis]
[RequiresDebuggerEnhancement]
[HasInheritedAttribute]
public virtual void OnResume(MethodExecutionArgs args)
Parameters
Type Name Description
MethodExecutionArgs args

Event arguments specifying which method is being executed and which are its arguments.

Implements
IOnStateMachineBoundaryAspect.OnResume(MethodExecutionArgs)