PostSharp//API Reference/Post­Sharp.​Patterns.​Diagnostics/Await­Instrumentation­Aspect/On­Suspend
Open sandboxFocus

Method OnSuspend

OnSuspend(AsyncCallId)

Declaration
[OnMethodYieldAdvice(LinesOfCodeAvoided = 0)]
[SelfPointcut]
[MethodExecutionAdviceOptimization]
[DebuggerAspectMethod]
public static void OnSuspend([AsyncCallId] AsyncCallId task)
Parameters
Type Name Description
AsyncCallId task