6 types derived from BuildEventArgs
Microsoft.Build.Engine.UnitTests (1)
BackEnd\EventSourceSink_Tests.cs (1)
338internal sealed class GenericBuildEventArgs : BuildEventArgs
Microsoft.Build.Framework (3)
BuildCheck\BuildCheckEventArgs.cs (1)
16internal abstract class BuildCheckEventArgs : BuildEventArgs
LazyFormattedBuildEventArgs.cs (1)
17public class LazyFormattedBuildEventArgs : 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
248 references to BuildEventArgs
Microsoft.Build (138)
BackEnd\BuildManager\BuildManager.cs (4)
206private readonly Dictionary<int, BuildEventArgs> _projectStartedEvents; 310_projectStartedEvents = new Dictionary<int, BuildEventArgs>(); 1032foreach (KeyValuePair<int, BuildEventArgs> projectStartedEvent in _projectStartedEvents) 2500BuildEventContext buildEventContext = _projectStartedEvents.TryGetValue(result.SubmissionId, out BuildEventArgs? buildEventArgs)
BackEnd\Components\Communications\LogMessagePacket.cs (1)
25internal LogMessagePacket(KeyValuePair<int, BuildEventArgs>? nodeBuildEvent)
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 (5)
219public void Consume(BuildEventArgs buildEvent, int sinkId) 228public void Consume(BuildEventArgs buildEvent) 339public delegate void ArgsHandler<in TArgs>(TArgs e) where TArgs : BuildEventArgs; 351where TArgs : BuildEventArgs 389private void RaiseAnyEvent(BuildEventArgs buildEvent)
BackEnd\Components\Logging\ILoggingService.cs (3)
369void LogBuildEvent(BuildEventArgs buildEvent); 697void Consume(BuildEventArgs buildEvent, int sinkId); 702void Consume(BuildEventArgs buildEvent);
BackEnd\Components\Logging\LoggingContext.cs (1)
288internal void LogBuildEvent(BuildEventArgs buildEvent)
BackEnd\Components\Logging\LoggingService.cs (13)
1207public void LogBuildEvent(BuildEventArgs buildEvent) 1340private static WarningsConfigKey GetWarningsConfigKey(BuildEventArgs buildEventArgs) 1534BuildEventArgs buildEventArgs = loggingEvent as BuildEventArgs ?? (loggingEvent as KeyValuePair<int, BuildEventArgs>?)?.Value; 1665if (loggingEvent is BuildEventArgs) 1669else if (loggingEvent is KeyValuePair<int, BuildEventArgs> loggingEventKeyValuePair) 1674loggingEventKeyValuePair = new KeyValuePair<int, BuildEventArgs>(loggingEventKeyValuePair.Key, buildEventArgs); 1684private void RouteBuildEvent(KeyValuePair<int, BuildEventArgs> nodeEvent) 1703private void RouteBuildEvent(BuildEventArgs eventArg) 1876private void TryRaiseProjectStartedEvent(BuildEventArgs args) 1893private void TryRaiseProjectFinishedEvent(BuildEventArgs args) 1910private string GetAndVerifyProjectFileFromContext(BuildEventArgs eventArgs, bool allowCacheMiss)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
52BuildEventArgs.ResourceStringFormatter = ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword;
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
1114internal bool IsEventSerializable(BuildEventArgs e)
BackEnd\Node\OutOfProcNode.cs (1)
598BuildEventArgs 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);
Definition\ProjectCollection.cs (1)
2417private void AnyEventRaisedHandler(object sender, BuildEventArgs e)
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)
549BuildEventArgs buildEvent = logMessagePacket.NodeBuildEvent.Value.Value;
Instance\TaskFactoryLoggingHost.cs (1)
338internal bool IsEventSerializable(BuildEventArgs e)
Logging\BinaryLogger\BinaryLogger.cs (4)
363private void EventSource_AnyEventRaised(object sender, BuildEventArgs e) 368private void Write(BuildEventArgs e) 390private static bool DoNotWriteToBinlog(BuildEventArgs e) 395private 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) 814private 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) 1011internal string FindLogOutputProperties(BuildEventArgs e) 1361private bool WriteTargetMessagePrefix(BuildEventArgs e, BuildEventContext context, DateTime timeStamp)
Logging\ProfilerLogger.cs (1)
93private void ProjectEvaluationFinishedRaised(object sender, BuildEventArgs e)
LogMessagePacketBase.cs (8)
297private BuildEventArgs _buildEvent; 311internal LogMessagePacketBase(KeyValuePair<int, BuildEventArgs>? nodeBuildEvent, TargetFinishedTranslator targetFinishedTranslator) 363internal KeyValuePair<int, BuildEventArgs>? NodeBuildEvent 367return new KeyValuePair<int, BuildEventArgs>(_sinkId, _buildEvent); 554private BuildEventArgs GetBuildEventArgFromId() 614private LoggingEventType GetLoggingEventId(BuildEventArgs eventArg) 800private void WriteEventToStream(BuildEventArgs buildEvent, LoggingEventType eventType, ITranslator translator) 1151private BuildEventArgs ReadEventFromStream(LoggingEventType eventType, ITranslator translator)
Microsoft.Build.Engine.UnitTests (60)
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)
353public 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\TaskHost_Tests.cs (1)
1279internal void EventSource_AnyEventRaised(object sender, BuildEventArgs e)
BinaryLogger_Tests.cs (1)
292var 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)
659BuildEventArgs buildEventArgs; 1438BuildEventArgs buildEvent = new BuildErrorEventArgs("", "", "", 0, 0, 0, 0, "", "", ""); 1694BuildEventArgs buildEvent = new BuildErrorEventArgs("", "", "", 0, 0, 0, 0, "", "", ""); 1772BuildEventArgs buildEvent = new BuildErrorEventArgs("", "", "", 0, 0, 0, 0, "", "", ""); 1806BuildEventArgs 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 (3)
IEventRedirector.cs (1)
16void ForwardEvent(BuildEventArgs buildEvent);
IEventSource.cs (1)
83public delegate void AnyEventHandler(object sender, BuildEventArgs e);
Telemetry\WorkerNodeTelemetryEventArgs.cs (1)
13internal sealed class WorkerNodeTelemetryEventArgs(IWorkerNodeTelemetryData workerNodeTelemetryData) : BuildEventArgs
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)
LogMessagePacket.cs (1)
28internal LogMessagePacket(KeyValuePair<int, BuildEventArgs>? nodeBuildEvent)
LogMessagePacketBase.cs (8)
297private BuildEventArgs _buildEvent; 311internal LogMessagePacketBase(KeyValuePair<int, BuildEventArgs>? nodeBuildEvent, TargetFinishedTranslator targetFinishedTranslator) 363internal KeyValuePair<int, BuildEventArgs>? NodeBuildEvent 367return new KeyValuePair<int, BuildEventArgs>(_sinkId, _buildEvent); 554private BuildEventArgs GetBuildEventArgFromId() 614private LoggingEventType GetLoggingEventId(BuildEventArgs eventArg) 800private void WriteEventToStream(BuildEventArgs buildEvent, LoggingEventType eventType, ITranslator translator) 1151private BuildEventArgs ReadEventFromStream(LoggingEventType eventType, ITranslator translator)
OutOfProcTaskHostNode.cs (2)
1191private void SendBuildEvent(BuildEventArgs e) 1207LogMessagePacket logMessage = new LogMessagePacket(new KeyValuePair<int, BuildEventArgs>(_currentConfiguration.NodeId, e));
MSBuildTaskHost (11)
LogMessagePacket.cs (1)
28internal LogMessagePacket(KeyValuePair<int, BuildEventArgs>? nodeBuildEvent)
LogMessagePacketBase.cs (8)
297private BuildEventArgs _buildEvent; 311internal LogMessagePacketBase(KeyValuePair<int, BuildEventArgs>? nodeBuildEvent, TargetFinishedTranslator targetFinishedTranslator) 363internal KeyValuePair<int, BuildEventArgs>? NodeBuildEvent 367return new KeyValuePair<int, BuildEventArgs>(_sinkId, _buildEvent); 554private BuildEventArgs GetBuildEventArgFromId() 614private LoggingEventType GetLoggingEventId(BuildEventArgs eventArg) 800private void WriteEventToStream(BuildEventArgs buildEvent, LoggingEventType eventType, ITranslator translator) 1151private BuildEventArgs ReadEventFromStream(LoggingEventType eventType, ITranslator translator)
OutOfProcTaskHostNode.cs (2)
1191private void SendBuildEvent(BuildEventArgs e) 1207LogMessagePacket logMessage = new LogMessagePacket(new KeyValuePair<int, BuildEventArgs>(_currentConfiguration.NodeId, e));