Share via


EventSourceExtensions.HandleAnyEventRaised Method

Definition

Helper method ensuring single deduplicated subscription to the AnyEventRaised event.

public:
[System::Runtime::CompilerServices::Extension]
 static void HandleAnyEventRaised(Microsoft::Build::Framework::IEventSource ^ eventSource, Microsoft::Build::Framework::AnyEventHandler ^ handler);
public static void HandleAnyEventRaised (this Microsoft.Build.Framework.IEventSource eventSource, Microsoft.Build.Framework.AnyEventHandler handler);
static member HandleAnyEventRaised : Microsoft.Build.Framework.IEventSource * Microsoft.Build.Framework.AnyEventHandler -> unit
<Extension()>
Public Sub HandleAnyEventRaised (eventSource As IEventSource, handler As AnyEventHandler)

Parameters

eventSource
IEventSource
handler
AnyEventHandler

Handler to the event. If this handler is already subscribed, single subscription will be ensured.

Applies to