PostSharp//API Reference/Post­Sharp.​Patterns.​Threading/Thread­Aware­Attribute/On­Async­Method­Yield
Open sandboxFocus

Method OnAsyncMethodYield

OnAsyncMethodYield(ref ConcurrentAccessToken, ref Int32)

Declaration
[OnMethodYieldAdvice(Master = "OnAsyncMethodEntry", LinesOfCodeAvoided = 0)]
[MethodExecutionAdviceOptimization]
[Internal(AttributeId = -9126100459348524990L)]
[DebuggerAspectMethod]
public void OnAsyncMethodYield([State] ref ConcurrentAccessToken concurrentAccessToken, [State] ref int acquireState)
Parameters
Type Name Description
ConcurrentAccessToken concurrentAccessToken
Int32 acquireState