2 interfaces inheriting from IEventSource
Microsoft.Build (1)
Logging\BinaryLogger\BinaryLogReplayEventSource.cs (1)
18IEventSource,
Microsoft.Build.Framework (1)
IEventSource2.cs (1)
18public interface IEventSource2 : IEventSource
1 implementation of IEventSource
Microsoft.Build (1)
Logging\BinaryLogger\EventArgsDispatcher.cs (1)
16public class EventArgsDispatcher : IEventSource
108 references to IEventSource
dotnet (5)
Commands\MSBuild\MSBuildForwardingLogger.cs (2)
20public void Initialize(IEventSource eventSource) 39public void Initialize(IEventSource eventSource, int nodeCount)
Commands\MSBuild\MSBuildLogger.cs (2)
86public void Initialize(IEventSource eventSource, int nodeCount) 91public void Initialize(IEventSource eventSource)
LoggerUtility.cs (1)
182public void Initialize(IEventSource eventSource)
Microsoft.Build (58)
BackEnd\BuildManager\BuildManager.cs (1)
3588public void Initialize(IEventSource eventSource)
BackEnd\Components\Logging\CentralForwardingLogger.cs (2)
68public void Initialize(IEventSource eventSource, int nodeCount) 78public void Initialize(IEventSource eventSource)
BackEnd\Components\Logging\LoggingService.cs (1)
1827private void InitializeLogger(ILogger logger, IEventSource sourceForLogger)
BuildCheck\Infrastructure\BuildCheckConnectorLogger.cs (1)
31public void Initialize(IEventSource eventSource)
BuildCheck\Infrastructure\BuildCheckForwardingLogger.cs (2)
48public void Initialize(IEventSource eventSource, int nodeCount) => Initialize(eventSource); 50public void Initialize(IEventSource eventSource) => eventSource.AnyEventRaised += EventSource_AnyEventRaised;
BuildCheck\Infrastructure\BuildCheckReplayModeConnector.cs (5)
13/// The class that creates an <see cref="IEventSource"/> for binary log replay with BuildCheck enabled. 18/// Gets merged <see cref="IEventSource"/> for binary log replay with BuildCheck enabled. 22/// <returns>The merged <see cref="IEventSource"/>. Used for binary log replay.</returns> 23public static IEventSource GetMergedEventSource( 25IEventSource replayEventSource)
Logging\BaseConsoleLogger.cs (2)
888public virtual void Initialize(IEventSource eventSource, int nodeCount) 898public virtual void Initialize(IEventSource eventSource)
Logging\BinaryLogger\BinaryLogger.cs (1)
343public void Initialize(IEventSource eventSource)
Logging\ConsoleLogger.cs (2)
311public virtual void Initialize(IEventSource eventSource) 320public virtual void Initialize(IEventSource eventSource, int nodeCount)
Logging\DistributedLoggers\ConfigurableForwardingLogger.cs (5)
72private void ParseParameters(IEventSource eventSource) 107private void ApplyParameter(IEventSource eventSource, string parameterName) 204public virtual void Initialize(IEventSource eventSource) 219public void Initialize(IEventSource eventSource, int nodeCount) 224private void SetForwardingBasedOnVerbosity(IEventSource eventSource)
Logging\DistributedLoggers\DistributedFileLogger.cs (2)
34public void Initialize(IEventSource eventSource, int nodeCount) 95public void Initialize(IEventSource eventSource)
Logging\FileLogger.cs (3)
56public override void Initialize(IEventSource eventSource) 71private void InitializeFileLogger(IEventSource eventSource, int nodeCount) 134public override void Initialize(IEventSource eventSource, int nodeCount)
Logging\NullCentralLogger.cs (2)
49public void Initialize(IEventSource eventSource, int nodeCount) 62public void Initialize(IEventSource eventSource)
Logging\ParallelLogger\ParallelConsoleLogger.cs (1)
161public override void Initialize(IEventSource eventSource)
Logging\ProfilerLogger.cs (1)
71public void Initialize(IEventSource eventSource)
Logging\ReusableLogger.cs (6)
39private IEventSource? _designTimeEventSource; 44private IEventSource? _buildTimeEventSource; 323public void Initialize(IEventSource eventSource, int nodeCount) 352public void Initialize(IEventSource eventSource) => Initialize(eventSource, 1); 382private void RegisterForEvents(IEventSource eventSource) 458private void UnregisterForEvents(IEventSource eventSource)
Logging\SimpleErrorLogger.cs (2)
44public void Initialize(IEventSource eventSource, int nodeCount) 81public void Initialize(IEventSource eventSource)
Logging\TerminalLogger\ForwardingTerminalLogger.cs (2)
26public void Initialize(IEventSource eventSource, int nodeCount) 33public void Initialize(IEventSource eventSource)
Logging\TerminalLogger\TerminalLogger.cs (16)
47/// A wrapper over the project context ID passed to us in <see cref="IEventSource"/> logger events. 58/// A wrapper over the evaluation context ID passed to us in <see cref="IEventSource"/> logger events. 119/// The timestamp of the <see cref="IEventSource.BuildStarted"/> event. 433public void Initialize(IEventSource eventSource, int nodeCount) 442public void Initialize(IEventSource eventSource) 571/// The <see cref="IEventSource.BuildStarted"/> callback. 591/// The <see cref="IEventSource.BuildFinished"/> callback. 732/// The <see cref="IEventSource.ProjectStarted"/> callback. 776/// The <see cref="IEventSource.ProjectFinished"/> callback. 1053/// The <see cref="IEventSource.TargetStarted"/> callback. 1117/// The <see cref="IEventSource.TargetFinished"/> callback. Unused. 1157/// The <see cref="IEventSource.TaskStarted"/> callback. 1175/// The <see cref="IEventSource.TaskFinished"/> callback. 1194/// The <see cref="IEventSource.MessageRaised"/> callback. 1353/// The <see cref="IEventSource.WarningRaised"/> callback. 1442/// The <see cref="IEventSource.ErrorRaised"/> callback.
TelemetryInfra\InternalTelemetryConsumingLogger.cs (1)
19public void Initialize(IEventSource eventSource)
Microsoft.Build.Framework (33)
IEventSource.cs (29)
169/// Helper methods for <see cref="IEventSource"/> interface. 174/// Helper method ensuring single deduplicated subscription to the <see cref="IEventSource.MessageRaised"/> event. 178public static void HandleMessageRaised(this IEventSource eventSource, BuildMessageEventHandler handler) 185/// Helper method ensuring single deduplicated subscription to the <see cref="IEventSource.ErrorRaised"/> event. 189public static void HandleErrorRaised(this IEventSource eventSource, BuildErrorEventHandler handler) 196/// Helper method ensuring single deduplicated subscription to the <see cref="IEventSource.WarningRaised"/> event. 200public static void HandleWarningRaised(this IEventSource eventSource, BuildWarningEventHandler handler) 207/// Helper method ensuring single deduplicated subscription to the <see cref="IEventSource.BuildStarted"/> event. 211public static void HandleBuildStarted(this IEventSource eventSource, BuildStartedEventHandler handler) 218/// Helper method ensuring single deduplicated subscription to the <see cref="IEventSource.BuildFinished"/> event. 222public static void HandleBuildFinished(this IEventSource eventSource, BuildFinishedEventHandler handler) 229/// Helper method ensuring single deduplicated subscription to the <see cref="IEventSource.ProjectStarted"/> event. 233public static void HandleProjectStarted(this IEventSource eventSource, ProjectStartedEventHandler handler) 240/// Helper method ensuring single deduplicated subscription to the <see cref="IEventSource.ProjectFinished"/> event. 244public static void HandleProjectFinished(this IEventSource eventSource, ProjectFinishedEventHandler handler) 252/// Helper method ensuring single deduplicated subscription to the <see cref="IEventSource.TargetStarted"/> event. 256public static void HandleTargetStarted(this IEventSource eventSource, TargetStartedEventHandler handler) 263/// Helper method ensuring single deduplicated subscription to the <see cref="IEventSource.TargetFinished"/> event. 267public static void HandleTargetFinished(this IEventSource eventSource, TargetFinishedEventHandler handler) 274/// Helper method ensuring single deduplicated subscription to the <see cref="IEventSource.TaskStarted"/> event. 278public static void HandleTaskStarted(this IEventSource eventSource, TaskStartedEventHandler handler) 285/// Helper method ensuring single deduplicated subscription to the <see cref="IEventSource.TaskFinished"/> event. 289public static void HandleTaskFinished(this IEventSource eventSource, TaskFinishedEventHandler handler) 296/// Helper method ensuring single deduplicated subscription to the <see cref="IEventSource.CustomEventRaised"/> event. 300public static void HandleCustomEventRaised(this IEventSource eventSource, CustomBuildEventHandler handler) 307/// Helper method ensuring single deduplicated subscription to the <see cref="IEventSource.StatusEventRaised"/> event. 311public static void HandleStatusEventRaised(this IEventSource eventSource, BuildStatusEventHandler handler) 318/// Helper method ensuring single deduplicated subscription to the <see cref="IEventSource.AnyEventRaised"/> event. 322public static void HandleAnyEventRaised(this IEventSource eventSource, AnyEventHandler handler)
ILogger.cs (1)
82void Initialize(IEventSource eventSource);
INodeLogger.cs (1)
27void Initialize(IEventSource eventSource, int nodeCount);
Telemetry\InternalTelemetryForwardingLogger.cs (2)
19public void Initialize(IEventSource eventSource, int nodeCount) => Initialize(eventSource); 21public void Initialize(IEventSource eventSource)
Microsoft.Build.Utilities.Core (6)
Logger.cs (1)
33public abstract void Initialize(IEventSource eventSource);
MuxLogger.cs (5)
68private IEventSource _eventSourceForBuild; 145public void Initialize(IEventSource eventSource) => Initialize(eventSource, 1); 150public void Initialize(IEventSource eventSource, int maxNodeCount) 360private readonly IEventSource _eventSourceForBuild; 467internal SubmissionRecord(int submissionId, IEventSource buildEventSource, BuildStartedEventArgs buildStartedEvent, int maxNodeCount)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
MSBuild\Logging\MSBuildDiagnosticLogger.cs (2)
23private MSB.Framework.IEventSource? _eventSource; 64public void Initialize(MSB.Framework.IEventSource eventSource)
MSBuild (1)
XMake.cs (1)
4067var eventSource = isBuildCheckEnabled ?
NuGet.Build.Tasks.Console (3)
ConsoleLoggingQueue.cs (3)
33/// Gets or sets an <see cref="IEventSource" /> object for subscribing to MSBuild logging events. 35private IEventSource _eventSource; 113void ILogger.Initialize(IEventSource eventSource)