EventSourceExtensions.HandleCustomEventRaised Method

Definition

Helper method ensuring single deduplicated subscription to the CustomEventRaised event.

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

Parameters

eventSource
IEventSource
handler
CustomBuildEventHandler

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

Applies to

Produit Versions
MSBuild 17
MSBuild (.NET Core) 17