PostSharpAPI ReferencePost­Sharp.​Patterns.​ThreadingThread­Aware­AttributeOn­Synchronized­Event­Add
Open sandboxFocus

ThreadAwareAttribute.OnSynchronizedEventAdd Method

OnSynchronizedEventAdd(EventInterceptionArgs)

Declaration
[OnEventAddHandlerAdvice(LinesOfCodeAvoided = 2, Description = "Synchronizes event adder/remover")]
[MethodPointcut("SelectSynchronizedEvents")]
[EventInterceptionAdviceOptimization]
[Internal(AttributeId = -9126100459348524999L)]
[DebuggerAspectMethod]
public void OnSynchronizedEventAdd(EventInterceptionArgs args)
Parameters
Type Name Description
EventInterceptionArgs args