4 types derived from BuildEventArgs
Microsoft.Build.Framework (4)
BuildCheck\BuildCheckEventArgs.cs (1)
15
internal abstract class BuildCheckEventArgs :
BuildEventArgs
LazyFormattedBuildEventArgs.cs (1)
15
public class LazyFormattedBuildEventArgs :
BuildEventArgs
Telemetry\WorkerNodeTelemetryEventArgs.cs (1)
10
internal sealed class WorkerNodeTelemetryEventArgs(IWorkerNodeTelemetryData workerNodeTelemetryData) :
BuildEventArgs
TelemetryEventArgs.cs (1)
14
public sealed class TelemetryEventArgs :
BuildEventArgs
175 references to BuildEventArgs
Microsoft.Build (143)
BackEnd\BuildManager\BuildManager.cs (5)
206
private readonly Dictionary<int,
BuildEventArgs
> _projectStartedEvents;
311
_projectStartedEvents = new Dictionary<int,
BuildEventArgs
>();
1082
foreach (KeyValuePair<int,
BuildEventArgs
> projectStartedEvent in _projectStartedEvents)
2714
BuildEventContext buildEventContext = _projectStartedEvents.TryGetValue(result.SubmissionId, out
BuildEventArgs
? buildEventArgs)
3123
if (_projectStartedEvents.TryGetValue(e.BuildEventContext!.SubmissionId, out
var
originalArgs))
BackEnd\Components\Communications\LogMessagePacket.cs (4)
36
internal LogMessagePacket(KeyValuePair<int,
BuildEventArgs
>? nodeBuildEvent)
69
protected override void WriteEventToStream(
BuildEventArgs
buildEvent, LoggingEventType eventType, ITranslator translator)
85
protected override
BuildEventArgs
ReadEventFromStream(LoggingEventType eventType, ITranslator translator)
496
protected override void TranslateAdditionalProperties(ITranslator translator, LoggingEventType eventType,
BuildEventArgs
buildEvent)
BackEnd\Components\Logging\BuildEventArgTransportSink.cs (3)
125
public void Consume(
BuildEventArgs
buildEvent)
136
public void Consume(
BuildEventArgs
buildEvent, int sinkId)
150
LogMessagePacket logPacket = new LogMessagePacket(new KeyValuePair<int,
BuildEventArgs
>(sinkId, buildEvent));
BackEnd\Components\Logging\CentralForwardingLogger.cs (1)
116
private void EventSource_AnyEventRaised(object sender,
BuildEventArgs
buildEvent)
BackEnd\Components\Logging\EventRedirectorToSink.cs (1)
52
void IEventRedirector.ForwardEvent(
BuildEventArgs
buildEvent)
BackEnd\Components\Logging\EventSourceSink.cs (3)
222
public void Consume(
BuildEventArgs
buildEvent, int sinkId)
235
public void Consume(
BuildEventArgs
buildEvent)
404
private void RaiseAnyEvent(
BuildEventArgs
buildEvent)
BackEnd\Components\Logging\ILoggingService.cs (3)
394
void LogBuildEvent(
BuildEventArgs
buildEvent);
722
void Consume(
BuildEventArgs
buildEvent, int sinkId);
727
void Consume(
BuildEventArgs
buildEvent);
BackEnd\Components\Logging\LoggingContext.cs (1)
288
internal void LogBuildEvent(
BuildEventArgs
buildEvent)
BackEnd\Components\Logging\LoggingService.cs (13)
1239
public void LogBuildEvent(
BuildEventArgs
buildEvent)
1402
private static WarningsConfigKey GetWarningsConfigKey(
BuildEventArgs
buildEventArgs)
1596
BuildEventArgs
buildEventArgs = loggingEvent as
BuildEventArgs
?? (loggingEvent as KeyValuePair<int,
BuildEventArgs
>?)?.Value;
1729
if (loggingEvent is
BuildEventArgs
)
1733
else if (loggingEvent is KeyValuePair<int,
BuildEventArgs
> loggingEventKeyValuePair)
1738
loggingEventKeyValuePair = new KeyValuePair<int,
BuildEventArgs
>(loggingEventKeyValuePair.Key, buildEventArgs);
1748
private void RouteBuildEvent(KeyValuePair<int,
BuildEventArgs
> nodeEvent)
1767
private void RouteBuildEvent(
BuildEventArgs
eventArg)
1946
private void TryRaiseProjectStartedEvent(
BuildEventArgs
args)
1963
private void TryRaiseProjectFinishedEvent(
BuildEventArgs
args)
1980
private string GetAndVerifyProjectFileFromContext(
BuildEventArgs
eventArgs, bool allowCacheMiss)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
52
BuildEventArgs
.ResourceStringFormatter = ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword;
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
1117
internal bool IsEventSerializable(
BuildEventArgs
e)
BackEnd\Node\OutOfProcNode.cs (1)
606
BuildEventArgs
buildEvent = logMessage.NodeBuildEvent.Value.Value;
BuildCheck\API\BuildCheckResult.cs (1)
30
internal
BuildEventArgs
ToEventArgs(CheckResultSeverity severity)
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (6)
18
private Dictionary<Type, Action<
BuildEventArgs
>> _eventHandlers;
19
private readonly Dictionary<Type, Action<
BuildEventArgs
>> _eventHandlersFull;
20
private readonly Dictionary<Type, Action<
BuildEventArgs
>> _eventHandlersRestore;
55
public void HandleBuildEvent(
BuildEventArgs
e)
57
if (_eventHandlers.TryGetValue(e.GetType(), out Action<
BuildEventArgs
>? handler))
182
private BuildEventContext GetBuildEventContext(
BuildEventArgs
e) => e.BuildEventContext
BuildCheck\Infrastructure\BuildCheckConnectorLogger.cs (1)
50
private void EventSource_AnyEventRaised(object sender,
BuildEventArgs
e)
BuildCheck\Infrastructure\BuildCheckForwardingLogger.cs (1)
52
public void EventSource_AnyEventRaised(object sender,
BuildEventArgs
buildEvent)
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (4)
650
foreach (
BuildEventArgs
deferredArgs in list)
660
private readonly Dictionary<int, List<
BuildEventArgs
>> _deferredEvalDiagnostics = new();
677
void IResultReporter.ReportResult(
BuildEventArgs
eventArgs, ICheckContext checkContext)
792
void ReportResult(
BuildEventArgs
result, ICheckContext checkContext);
BuildCheck\Infrastructure\CheckContext\CheckDispatchingContext.cs (1)
30
public void DispatchBuildEvent(
BuildEventArgs
buildEvent)
BuildCheck\Infrastructure\CheckContext\CheckLoggingContext.cs (1)
25
public void DispatchBuildEvent(
BuildEventArgs
buildEvent)
BuildCheck\Infrastructure\CheckContext\ICheckContext.cs (2)
26
/// Dispatch a <see cref="
BuildEventArgs
"/>.
28
void DispatchBuildEvent(
BuildEventArgs
buildEvent);
BuildCheck\Infrastructure\CheckWrapper.cs (1)
158
BuildEventArgs
eventArgs = result.ToEventArgs(config.Severity);
Errors\InternalLoggerException.cs (6)
86
BuildEventArgs
e,
117
e = (
BuildEventArgs
)info.GetValue("e", typeof(
BuildEventArgs
));
187
public
BuildEventArgs
BuildEventArgs
242
BuildEventArgs
e,
257
private
BuildEventArgs
e;
Instance\TaskFactories\TaskHostTask.cs (1)
683
BuildEventArgs
buildEvent = logMessagePacket.NodeBuildEvent.Value.Value;
Instance\TaskFactoryEngineContext.cs (1)
382
internal bool IsEventSerializable(
BuildEventArgs
e)
Logging\BinaryLogger\BinaryLogger.cs (4)
584
private void EventSource_AnyEventRaised(object sender,
BuildEventArgs
e)
589
private void Write(
BuildEventArgs
e)
611
private static bool DoNotWriteToBinlog(
BuildEventArgs
e)
616
private void CollectImports(
BuildEventArgs
e)
Logging\BinaryLogger\BuildEventArgsReader.cs (41)
60
typeof(
BuildEventArgs
).GetField("threadId", BindingFlags.Instance | BindingFlags.NonPublic);
62
typeof(
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
"/>.
212
public
BuildEventArgs
? Read()
215
BuildEventArgs
? result = null;
299
private
BuildEventArgs
? ReadBuildEventArgs(BinaryLogRecordKind recordKind)
523
private
BuildEventArgs
ReadProjectImportedEventArgs()
554
private
BuildEventArgs
ReadTargetSkippedEventArgs()
609
private
BuildEventArgs
ReadBuildStartedEventArgs()
622
private
BuildEventArgs
ReadBuildFinishedEventArgs()
636
private
BuildEventArgs
ReadBuildSubmissionStartedEventArgs()
659
private
BuildEventArgs
ReadProjectEvaluationStartedEventArgs()
676
private
BuildEventArgs
ReadProjectEvaluationFinishedEventArgs()
734
private
BuildEventArgs
ReadProjectStartedEventArgs()
778
private
BuildEventArgs
ReadProjectFinishedEventArgs()
794
private
BuildEventArgs
ReadTargetStartedEventArgs()
817
private
BuildEventArgs
ReadTargetFinishedEventArgs()
839
private
BuildEventArgs
ReadTaskStartedEventArgs()
861
private
BuildEventArgs
ReadTaskFinishedEventArgs()
881
private
BuildEventArgs
ReadBuildErrorEventArgs()
886
BuildEventArgs
e;
933
private
BuildEventArgs
ReadBuildWarningEventArgs()
938
BuildEventArgs
e;
985
private
BuildEventArgs
ReadBuildMessageEventArgs()
989
BuildEventArgs
e;
1039
private
BuildEventArgs
ReadTaskCommandLineEventArgs()
1055
private
BuildEventArgs
ReadTaskParameterEventArgs()
1081
private
BuildEventArgs
ReadCriticalBuildMessageEventArgs()
1085
BuildEventArgs
e;
1131
private
BuildEventArgs
ReadEnvironmentVariableReadEventArgs()
1146
BuildEventArgs
e = new EnvironmentVariableReadEventArgs(
1157
private
BuildEventArgs
ReadResponseFileUsedEventArgs()
1167
private
BuildEventArgs
ReadPropertyReassignmentEventArgs()
1193
private
BuildEventArgs
ReadUninitializedPropertyReadEventArgs()
1209
private
BuildEventArgs
ReadPropertyInitialValueSetEventArgs()
1258
private
BuildEventArgs
ReadBuildCheckTracingEventArgs()
1271
private
BuildEventArgs
ReadBuildCheckAcquisitionEventArgs()
1282
private
BuildEventArgs
ReadBuildCanceledEventArgs()
1291
private
BuildEventArgs
ReadLoggersRegisteredEventArgs()
1455
private void SetCommonFields(
BuildEventArgs
buildEventArgs, BuildEventArgsFields fields)
Logging\BinaryLogger\BuildEventArgsWriter.cs (5)
144
public void Write(
BuildEventArgs
e)
203
private BinaryLogRecordKind WriteCore(
BuildEventArgs
e)
663
private void WriteBuildEventArgsFields(
BuildEventArgs
e, bool writeMessage = true, bool writeLineAndColumn = false)
675
private void WriteBaseFields(
BuildEventArgs
e, BuildEventArgsFieldFlags flags)
862
private static BuildEventArgsFieldFlags GetBuildEventArgsFieldFlags(
BuildEventArgs
e, bool writeMessage = true)
Logging\BinaryLogger\EventArgsDispatcher.cs (1)
107
public void Dispatch(
BuildEventArgs
buildEvent)
Logging\BinaryLogger\ProjectImportsCollector.cs (1)
173
BuildEventArgs
args = new BuildMessageEventArgs(
Logging\DistributedLoggers\ConfigurableForwardingLogger.cs (3)
334
private void ForwardEvent(object sender,
BuildEventArgs
e)
369
/// <param name="e">The <see cref="
BuildEventArgs
"/> to forward.</param>
370
protected virtual void ForwardToCentralLogger(
BuildEventArgs
e)
Logging\NullCentralLogger.cs (1)
54
public void AnyEventRaisedHandler(object sender,
BuildEventArgs
e)
Logging\ParallelLogger\ParallelConsoleLogger.cs (12)
439
private void ShowErrorWarningSummary(IEnumerable<
BuildEventArgs
> listToProcess)
442
var groupByProjectEntryPoint = new Dictionary<ErrorWarningSummaryDictionaryKey, List<
BuildEventArgs
>>();
445
foreach (
BuildEventArgs
errorWarningEventArgs in listToProcess)
473
errorWarningEventListByTarget = new List<
BuildEventArgs
>();
483
foreach (KeyValuePair<ErrorWarningSummaryDictionaryKey, List<
BuildEventArgs
>> valuePair in groupByProjectEntryPoint)
510
foreach (
BuildEventArgs
errorWarningEvent in valuePair.Value)
749
/// <param name="e">A <see cref="
BuildEventArgs
"/> object containing information about the build event.</param>
751
internal void WriteProperties(
BuildEventArgs
e, IEnumerable properties)
816
/// <param name="e">A <see cref="
BuildEventArgs
"/> object containing information about the build event.</param>
818
internal void WriteItems(
BuildEventArgs
e, IEnumerable items)
1030
internal string FindLogOutputProperties(
BuildEventArgs
e)
1383
private bool WriteTargetMessagePrefix(
BuildEventArgs
e, BuildEventContext context, DateTime timeStamp)
Logging\ProfilerLogger.cs (1)
93
private void ProjectEvaluationFinishedRaised(object sender,
BuildEventArgs
e)
Logging\ReusableLogger.cs (1)
578
private void AnyEventRaisedHandler(object sender,
BuildEventArgs
e) => AnyEventRaised?.Invoke(sender, e);
Logging\TerminalLogger\ForwardingTerminalLogger.cs (1)
84
public void ForwardEventUnconditionally(object sender,
BuildEventArgs
e)
src\msbuild\src\Shared\LogMessagePacketBase.cs (9)
283
private
BuildEventArgs
_buildEvent;
297
internal LogMessagePacketBase(KeyValuePair<int,
BuildEventArgs
>? nodeBuildEvent)
339
internal KeyValuePair<int,
BuildEventArgs
>? NodeBuildEvent
343
return new KeyValuePair<int,
BuildEventArgs
>(_sinkId, _buildEvent);
465
protected virtual void TranslateAdditionalProperties(ITranslator translator, LoggingEventType eventType,
BuildEventArgs
buildEvent)
505
private
BuildEventArgs
GetBuildEventArgFromId()
564
private LoggingEventType GetLoggingEventId(
BuildEventArgs
eventArg)
752
protected virtual void WriteEventToStream(
BuildEventArgs
buildEvent, LoggingEventType eventType, ITranslator translator)
890
protected virtual
BuildEventArgs
ReadEventFromStream(LoggingEventType eventType, ITranslator translator)
Microsoft.Build.Framework (2)
IEventRedirector.cs (1)
16
void ForwardEvent(
BuildEventArgs
buildEvent);
IEventSource.cs (1)
83
public delegate void AnyEventHandler(object sender,
BuildEventArgs
e);
Microsoft.Build.Tasks.Core (15)
AssemblyDependency\Node\OutOfProcRarClient.cs (1)
76
BuildEventArgs
buildEvent = logMessagePacket.NodeBuildEvent?.Value!;
AssemblyDependency\Node\RarNodeBuildEngine.cs (5)
46
private readonly Channel<
BuildEventArgs
> _eventChannel;
57
_eventChannel = Channel.CreateUnbounded<
BuildEventArgs
>(new UnboundedChannelOptions
130
BuildEventArgs
buildEventArgs = await _eventChannel.Reader.ReadAsync(cancellationToken).ConfigureAwait(false);
131
_buildEvents.EventQueue.Add(new LogMessagePacketBase(new KeyValuePair<int,
BuildEventArgs
>(0, buildEventArgs)));
165
private void LogEvent(
BuildEventArgs
e)
src\msbuild\src\Shared\LogMessagePacketBase.cs (9)
283
private
BuildEventArgs
_buildEvent;
297
internal LogMessagePacketBase(KeyValuePair<int,
BuildEventArgs
>? nodeBuildEvent)
339
internal KeyValuePair<int,
BuildEventArgs
>? NodeBuildEvent
343
return new KeyValuePair<int,
BuildEventArgs
>(_sinkId, _buildEvent);
465
protected virtual void TranslateAdditionalProperties(ITranslator translator, LoggingEventType eventType,
BuildEventArgs
buildEvent)
505
private
BuildEventArgs
GetBuildEventArgFromId()
564
private LoggingEventType GetLoggingEventId(
BuildEventArgs
eventArg)
752
protected virtual void WriteEventToStream(
BuildEventArgs
buildEvent, LoggingEventType eventType, ITranslator translator)
890
protected virtual
BuildEventArgs
ReadEventFromStream(LoggingEventType eventType, ITranslator translator)
Microsoft.Build.Utilities.Core (1)
MuxLogger.cs (1)
1205
private void RaiseAnyEvent(object sender,
BuildEventArgs
buildEvent)
MSBuild (11)
OutOfProcTaskHostNode.cs (2)
1729
private void SendBuildEvent(
BuildEventArgs
e)
1745
LogMessagePacketBase logMessage = new(new KeyValuePair<int,
BuildEventArgs
>(_currentConfiguration.NodeId, e));
src\msbuild\src\Shared\LogMessagePacketBase.cs (9)
283
private
BuildEventArgs
_buildEvent;
297
internal LogMessagePacketBase(KeyValuePair<int,
BuildEventArgs
>? nodeBuildEvent)
339
internal KeyValuePair<int,
BuildEventArgs
>? NodeBuildEvent
343
return new KeyValuePair<int,
BuildEventArgs
>(_sinkId, _buildEvent);
465
protected virtual void TranslateAdditionalProperties(ITranslator translator, LoggingEventType eventType,
BuildEventArgs
buildEvent)
505
private
BuildEventArgs
GetBuildEventArgFromId()
564
private LoggingEventType GetLoggingEventId(
BuildEventArgs
eventArg)
752
protected virtual void WriteEventToStream(
BuildEventArgs
buildEvent, LoggingEventType eventType, ITranslator translator)
890
protected 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" />