EventSourceExtensions.HandleTaskStarted Method

Definition

Helper method ensuring single deduplicated subscription to the TaskStarted event.

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

Parameters

eventSource
IEventSource
handler
TaskStartedEventHandler

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

Applies to