次の方法で共有


IEventSource2 Interface

Definition

This interface defines the events raised by the build engine. Loggers use this interface to subscribe to the events they are interested in receiving.

public interface class IEventSource2 : Microsoft::Build::Framework::IEventSource
public interface IEventSource2 : Microsoft.Build.Framework.IEventSource
type IEventSource2 = interface
    interface IEventSource
Public Interface IEventSource2
Implements IEventSource
Derived
Implements

Events

AnyEventRaised

this event is raised to log any build event. These events do not include telemetry. To receive telemetry, you must attach to the TelemetryLogged event.

(Inherited from IEventSource)
BuildFinished

this event is raised to log the end of a build

(Inherited from IEventSource)
BuildStarted

this event is raised to log the start of a build

(Inherited from IEventSource)
CustomEventRaised

this event is raised to log custom events

(Inherited from IEventSource)
ErrorRaised

this event is raised to log an error

(Inherited from IEventSource)
MessageRaised

this event is raised to log a message

(Inherited from IEventSource)
ProjectFinished

this event is raised to log the end of a project build

(Inherited from IEventSource)
ProjectStarted

this event is raised to log the start of a project build

(Inherited from IEventSource)
StatusEventRaised

this event is raised to log any build status event

(Inherited from IEventSource)
TargetFinished

this event is raised to log the end of a target build

(Inherited from IEventSource)
TargetStarted

this event is raised to log the start of a target build

(Inherited from IEventSource)
TaskFinished

this event is raised to log the end of task execution

(Inherited from IEventSource)
TaskStarted

this event is raised to log the start of task execution

(Inherited from IEventSource)
TelemetryLogged

this event is raised to when telemetry is logged.

WarningRaised

this event is raised to log a warning

(Inherited from IEventSource)

Extension Methods

HandleAnyEventRaised(IEventSource, AnyEventHandler)

Helper method ensuring single deduplicated subscription to the AnyEventRaised event.

HandleBuildFinished(IEventSource, BuildFinishedEventHandler)

Helper method ensuring single deduplicated subscription to the BuildFinished event.

HandleBuildStarted(IEventSource, BuildStartedEventHandler)

Helper method ensuring single deduplicated subscription to the BuildStarted event.

HandleCustomEventRaised(IEventSource, CustomBuildEventHandler)

Helper method ensuring single deduplicated subscription to the CustomEventRaised event.

HandleErrorRaised(IEventSource, BuildErrorEventHandler)

Helper method ensuring single deduplicated subscription to the ErrorRaised event.

HandleMessageRaised(IEventSource, BuildMessageEventHandler)

Helper method ensuring single deduplicated subscription to the MessageRaised event.

HandleProjectFinished(IEventSource, ProjectFinishedEventHandler)

Helper method ensuring single deduplicated subscription to the ProjectFinished event.

HandleProjectStarted(IEventSource, ProjectStartedEventHandler)

Helper method ensuring single deduplicated subscription to the ProjectStarted event.

HandleStatusEventRaised(IEventSource, BuildStatusEventHandler)

Helper method ensuring single deduplicated subscription to the StatusEventRaised event.

HandleTargetFinished(IEventSource, TargetFinishedEventHandler)

Helper method ensuring single deduplicated subscription to the TargetFinished event.

HandleTargetStarted(IEventSource, TargetStartedEventHandler)

Helper method ensuring single deduplicated subscription to the TargetStarted event.

HandleTaskFinished(IEventSource, TaskFinishedEventHandler)

Helper method ensuring single deduplicated subscription to the TaskFinished event.

HandleTaskStarted(IEventSource, TaskStartedEventHandler)

Helper method ensuring single deduplicated subscription to the TaskStarted event.

HandleWarningRaised(IEventSource, BuildWarningEventHandler)

Helper method ensuring single deduplicated subscription to the WarningRaised event.

Applies to