4 types derived from BuildEventArgs
Microsoft.Build.Framework (4)
BuildCheck\BuildCheckEventArgs.cs (1)
15internal abstract class BuildCheckEventArgs : BuildEventArgs
LazyFormattedBuildEventArgs.cs (1)
15public class LazyFormattedBuildEventArgs : BuildEventArgs
Telemetry\WorkerNodeTelemetryEventArgs.cs (1)
10internal sealed class WorkerNodeTelemetryEventArgs(IWorkerNodeTelemetryData workerNodeTelemetryData) : BuildEventArgs
TelemetryEventArgs.cs (1)
14public sealed class TelemetryEventArgs : BuildEventArgs
175 references to BuildEventArgs
Microsoft.Build (143)
BackEnd\BuildManager\BuildManager.cs (5)
206private readonly Dictionary<int, BuildEventArgs> _projectStartedEvents; 311_projectStartedEvents = new Dictionary<int, BuildEventArgs>(); 1082foreach (KeyValuePair<int, BuildEventArgs> projectStartedEvent in _projectStartedEvents) 2714BuildEventContext buildEventContext = _projectStartedEvents.TryGetValue(result.SubmissionId, out BuildEventArgs? buildEventArgs) 3123if (_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)
52void 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)
394void LogBuildEvent(BuildEventArgs buildEvent); 722void Consume(BuildEventArgs buildEvent, int sinkId); 727void Consume(BuildEventArgs buildEvent);
BackEnd\Components\Logging\LoggingContext.cs (1)
288internal void LogBuildEvent(BuildEventArgs buildEvent)
BackEnd\Components\Logging\LoggingService.cs (13)
1239public void LogBuildEvent(BuildEventArgs buildEvent) 1402private static WarningsConfigKey GetWarningsConfigKey(BuildEventArgs buildEventArgs) 1596BuildEventArgs buildEventArgs = loggingEvent as BuildEventArgs ?? (loggingEvent as KeyValuePair<int, BuildEventArgs>?)?.Value; 1729if (loggingEvent is BuildEventArgs) 1733else if (loggingEvent is KeyValuePair<int, BuildEventArgs> loggingEventKeyValuePair) 1738loggingEventKeyValuePair = new KeyValuePair<int, BuildEventArgs>(loggingEventKeyValuePair.Key, buildEventArgs); 1748private void RouteBuildEvent(KeyValuePair<int, BuildEventArgs> nodeEvent) 1767private void RouteBuildEvent(BuildEventArgs eventArg) 1946private void TryRaiseProjectStartedEvent(BuildEventArgs args) 1963private void TryRaiseProjectFinishedEvent(BuildEventArgs args) 1980private 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)) 182private 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)
683BuildEventArgs buildEvent = logMessagePacket.NodeBuildEvent.Value.Value;
Instance\TaskFactoryEngineContext.cs (1)
382internal bool IsEventSerializable(BuildEventArgs e)
Logging\BinaryLogger\BinaryLogger.cs (4)
584private void EventSource_AnyEventRaised(object sender, BuildEventArgs e) 589private void Write(BuildEventArgs e) 611private static bool DoNotWriteToBinlog(BuildEventArgs e) 616private void CollectImports(BuildEventArgs e)
Logging\BinaryLogger\BuildEventArgsReader.cs (41)
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) 523private BuildEventArgs ReadProjectImportedEventArgs() 554private BuildEventArgs ReadTargetSkippedEventArgs() 609private BuildEventArgs ReadBuildStartedEventArgs() 622private BuildEventArgs ReadBuildFinishedEventArgs() 636private BuildEventArgs ReadBuildSubmissionStartedEventArgs() 659private BuildEventArgs ReadProjectEvaluationStartedEventArgs() 676private BuildEventArgs ReadProjectEvaluationFinishedEventArgs() 734private BuildEventArgs ReadProjectStartedEventArgs() 778private BuildEventArgs ReadProjectFinishedEventArgs() 794private BuildEventArgs ReadTargetStartedEventArgs() 817private BuildEventArgs ReadTargetFinishedEventArgs() 839private BuildEventArgs ReadTaskStartedEventArgs() 861private BuildEventArgs ReadTaskFinishedEventArgs() 881private BuildEventArgs ReadBuildErrorEventArgs() 886BuildEventArgs e; 933private BuildEventArgs ReadBuildWarningEventArgs() 938BuildEventArgs e; 985private BuildEventArgs ReadBuildMessageEventArgs() 989BuildEventArgs e; 1039private BuildEventArgs ReadTaskCommandLineEventArgs() 1055private BuildEventArgs ReadTaskParameterEventArgs() 1081private BuildEventArgs ReadCriticalBuildMessageEventArgs() 1085BuildEventArgs e; 1131private BuildEventArgs ReadEnvironmentVariableReadEventArgs() 1146BuildEventArgs e = new EnvironmentVariableReadEventArgs( 1157private BuildEventArgs ReadResponseFileUsedEventArgs() 1167private BuildEventArgs ReadPropertyReassignmentEventArgs() 1193private BuildEventArgs ReadUninitializedPropertyReadEventArgs() 1209private BuildEventArgs ReadPropertyInitialValueSetEventArgs() 1258private BuildEventArgs ReadBuildCheckTracingEventArgs() 1271private BuildEventArgs ReadBuildCheckAcquisitionEventArgs() 1282private BuildEventArgs ReadBuildCanceledEventArgs() 1291private BuildEventArgs ReadLoggersRegisteredEventArgs() 1455private void SetCommonFields(BuildEventArgs buildEventArgs, BuildEventArgsFields fields)
Logging\BinaryLogger\BuildEventArgsWriter.cs (5)
144public void Write(BuildEventArgs e) 203private BinaryLogRecordKind WriteCore(BuildEventArgs e) 663private void WriteBuildEventArgsFields(BuildEventArgs e, bool writeMessage = true, bool writeLineAndColumn = false) 675private void WriteBaseFields(BuildEventArgs e, BuildEventArgsFieldFlags flags) 862private static BuildEventArgsFieldFlags GetBuildEventArgsFieldFlags(BuildEventArgs e, bool writeMessage = true)
Logging\BinaryLogger\EventArgsDispatcher.cs (1)
107public void Dispatch(BuildEventArgs buildEvent)
Logging\BinaryLogger\ProjectImportsCollector.cs (1)
173BuildEventArgs 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)
439private void ShowErrorWarningSummary(IEnumerable<BuildEventArgs> listToProcess) 442var groupByProjectEntryPoint = new Dictionary<ErrorWarningSummaryDictionaryKey, List<BuildEventArgs>>(); 445foreach (BuildEventArgs errorWarningEventArgs in listToProcess) 473errorWarningEventListByTarget = new List<BuildEventArgs>(); 483foreach (KeyValuePair<ErrorWarningSummaryDictionaryKey, List<BuildEventArgs>> valuePair in groupByProjectEntryPoint) 510foreach (BuildEventArgs errorWarningEvent in valuePair.Value) 749/// <param name="e">A <see cref="BuildEventArgs"/> object containing information about the build event.</param> 751internal void WriteProperties(BuildEventArgs e, IEnumerable properties) 816/// <param name="e">A <see cref="BuildEventArgs"/> object containing information about the build event.</param> 818internal void WriteItems(BuildEventArgs e, IEnumerable items) 1030internal string FindLogOutputProperties(BuildEventArgs e) 1383private 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)
84public void ForwardEventUnconditionally(object sender, BuildEventArgs e)
src\msbuild\src\Shared\LogMessagePacketBase.cs (9)
283private BuildEventArgs _buildEvent; 297internal LogMessagePacketBase(KeyValuePair<int, BuildEventArgs>? nodeBuildEvent) 339internal KeyValuePair<int, BuildEventArgs>? NodeBuildEvent 343return new KeyValuePair<int, BuildEventArgs>(_sinkId, _buildEvent); 465protected virtual void TranslateAdditionalProperties(ITranslator translator, LoggingEventType eventType, BuildEventArgs buildEvent) 505private BuildEventArgs GetBuildEventArgFromId() 564private LoggingEventType GetLoggingEventId(BuildEventArgs eventArg) 752protected virtual void WriteEventToStream(BuildEventArgs buildEvent, LoggingEventType eventType, ITranslator translator) 890protected virtual BuildEventArgs ReadEventFromStream(LoggingEventType eventType, ITranslator translator)
Microsoft.Build.Framework (2)
IEventRedirector.cs (1)
16void ForwardEvent(BuildEventArgs buildEvent);
IEventSource.cs (1)
83public delegate void AnyEventHandler(object sender, BuildEventArgs e);
Microsoft.Build.Tasks.Core (15)
AssemblyDependency\Node\OutOfProcRarClient.cs (1)
76BuildEventArgs buildEvent = logMessagePacket.NodeBuildEvent?.Value!;
AssemblyDependency\Node\RarNodeBuildEngine.cs (5)
46private readonly Channel<BuildEventArgs> _eventChannel; 57_eventChannel = Channel.CreateUnbounded<BuildEventArgs>(new UnboundedChannelOptions 130BuildEventArgs buildEventArgs = await _eventChannel.Reader.ReadAsync(cancellationToken).ConfigureAwait(false); 131_buildEvents.EventQueue.Add(new LogMessagePacketBase(new KeyValuePair<int, BuildEventArgs>(0, buildEventArgs))); 165private void LogEvent(BuildEventArgs e)
src\msbuild\src\Shared\LogMessagePacketBase.cs (9)
283private BuildEventArgs _buildEvent; 297internal LogMessagePacketBase(KeyValuePair<int, BuildEventArgs>? nodeBuildEvent) 339internal KeyValuePair<int, BuildEventArgs>? NodeBuildEvent 343return new KeyValuePair<int, BuildEventArgs>(_sinkId, _buildEvent); 465protected virtual void TranslateAdditionalProperties(ITranslator translator, LoggingEventType eventType, BuildEventArgs buildEvent) 505private BuildEventArgs GetBuildEventArgFromId() 564private LoggingEventType GetLoggingEventId(BuildEventArgs eventArg) 752protected virtual void WriteEventToStream(BuildEventArgs buildEvent, LoggingEventType eventType, ITranslator translator) 890protected virtual BuildEventArgs ReadEventFromStream(LoggingEventType eventType, ITranslator translator)
Microsoft.Build.Utilities.Core (1)
MuxLogger.cs (1)
1205private void RaiseAnyEvent(object sender, BuildEventArgs buildEvent)
MSBuild (11)
OutOfProcTaskHostNode.cs (2)
1729private void SendBuildEvent(BuildEventArgs e) 1745LogMessagePacketBase logMessage = new(new KeyValuePair<int, BuildEventArgs>(_currentConfiguration.NodeId, e));
src\msbuild\src\Shared\LogMessagePacketBase.cs (9)
283private BuildEventArgs _buildEvent; 297internal LogMessagePacketBase(KeyValuePair<int, BuildEventArgs>? nodeBuildEvent) 339internal KeyValuePair<int, BuildEventArgs>? NodeBuildEvent 343return new KeyValuePair<int, BuildEventArgs>(_sinkId, _buildEvent); 465protected virtual void TranslateAdditionalProperties(ITranslator translator, LoggingEventType eventType, BuildEventArgs buildEvent) 505private BuildEventArgs GetBuildEventArgFromId() 564private LoggingEventType GetLoggingEventId(BuildEventArgs eventArg) 752protected virtual void WriteEventToStream(BuildEventArgs buildEvent, LoggingEventType eventType, ITranslator translator) 890protected virtual BuildEventArgs ReadEventFromStream(LoggingEventType eventType, ITranslator translator)
NuGet.Build.Tasks (3)
ConsoleOutLogMessage.cs (3)
32/// <inheritdoc cref="BuildEventArgs.HelpKeyword" /> 41/// <inheritdoc cref="BuildEventArgs.Message" /> 47/// <inheritdoc cref="BuildEventArgs.SenderName" />