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
2 implementations of IEventSource
Microsoft.Build (1)
Logging\BinaryLogger\EventArgsDispatcher.cs (1)
16public class EventArgsDispatcher : IEventSource
Microsoft.Build.CommandLine.UnitTests (1)
TerminalLogger_Tests.cs (1)
29public class TerminalLogger_Tests : IEventSource, IDisposable
99 references to IEventSource
Microsoft.Build (39)
BackEnd\BuildManager\BuildManager.cs (1)
3284public void Initialize(IEventSource eventSource)
BackEnd\Components\Logging\CentralForwardingLogger.cs (2)
69public void Initialize(IEventSource eventSource, int nodeCount) 79public void Initialize(IEventSource eventSource)
BackEnd\Components\Logging\LoggingService.cs (1)
1787private void InitializeLogger(ILogger logger, IEventSource sourceForLogger)
BuildCheck\Infrastructure\BuildCheckConnectorLogger.cs (1)
35public 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)
Definition\ProjectCollection.cs (6)
1850private IEventSource _designTimeEventSource; 1855private IEventSource _buildTimeEventSource; 2127public void Initialize(IEventSource eventSource, int nodeCount) 2156public void Initialize(IEventSource eventSource) 2186private void RegisterForEvents(IEventSource eventSource) 2256private void UnregisterForEvents(IEventSource eventSource)
Logging\BaseConsoleLogger.cs (2)
889public virtual void Initialize(IEventSource eventSource, int nodeCount) 899public virtual void Initialize(IEventSource eventSource)
Logging\BinaryLogger\BinaryLogger.cs (1)
162public void Initialize(IEventSource eventSource)
Logging\ConsoleLogger.cs (2)
346public virtual void Initialize(IEventSource eventSource) 355public virtual void Initialize(IEventSource eventSource, int nodeCount)
Logging\DistributedLoggers\ConfigurableForwardingLogger.cs (5)
71private void ParseParameters(IEventSource eventSource) 106private void ApplyParameter(IEventSource eventSource, string parameterName) 203public virtual void Initialize(IEventSource eventSource) 218public void Initialize(IEventSource eventSource, int nodeCount) 223private 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)
57public override void Initialize(IEventSource eventSource) 72private void InitializeFileLogger(IEventSource eventSource, int nodeCount) 136public 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\SimpleErrorLogger.cs (2)
44public void Initialize(IEventSource eventSource, int nodeCount) 81public void Initialize(IEventSource eventSource)
Microsoft.Build.Engine.UnitTests (10)
BackEnd\EventSourceSink_Tests.cs (1)
423internal EventHandlerHelper(IEventSource source, Exception exceptionToThrow)
BackEnd\LoggingService_Tests.cs (4)
1349public void Initialize(IEventSource eventSource) 1374public void Initialize(IEventSource eventSource, int nodeCount) 1427public void Initialize(IEventSource eventSource) 1487public void Initialize(IEventSource eventSource)
BackEnd\TaskHost_Tests.cs (1)
1260public void Initialize(IEventSource eventSource)
BinaryLogger_Tests.cs (4)
663var eventSource = A.Fake<IEventSource>(); 684var eventSource = A.Fake<IEventSource>();
Microsoft.Build.Framework (31)
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);
Microsoft.Build.UnitTests.Shared (1)
MockLogger.cs (1)
196public 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.Build.Utilities.UnitTests (4)
EventArgsFormatting_Tests.cs (1)
188public override void Initialize(IEventSource eventSource)
Logger_Tests.cs (1)
30public override void Initialize(IEventSource eventSource)
MuxLogger_Tests.cs (2)
344private IEventSource _eventSource; 385public void Initialize(IEventSource eventSource)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
MSBuild\Logging\MSBuildDiagnosticLogger.cs (2)
14private MSB.Framework.IEventSource? _eventSource; 37public void Initialize(MSB.Framework.IEventSource eventSource)
Microsoft.DotNet.ArcadeLogging (1)
PipelinesLogger.cs (1)
31public void Initialize(IEventSource eventSource)
MSBuild (3)
TerminalLogger\TerminalLogger.cs (2)
257public void Initialize(IEventSource eventSource, int nodeCount) 266public void Initialize(IEventSource eventSource)
XMake.cs (1)
4455var eventSource = isBuildCheckEnabled ?
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
64public override void Initialize(IEventSource eventSource)
XmlFileLogger (1)
XmlFileLogger.cs (1)
42public override void Initialize(IEventSource eventSource)