EventSourceExtensions.HandleBuildStarted Method

Definition

Helper method ensuring single deduplicated subscription to the BuildStarted event.

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

Parameters

eventSource
IEventSource
handler
BuildStartedEventHandler

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

Applies to