PostSharp / / API Reference / Post­Sharp.​Patterns.​Threading / Thread­Aware­Attribute / On­Yield­Event­Invoke

Method OnYieldEventInvoke

OnYieldEventInvoke(EventInterceptionArgs)

Declaration
[AdviceDependency]
[OnEventInvokeHandlerAdvice(LinesOfCodeAvoided = 1, Description = "Yields access to the object")]
[MethodPointcut("SelectYieldEvents")]
[EventInterceptionAdviceOptimization]
[Internal(AttributeId = -9126100459348524988L)]
[DebuggerAspectMethod]
public void OnYieldEventInvoke(EventInterceptionArgs args)
Parameters
Type Name Description
EventInterceptionArgs args