EventSourceExtensions.HandleTaskStarted Method

Definition

Helper method ensuring single deduplicated subscription to the TaskStarted event.

C#
public static void HandleTaskStarted(this Microsoft.Build.Framework.IEventSource eventSource, Microsoft.Build.Framework.TaskStartedEventHandler handler);

Parameters

eventSource
IEventSource
handler
TaskStartedEventHandler

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

Applies to

Ürün Sürümler
MSBuild 17
MSBuild (.NET Core) 17