7 types derived from BuildEventArgs
Microsoft.Build.Engine.UnitTests (1)
BackEnd\EventSourceSink_Tests.cs (1)
338internal sealed class GenericBuildEventArgs : BuildEventArgs
Microsoft.Build.Framework (4)
BuildCheck\BuildCheckEventArgs.cs (1)
16internal abstract class BuildCheckEventArgs : BuildEventArgs
LazyFormattedBuildEventArgs.cs (1)
17public class LazyFormattedBuildEventArgs : BuildEventArgs
Telemetry\WorkerNodeTelemetryEventArgs.cs (1)
13internal sealed class WorkerNodeTelemetryEventArgs(IWorkerNodeTelemetryData workerNodeTelemetryData) : BuildEventArgs
TelemetryEventArgs.cs (1)
15public sealed class TelemetryEventArgs : BuildEventArgs
Microsoft.Build.Framework.UnitTests (2)
CustomEventArgSerialization_Tests.cs (1)
20internal sealed class GenericBuildEventArg : BuildEventArgs
EventArgs_Tests.cs (1)
127internal sealed class GenericBuildEventArgs : BuildEventArgs
252 references to BuildEventArgs
Microsoft.Build (142)
BackEnd\BuildManager\BuildManager.cs (5)
206private readonly Dictionary<int, BuildEventArgs> _projectStartedEvents; 310_projectStartedEvents = new Dictionary<int, BuildEventArgs>(); 1047foreach (KeyValuePair<int, BuildEventArgs> projectStartedEvent in _projectStartedEvents) 2522BuildEventContext buildEventContext = _projectStartedEvents.TryGetValue(result.SubmissionId, out BuildEventArgs? buildEventArgs) 2933if (_projectStartedEvents.TryGetValue(e.BuildEventContext!.SubmissionId, out var originalArgs))
BackEnd\Components\Communications\LogMessagePacket.cs (4)
36internal LogMessagePacket(KeyValuePair<int, BuildEventArgs>? nodeBuildEvent) 69protected override void WriteEventToStream(BuildEventArgs buildEvent, LoggingEventType eventType, ITranslator translator) 85protected override BuildEventArgs ReadEventFromStream(LoggingEventType eventType, ITranslator translator) 496protected override void TranslateAdditionalProperties(ITranslator translator, LoggingEventType eventType, BuildEventArgs buildEvent)
BackEnd\Components\Logging\BuildEventArgTransportSink.cs (3)
125public void Consume(BuildEventArgs buildEvent) 136public void Consume(BuildEventArgs buildEvent, int sinkId) 150LogMessagePacket logPacket = new LogMessagePacket(new KeyValuePair<int, BuildEventArgs>(sinkId, buildEvent));
BackEnd\Components\Logging\CentralForwardingLogger.cs (1)
116private void EventSource_AnyEventRaised(object sender, BuildEventArgs buildEvent)
BackEnd\Components\Logging\EventRedirectorToSink.cs (1)
54void IEventRedirector.ForwardEvent(BuildEventArgs buildEvent)
BackEnd\Components\Logging\EventSourceSink.cs (3)
222public void Consume(BuildEventArgs buildEvent, int sinkId) 235public void Consume(BuildEventArgs buildEvent) 404private void RaiseAnyEvent(BuildEventArgs buildEvent)
BackEnd\Components\Logging\ILoggingService.cs (3)
378void LogBuildEvent(BuildEventArgs buildEvent); 706void Consume(BuildEventArgs buildEvent, int sinkId); 711void Consume(BuildEventArgs buildEvent);
BackEnd\Components\Logging\LoggingContext.cs (1)
288internal void LogBuildEvent(BuildEventArgs buildEvent)
BackEnd\Components\Logging\LoggingService.cs (13)
1219public void LogBuildEvent(BuildEventArgs buildEvent) 1352private static WarningsConfigKey GetWarningsConfigKey(BuildEventArgs buildEventArgs) 1546BuildEventArgs buildEventArgs = loggingEvent as BuildEventArgs ?? (loggingEvent as KeyValuePair<int, BuildEventArgs>?)?.Value; 1677if (loggingEvent is BuildEventArgs) 1681else if (loggingEvent is KeyValuePair<int, BuildEventArgs> loggingEventKeyValuePair) 1686loggingEventKeyValuePair = new KeyValuePair<int, BuildEventArgs>(loggingEventKeyValuePair.Key, buildEventArgs); 1696private void RouteBuildEvent(KeyValuePair<int, BuildEventArgs> nodeEvent) 1715private void RouteBuildEvent(BuildEventArgs eventArg) 1889private void TryRaiseProjectStartedEvent(BuildEventArgs args) 1906private void TryRaiseProjectFinishedEvent(BuildEventArgs args) 1923private string GetAndVerifyProjectFileFromContext(BuildEventArgs eventArgs, bool allowCacheMiss)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
52BuildEventArgs.ResourceStringFormatter = ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword;
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
1117internal bool IsEventSerializable(BuildEventArgs e)
BackEnd\Node\OutOfProcNode.cs (1)
606BuildEventArgs buildEvent = logMessage.NodeBuildEvent.Value.Value;
BuildCheck\API\BuildCheckResult.cs (1)
30internal BuildEventArgs ToEventArgs(CheckResultSeverity severity)
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (6)
18private Dictionary<Type, Action<BuildEventArgs>> _eventHandlers; 19private readonly Dictionary<Type, Action<BuildEventArgs>> _eventHandlersFull; 20private readonly Dictionary<Type, Action<BuildEventArgs>> _eventHandlersRestore; 55public void HandleBuildEvent(BuildEventArgs e) 57if (_eventHandlers.TryGetValue(e.GetType(), out Action<BuildEventArgs>? handler)) 184private BuildEventContext GetBuildEventContext(BuildEventArgs e) => e.BuildEventContext
BuildCheck\Infrastructure\BuildCheckConnectorLogger.cs (1)
50private void EventSource_AnyEventRaised(object sender, BuildEventArgs e)
BuildCheck\Infrastructure\BuildCheckForwardingLogger.cs (1)
52public void EventSource_AnyEventRaised(object sender, BuildEventArgs buildEvent)
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (4)
650foreach (BuildEventArgs deferredArgs in list) 660private readonly Dictionary<int, List<BuildEventArgs>> _deferredEvalDiagnostics = new(); 677void IResultReporter.ReportResult(BuildEventArgs eventArgs, ICheckContext checkContext) 792void ReportResult(BuildEventArgs result, ICheckContext checkContext);
BuildCheck\Infrastructure\CheckContext\CheckDispatchingContext.cs (1)
30public void DispatchBuildEvent(BuildEventArgs buildEvent)
BuildCheck\Infrastructure\CheckContext\CheckLoggingContext.cs (1)
25public void DispatchBuildEvent(BuildEventArgs buildEvent)
BuildCheck\Infrastructure\CheckContext\ICheckContext.cs (2)
26/// Dispatch a <see cref="BuildEventArgs"/>. 28void DispatchBuildEvent(BuildEventArgs buildEvent);
BuildCheck\Infrastructure\CheckWrapper.cs (1)
158BuildEventArgs eventArgs = result.ToEventArgs(config.Severity);
Errors\InternalLoggerException.cs (6)
86BuildEventArgs e, 117e = (BuildEventArgs)info.GetValue("e", typeof(BuildEventArgs)); 187public BuildEventArgs BuildEventArgs 242BuildEventArgs e, 257private BuildEventArgs e;
Instance\TaskFactories\TaskHostTask.cs (1)
609BuildEventArgs buildEvent = logMessagePacket.NodeBuildEvent.Value.Value;
Instance\TaskFactoryEngineContext.cs (1)
382internal bool IsEventSerializable(BuildEventArgs e)
Logging\BinaryLogger\BinaryLogger.cs (4)
365private void EventSource_AnyEventRaised(object sender, BuildEventArgs e) 370private void Write(BuildEventArgs e) 392private static bool DoNotWriteToBinlog(BuildEventArgs e) 397private void CollectImports(BuildEventArgs e)
Logging\BinaryLogger\BuildEventArgsReader.cs (40)
60typeof(BuildEventArgs).GetField("threadId", BindingFlags.Instance | BindingFlags.NonPublic); 62typeof(BuildEventArgs).GetField("senderName", BindingFlags.Instance | BindingFlags.NonPublic); 67/// <param name="binaryReader">The <see cref="BinaryReader"/> to read <see cref="BuildEventArgs"/> from.</param> 209/// The next <see cref="BuildEventArgs"/>. 212public BuildEventArgs? Read() 215BuildEventArgs? result = null; 299private BuildEventArgs? ReadBuildEventArgs(BinaryLogRecordKind recordKind) 522private BuildEventArgs ReadProjectImportedEventArgs() 553private BuildEventArgs ReadTargetSkippedEventArgs() 608private BuildEventArgs ReadBuildStartedEventArgs() 621private BuildEventArgs ReadBuildFinishedEventArgs() 635private BuildEventArgs ReadBuildSubmissionStartedEventArgs() 658private BuildEventArgs ReadProjectEvaluationStartedEventArgs() 675private BuildEventArgs ReadProjectEvaluationFinishedEventArgs() 733private BuildEventArgs ReadProjectStartedEventArgs() 777private BuildEventArgs ReadProjectFinishedEventArgs() 793private BuildEventArgs ReadTargetStartedEventArgs() 816private BuildEventArgs ReadTargetFinishedEventArgs() 838private BuildEventArgs ReadTaskStartedEventArgs() 860private BuildEventArgs ReadTaskFinishedEventArgs() 880private BuildEventArgs ReadBuildErrorEventArgs() 885BuildEventArgs e; 932private BuildEventArgs ReadBuildWarningEventArgs() 937BuildEventArgs e; 984private BuildEventArgs ReadBuildMessageEventArgs() 988BuildEventArgs e; 1038private BuildEventArgs ReadTaskCommandLineEventArgs() 1054private BuildEventArgs ReadTaskParameterEventArgs() 1080private BuildEventArgs ReadCriticalBuildMessageEventArgs() 1084BuildEventArgs e; 1130private BuildEventArgs ReadEnvironmentVariableReadEventArgs() 1145BuildEventArgs e = new EnvironmentVariableReadEventArgs( 1156private BuildEventArgs ReadResponseFileUsedEventArgs() 1166private BuildEventArgs ReadPropertyReassignmentEventArgs() 1192private BuildEventArgs ReadUninitializedPropertyReadEventArgs() 1208private BuildEventArgs ReadPropertyInitialValueSetEventArgs() 1257private BuildEventArgs ReadBuildCheckTracingEventArgs() 1270private BuildEventArgs ReadBuildCheckAcquisitionEventArgs() 1281private BuildEventArgs ReadBuildCanceledEventArgs() 1422private void SetCommonFields(BuildEventArgs buildEventArgs, BuildEventArgsFields fields)
Logging\BinaryLogger\BuildEventArgsWriter.cs (5)
144public void Write(BuildEventArgs e) 203private BinaryLogRecordKind WriteCore(BuildEventArgs e) 638private void WriteBuildEventArgsFields(BuildEventArgs e, bool writeMessage = true, bool writeLineAndColumn = false) 650private void WriteBaseFields(BuildEventArgs e, BuildEventArgsFieldFlags flags) 837private static BuildEventArgsFieldFlags GetBuildEventArgsFieldFlags(BuildEventArgs e, bool writeMessage = true)
Logging\BinaryLogger\EventArgsDispatcher.cs (1)
107public void Dispatch(BuildEventArgs buildEvent)
Logging\BinaryLogger\ProjectImportsCollector.cs (1)
176BuildEventArgs args = new BuildMessageEventArgs(
Logging\DistributedLoggers\ConfigurableForwardingLogger.cs (3)
334private void ForwardEvent(object sender, BuildEventArgs e) 369/// <param name="e">The <see cref="BuildEventArgs"/> to forward.</param> 370protected virtual void ForwardToCentralLogger(BuildEventArgs e)
Logging\NullCentralLogger.cs (1)
54public void AnyEventRaisedHandler(object sender, BuildEventArgs e)
Logging\ParallelLogger\ParallelConsoleLogger.cs (12)
421private void ShowErrorWarningSummary(IEnumerable<BuildEventArgs> listToProcess) 424var groupByProjectEntryPoint = new Dictionary<ErrorWarningSummaryDictionaryKey, List<BuildEventArgs>>(); 427foreach (BuildEventArgs errorWarningEventArgs in listToProcess) 455errorWarningEventListByTarget = new List<BuildEventArgs>(); 465foreach (KeyValuePair<ErrorWarningSummaryDictionaryKey, List<BuildEventArgs>> valuePair in groupByProjectEntryPoint) 492foreach (BuildEventArgs errorWarningEvent in valuePair.Value) 731/// <param name="e">A <see cref="BuildEventArgs"/> object containing information about the build event.</param> 733internal void WriteProperties(BuildEventArgs e, IEnumerable properties) 798/// <param name="e">A <see cref="BuildEventArgs"/> object containing information about the build event.</param> 800internal void WriteItems(BuildEventArgs e, IEnumerable items) 1012internal string FindLogOutputProperties(BuildEventArgs e) 1362private bool WriteTargetMessagePrefix(BuildEventArgs e, BuildEventContext context, DateTime timeStamp)
Logging\ProfilerLogger.cs (1)
93private void ProjectEvaluationFinishedRaised(object sender, BuildEventArgs e)
Logging\ReusableLogger.cs (1)
578private void AnyEventRaisedHandler(object sender, BuildEventArgs e) => AnyEventRaised?.Invoke(sender, e);
Logging\TerminalLogger\ForwardingTerminalLogger.cs (1)
87public void ForwardEventUnconditionally(object sender, BuildEventArgs e)
LogMessagePacketBase.cs (9)
286private BuildEventArgs _buildEvent; 300internal LogMessagePacketBase(KeyValuePair<int, BuildEventArgs>? nodeBuildEvent) 342internal KeyValuePair<int, BuildEventArgs>? NodeBuildEvent 346return new KeyValuePair<int, BuildEventArgs>(_sinkId, _buildEvent); 487protected virtual void TranslateAdditionalProperties(ITranslator translator, LoggingEventType eventType, BuildEventArgs buildEvent) 531private BuildEventArgs GetBuildEventArgFromId() 591private LoggingEventType GetLoggingEventId(BuildEventArgs eventArg) 780protected virtual void WriteEventToStream(BuildEventArgs buildEvent, LoggingEventType eventType, ITranslator translator) 920protected virtual BuildEventArgs ReadEventFromStream(LoggingEventType eventType, ITranslator translator)
Microsoft.Build.Engine.UnitTests (61)
BackEnd\CentralForwardingLogger_Tests.cs (4)
130private static EventSourceSink AttachForwardingLoggerAndRedirector(BuildEventArgs buildEventToCheck) 156private BuildEventArgs _expectedEvent; 165public TestEventRedirector(BuildEventArgs eventToExpect) 177public void ForwardEvent(BuildEventArgs buildEvent)
BackEnd\EventRedirectorToSink_Tests.cs (1)
64delegate (object sender, BuildEventArgs buildEvent)
BackEnd\EventSourceSink_Tests.cs (11)
258private static void RaiseExceptionInEventHandler(BuildEventArgs buildEventToRaise, Exception exceptionToRaise) 295private static void VerifyRegisteredHandlers(BuildEventArgs buildEventToRaise, RaiseEventHelper eventHelper, EventHandlerHelper testHandlers) 378private BuildEventArgs _raisedEvent; 384private BuildEventArgs _raisedAnyEvent; 389private BuildEventArgs _raisedStatusEvent; 479public BuildEventArgs RaisedEvent 490public BuildEventArgs RaisedAnyEvent 501public BuildEventArgs RaisedStatusEvent 533private void HandleEvent(BuildEventArgs e) 686private void Source_AnyEventRaised(object sender, BuildEventArgs e) 1001internal void RaiseBuildEvent(BuildEventArgs buildEvent)
BackEnd\LoggingService_Tests.cs (3)
702LogMessagePacket packet = new LogMessagePacket(new KeyValuePair<int, BuildEventArgs>(1, messageEvent)); 945BuildEventArgs buildEvent, 1443internal void LoggerEventHandler(object sender, BuildEventArgs eventArgs)
BackEnd\LoggingServicesLogMethod_Tests.cs (6)
1776private void LogandVerifyBuildEvent(BuildEventArgs expectedBuildEvent, ProcessBuildEventHelper loggingService) 1797private BuildEventArgs _processedBuildEvent; 1820public BuildEventArgs ProcessedBuildEvent 1857if (buildEvent is BuildEventArgs buildEventArgs) 1861else if (buildEvent is KeyValuePair<int, BuildEventArgs> kvp) 1882private sealed class EventArgsEqualityComparer<T> : IEqualityComparer<T> where T : BuildEventArgs
BackEnd\MockLoggingService.cs (1)
366public void LogBuildEvent(BuildEventArgs buildEvent)
BackEnd\NodePackets_Tests.cs (8)
261BuildEventArgs[] testArgs = new BuildEventArgs[] 325foreach (BuildEventArgs arg in testArgs) 327LogMessagePacket packet = new LogMessagePacket(new KeyValuePair<int, BuildEventArgs>(0, arg)); 337BuildEventArgs args = packet.NodeBuildEvent?.Value; 338BuildEventArgs desArgs = deserializedPacket?.NodeBuildEvent?.Value; 359private static void VerifyLoggingPacket(BuildEventArgs buildEvent, LoggingEventType logEventType) 361LogMessagePacket packet = new LogMessagePacket(new KeyValuePair<int, BuildEventArgs>(0, buildEvent));
BackEnd\ProjectTelemetry_Tests.cs (1)
170var events = new System.Collections.Generic.List<BuildEventArgs>();
BackEnd\TaskHost_Tests.cs (1)
1279internal void EventSource_AnyEventRaised(object sender, BuildEventArgs e)
BinaryLogger_Tests.cs (1)
279var ev2 = reader2.Read();
BuildEventArgsSerialization_Tests.cs (5)
596var deserialized = buildEventArgsReader.Read(); 1079var deserializedEvent = buildEventArgsReader.Read(); 1130var deserializedEvent = buildEventArgsReader.Read(); 1186var deserializedEvent = buildEventArgsReader.Read(); 1227where T : BuildEventArgs
ConfigureableForwardingLogger_Tests.cs (12)
39ForwardedEvents = new List<BuildEventArgs>(); 42internal List<BuildEventArgs> ForwardedEvents; 44protected override void ForwardToCentralLogger(BuildEventArgs e) 90logger.ForwardedEvents.ShouldBe(new BuildEventArgs[] { _buildStarted }); 93logger.ForwardedEvents.ShouldBe(new BuildEventArgs[] 102logger.ForwardedEvents.ShouldBe(new BuildEventArgs[] 112logger.ForwardedEvents.ShouldBe(new BuildEventArgs[] 128logger.ForwardedEvents.ShouldBe(new BuildEventArgs[] 148logger.ForwardedEvents.ShouldBe(new BuildEventArgs[] 187logger.ForwardedEvents.ShouldBe(new BuildEventArgs[] 217logger.ForwardedEvents.ShouldBe(new BuildEventArgs[] 249logger.ForwardedEvents.ShouldBe(new BuildEventArgs[]
ConsoleLogger_Tests.cs (5)
640BuildEventArgs buildEventArgs; 1149BuildEventArgs buildEvent = new BuildErrorEventArgs("", "", "", 0, 0, 0, 0, "", "", ""); 1354BuildEventArgs buildEvent = new BuildErrorEventArgs("", "", "", 0, 0, 0, 0, "", "", ""); 1411BuildEventArgs buildEvent = new BuildErrorEventArgs("", "", "", 0, 0, 0, 0, "", "", ""); 1431BuildEventArgs buildEvent = new BuildErrorEventArgs("", "", "", 0, 0, 0, 0, "", "", "");
Evaluation\EvaluationLogging_Tests.cs (2)
116foreach (var buildEvent in firstEvaluationLogger.AllBuildEvents) 145AdditionalHandlers = new List<Action<object, BuildEventArgs>>
Microsoft.Build.Framework (2)
IEventRedirector.cs (1)
16void ForwardEvent(BuildEventArgs buildEvent);
IEventSource.cs (1)
83public delegate void AnyEventHandler(object sender, BuildEventArgs e);
Microsoft.Build.Framework.UnitTests (3)
CustomEventArgSerialization_Tests.cs (3)
113private static void VerifyGenericEventArg(BuildEventArgs genericEvent, BuildEventArgs newGenericEvent) 1036where T : BuildEventArgs, new()
Microsoft.Build.UnitTests.Shared (21)
BuildEventArgsExtension.cs (14)
26public static bool IsEquivalent(this BuildEventArgs args, BuildEventArgs other) 98return ((BuildEventArgs)args).IsEquivalent(other); 113return ((BuildEventArgs)args).IsEquivalent(other); 159return ((BuildEventArgs)args).IsEquivalent(other); 205return ((BuildEventArgs)args).IsEquivalent(other); 226return ((BuildEventArgs)args).IsEquivalent(other); 247return ((BuildEventArgs)args).IsEquivalent(other); 268return ((BuildEventArgs)args).IsEquivalent(other); 289return ((BuildEventArgs)args).IsEquivalent(other); 319return ((BuildEventArgs)args).IsEquivalent(other); 384return ((BuildEventArgs)args).IsEquivalent(other); 410return ((BuildEventArgs)args).IsEquivalent(other); 441return ((BuildEventArgs)args).IsEquivalent(other);
MockLogger.cs (7)
151public List<BuildEventArgs> AllBuildEvents { get; } = new List<BuildEventArgs>(); 258public List<Action<object, BuildEventArgs>> AdditionalHandlers { get; set; } = new List<Action<object, BuildEventArgs>>(); 266public void LoggerEventHandler(object sender, BuildEventArgs eventArgs) 272foreach (Action<object, BuildEventArgs> handler in AdditionalHandlers) 416public void TelemetryEventHandler(object sender, BuildEventArgs eventArgs)
Microsoft.Build.Utilities.Core (1)
MuxLogger.cs (1)
1205private void RaiseAnyEvent(object sender, BuildEventArgs buildEvent)
MSBuild (11)
LogMessagePacketBase.cs (9)
286private BuildEventArgs _buildEvent; 300internal LogMessagePacketBase(KeyValuePair<int, BuildEventArgs>? nodeBuildEvent) 342internal KeyValuePair<int, BuildEventArgs>? NodeBuildEvent 346return new KeyValuePair<int, BuildEventArgs>(_sinkId, _buildEvent); 487protected virtual void TranslateAdditionalProperties(ITranslator translator, LoggingEventType eventType, BuildEventArgs buildEvent) 531private BuildEventArgs GetBuildEventArgFromId() 591private LoggingEventType GetLoggingEventId(BuildEventArgs eventArg) 780protected virtual void WriteEventToStream(BuildEventArgs buildEvent, LoggingEventType eventType, ITranslator translator) 920protected virtual BuildEventArgs ReadEventFromStream(LoggingEventType eventType, ITranslator translator)
OutOfProcTaskHostNode.cs (2)
1207private void SendBuildEvent(BuildEventArgs e) 1223LogMessagePacketBase logMessage = new(new KeyValuePair<int, BuildEventArgs>(_currentConfiguration.NodeId, e));
MSBuildTaskHost (11)
LogMessagePacketBase.cs (9)
286private BuildEventArgs _buildEvent; 300internal LogMessagePacketBase(KeyValuePair<int, BuildEventArgs>? nodeBuildEvent) 342internal KeyValuePair<int, BuildEventArgs>? NodeBuildEvent 346return new KeyValuePair<int, BuildEventArgs>(_sinkId, _buildEvent); 487protected virtual void TranslateAdditionalProperties(ITranslator translator, LoggingEventType eventType, BuildEventArgs buildEvent) 531private BuildEventArgs GetBuildEventArgFromId() 591private LoggingEventType GetLoggingEventId(BuildEventArgs eventArg) 780protected virtual void WriteEventToStream(BuildEventArgs buildEvent, LoggingEventType eventType, ITranslator translator) 920protected virtual BuildEventArgs ReadEventFromStream(LoggingEventType eventType, ITranslator translator)
OutOfProcTaskHostNode.cs (2)
1207private void SendBuildEvent(BuildEventArgs e) 1223LogMessagePacketBase logMessage = new(new KeyValuePair<int, BuildEventArgs>(_currentConfiguration.NodeId, e));