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
177 references to BuildEventArgs
Microsoft.Build (143)
BackEnd\BuildManager\BuildManager.cs (8)
208
private readonly Dictionary<int,
BuildEventArgs
> _projectStartedEvents;
326
_projectStartedEvents = new Dictionary<int,
BuildEventArgs
>();
447
/// public deferred-message contract; callers set it via the <see cref="
BuildEventArgs
"/> constructor.
449
internal
BuildEventArgs
? BuildEvent { get; }
486
/// Creates a deferred message backed by a pre-built <see cref="
BuildEventArgs
"/>. When the build
493
public DeferredBuildMessage(
BuildEventArgs
buildEvent)
3007
BuildEventContext buildEventContext = _projectStartedEvents.TryGetValue(result.SubmissionId, out
BuildEventArgs
? buildEventArgs)
3435
if (_projectStartedEvents.TryGetValue(e.BuildEventContext!.SubmissionId, out
var
originalArgs))
BackEnd\Components\Communications\LogMessagePacket.cs (4)
35
internal LogMessagePacket(KeyValuePair<int,
BuildEventArgs
>? nodeBuildEvent)
68
protected override void WriteEventToStream(
BuildEventArgs
buildEvent, LoggingEventType eventType, ITranslator translator)
84
protected override
BuildEventArgs
ReadEventFromStream(LoggingEventType eventType, ITranslator translator)
495
protected override void TranslateAdditionalProperties(ITranslator translator, LoggingEventType eventType,
BuildEventArgs
buildEvent)
BackEnd\Components\Logging\BuildEventArgTransportSink.cs (3)
124
public void Consume(
BuildEventArgs
buildEvent)
133
public void Consume(
BuildEventArgs
buildEvent, int sinkId)
147
LogMessagePacket logPacket = new LogMessagePacket(new KeyValuePair<int,
BuildEventArgs
>(sinkId, buildEvent));
BackEnd\Components\Logging\CentralForwardingLogger.cs (1)
115
private void EventSource_AnyEventRaised(object sender,
BuildEventArgs
buildEvent)
BackEnd\Components\Logging\EventRedirectorToSink.cs (1)
51
void IEventRedirector.ForwardEvent(
BuildEventArgs
buildEvent)
BackEnd\Components\Logging\EventSourceSink.cs (3)
221
public void Consume(
BuildEventArgs
buildEvent, int sinkId)
234
public void Consume(
BuildEventArgs
buildEvent)
403
private void RaiseAnyEvent(
BuildEventArgs
buildEvent)
BackEnd\Components\Logging\ILoggingService.cs (3)
405
void LogBuildEvent(
BuildEventArgs
buildEvent);
733
void Consume(
BuildEventArgs
buildEvent, int sinkId);
738
void Consume(
BuildEventArgs
buildEvent);
BackEnd\Components\Logging\LoggingContext.cs (1)
290
internal void LogBuildEvent(
BuildEventArgs
buildEvent)
BackEnd\Components\Logging\LoggingService.cs (13)
1322
public void LogBuildEvent(
BuildEventArgs
buildEvent)
1611
private static WarningsConfigKey GetWarningsConfigKey(
BuildEventArgs
buildEventArgs)
1805
BuildEventArgs
buildEventArgs = loggingEvent as
BuildEventArgs
?? (loggingEvent as KeyValuePair<int,
BuildEventArgs
>?)?.Value;
1936
if (loggingEvent is
BuildEventArgs
)
1940
else if (loggingEvent is KeyValuePair<int,
BuildEventArgs
> loggingEventKeyValuePair)
1945
loggingEventKeyValuePair = new KeyValuePair<int,
BuildEventArgs
>(loggingEventKeyValuePair.Key, buildEventArgs);
1955
private void RouteBuildEvent(KeyValuePair<int,
BuildEventArgs
> nodeEvent)
1974
private void RouteBuildEvent(
BuildEventArgs
eventArg)
2153
private void TryRaiseProjectStartedEvent(
BuildEventArgs
args)
2170
private void TryRaiseProjectFinishedEvent(
BuildEventArgs
args)
2187
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)
1158
internal bool IsEventSerializable(
BuildEventArgs
e)
BackEnd\Node\OutOfProcNode.cs (1)
621
BuildEventArgs
buildEvent = logMessage.NodeBuildEvent.Value.Value;
BuildCheck\API\BuildCheckResult.cs (1)
30
internal
BuildEventArgs
ToEventArgs(CheckResultSeverity severity)
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (6)
20
private Dictionary<Type, Action<
BuildEventArgs
>> _eventHandlers;
21
private readonly Dictionary<Type, Action<
BuildEventArgs
>> _eventHandlersFull;
22
private readonly Dictionary<Type, Action<
BuildEventArgs
>> _eventHandlersRestore;
57
public void HandleBuildEvent(
BuildEventArgs
e)
59
if (_eventHandlers.TryGetValue(e.GetType(), out Action<
BuildEventArgs
>? handler))
213
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)
653
foreach (
BuildEventArgs
deferredArgs in list)
663
private readonly Dictionary<int, List<
BuildEventArgs
>> _deferredEvalDiagnostics = new();
680
void IResultReporter.ReportResult(
BuildEventArgs
eventArgs, ICheckContext checkContext)
795
void ReportResult(
BuildEventArgs
result, ICheckContext checkContext);
BuildCheck\Infrastructure\CheckContext\CheckDispatchingContext.cs (1)
31
public void DispatchBuildEvent(
BuildEventArgs
buildEvent)
BuildCheck\Infrastructure\CheckContext\CheckLoggingContext.cs (1)
26
public void DispatchBuildEvent(
BuildEventArgs
buildEvent)
BuildCheck\Infrastructure\CheckContext\ICheckContext.cs (2)
27
/// Dispatch a <see cref="
BuildEventArgs
"/>.
29
void DispatchBuildEvent(
BuildEventArgs
buildEvent);
BuildCheck\Infrastructure\CheckWrapper.cs (1)
158
BuildEventArgs
eventArgs = result.ToEventArgs(config.Severity);
Errors\InternalLoggerException.cs (6)
88
BuildEventArgs
e,
119
e = (
BuildEventArgs
)info.GetValue("e", typeof(
BuildEventArgs
));
189
public
BuildEventArgs
BuildEventArgs
252
BuildEventArgs
e,
267
private
BuildEventArgs
e;
Instance\TaskFactories\TaskHostTask.cs (1)
781
BuildEventArgs
buildEvent = logMessagePacket.NodeBuildEvent.Value.Value;
Instance\TaskFactoryEngineContext.cs (1)
382
internal bool IsEventSerializable(
BuildEventArgs
e)
Logging\BinaryLogger\BinaryLogger.cs (4)
714
private void EventSource_AnyEventRaised(object sender,
BuildEventArgs
e)
719
private void Write(
BuildEventArgs
e, BinaryLogRecordKind? recordKind = null)
759
private static bool DoNotWriteToBinlog(
BuildEventArgs
e)
764
private void CollectImports(
BuildEventArgs
e)
Logging\BinaryLogger\BuildEventArgsReader.cs (46)
67
typeof(
BuildEventArgs
).GetField("threadId", BindingFlags.Instance | BindingFlags.NonPublic);
69
typeof(
BuildEventArgs
).GetField("senderName", BindingFlags.Instance | BindingFlags.NonPublic);
74
/// <param name="binaryReader">The <see cref="BinaryReader"/> to read <see cref="
BuildEventArgs
"/> from.</param>
216
/// The next <see cref="
BuildEventArgs
"/>.
219
public
BuildEventArgs
? Read() => Read(eventFilter: null);
231
public
BuildEventArgs
? Read(BinaryLogEventFilter? eventFilter) => Read(eventFilter, CancellationToken.None);
253
internal
BuildEventArgs
? Read(BinaryLogEventFilter? eventFilter, CancellationToken cancellationToken)
256
BuildEventArgs
? result = null;
412
private static Func<BuildEventArgsReader,
BuildEventArgs
?>? GetDeserializer(BinaryLogRecordKind recordKind)
673
private
BuildEventArgs
ReadAssemblyResolutionSearchTraceEventArgs()
757
private
BuildEventArgs
ReadAssemblyConflictDependencyDetailsMessageEventArgs()
776
private
BuildEventArgs
ReadAssemblyConflictWarningEventArgs()
805
private
BuildEventArgs
ReadProjectImportedEventArgs()
836
private
BuildEventArgs
ReadTargetSkippedEventArgs()
891
private
BuildEventArgs
ReadBuildStartedEventArgs()
904
private
BuildEventArgs
ReadBuildFinishedEventArgs()
918
private
BuildEventArgs
ReadBuildSubmissionStartedEventArgs()
941
private
BuildEventArgs
ReadProjectEvaluationStartedEventArgs()
958
private
BuildEventArgs
ReadProjectEvaluationFinishedEventArgs()
1016
private
BuildEventArgs
ReadProjectStartedEventArgs()
1060
private
BuildEventArgs
ReadProjectFinishedEventArgs()
1076
private
BuildEventArgs
ReadTargetStartedEventArgs()
1099
private
BuildEventArgs
ReadTargetFinishedEventArgs()
1121
private
BuildEventArgs
ReadTaskStartedEventArgs()
1143
private
BuildEventArgs
ReadTaskFinishedEventArgs()
1163
private
BuildEventArgs
ReadBuildErrorEventArgs()
1168
BuildEventArgs
e;
1215
private
BuildEventArgs
ReadBuildWarningEventArgs()
1220
BuildEventArgs
e;
1267
private
BuildEventArgs
ReadBuildMessageEventArgs()
1271
BuildEventArgs
e;
1321
private
BuildEventArgs
ReadTaskCommandLineEventArgs()
1337
private
BuildEventArgs
ReadTaskParameterEventArgs()
1363
private
BuildEventArgs
ReadCriticalBuildMessageEventArgs()
1367
BuildEventArgs
e;
1413
private
BuildEventArgs
ReadEnvironmentVariableReadEventArgs()
1428
BuildEventArgs
e = new EnvironmentVariableReadEventArgs(
1439
private
BuildEventArgs
ReadResponseFileUsedEventArgs()
1449
private
BuildEventArgs
ReadPropertyReassignmentEventArgs()
1475
private
BuildEventArgs
ReadUninitializedPropertyReadEventArgs()
1491
private
BuildEventArgs
ReadPropertyInitialValueSetEventArgs()
1567
private
BuildEventArgs
ReadBuildCheckTracingEventArgs()
1580
private
BuildEventArgs
ReadBuildCheckAcquisitionEventArgs()
1591
private
BuildEventArgs
ReadBuildCanceledEventArgs()
1600
private
BuildEventArgs
ReadLoggersRegisteredEventArgs()
1771
private void SetCommonFields(
BuildEventArgs
buildEventArgs, BuildEventArgsFields fields)
Logging\BinaryLogger\BuildEventArgsWriter.cs (6)
173
public void Write(
BuildEventArgs
e, BinaryLogRecordKind? originalRecordKind = null)
241
private BinaryLogRecordKind WriteCore(
BuildEventArgs
e)
313
internal static BinaryLogRecordKind GetRecordKind(
BuildEventArgs
e) => e switch
872
private void WriteBuildEventArgsFields(
BuildEventArgs
e, bool writeMessage = true, bool writeLineAndColumn = false)
884
private void WriteBaseFields(
BuildEventArgs
e, BuildEventArgsFieldFlags flags)
1071
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)
335
private void ForwardEvent(object sender,
BuildEventArgs
e)
370
/// <param name="e">The <see cref="
BuildEventArgs
"/> to forward.</param>
371
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)
600
private void AnyEventRaisedHandler(object sender,
BuildEventArgs
e) => AnyEventRaised?.Invoke(sender, e);
Logging\TerminalLogger\ForwardingTerminalLogger.cs (1)
84
public void ForwardEventUnconditionally(object sender,
BuildEventArgs
e)
Microsoft.Build.Framework (21)
AssemblyReferenceConflictEventArgs.cs (3)
254
/// The warning <see cref="
BuildEventArgs
.Message"/> adds the outer wrapper.
423
/// The <see cref="
BuildEventArgs
.Message"/> is rendered in invariant English from the structured details.
519
/// The <see cref="
BuildEventArgs
.Message"/> is rendered in invariant English from the structured details.
AssemblyResolutionSearchTraceEventArgs.cs (1)
200
/// The <see cref="
BuildEventArgs
.Message"/> is rendered using the invariant culture.
BackEnd\LogMessagePacketBase.cs (11)
38
private
BuildEventArgs
_buildEvent;
48
internal LogMessagePacketBase(KeyValuePair<int,
BuildEventArgs
>? nodeBuildEvent)
77
internal KeyValuePair<int,
BuildEventArgs
>? NodeBuildEvent
81
return new KeyValuePair<int,
BuildEventArgs
>(_sinkId, _buildEvent);
183
/// Every <see cref="
BuildEventArgs
"/> defines <c>WriteToStream</c> / <c>CreateFromStream</c>, so the
193
protected virtual void TranslateAdditionalProperties(ITranslator translator, LoggingEventType eventType,
BuildEventArgs
buildEvent)
200
private
BuildEventArgs
GetBuildEventArgFromId()
251
_ => Assumed.Unreachable<
BuildEventArgs
>($"Should not get to the default of GetBuildEventArgFromId ID: {_eventType}")
261
private LoggingEventType GetLoggingEventId(
BuildEventArgs
eventArg)
465
protected virtual void WriteEventToStream(
BuildEventArgs
buildEvent, LoggingEventType eventType, ITranslator translator)
597
protected virtual
BuildEventArgs
ReadEventFromStream(LoggingEventType eventType, ITranslator translator)
IEventRedirector.cs (1)
16
void ForwardEvent(
BuildEventArgs
buildEvent);
IEventSource.cs (1)
83
public delegate void AnyEventHandler(object sender,
BuildEventArgs
e);
Telemetry\IBuildEventArgsTelemetryProvider.cs (2)
8
/// <see cref="
BuildEventArgs
"/> they were processing when they failed - most notably
20
/// Gets the simple type name of the <see cref="
BuildEventArgs
"/> that was being delivered
Utilities\EventArgsFormatting.cs (1)
18
internal static string GetLocalizedMessage(
BuildEventArgs
e)
Utilities\TaskLoggingHelper.cs (1)
207
private void VerifyInitialized(
BuildEventArgs
eventArgs)
Microsoft.Build.Tasks.Core (6)
AssemblyDependency\Node\OutOfProcRarClient.cs (1)
93
internal static void DispatchBuildEvent(ResolveAssemblyReference rarTask,
BuildEventArgs
buildEvent)
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)
Microsoft.Build.Utilities.Core (1)
MuxLogger.cs (1)
1205
private void RaiseAnyEvent(object sender,
BuildEventArgs
buildEvent)
Microsoft.NET.ProjectData.Tasks (1)
ProjectDataBuildCompletionLogger.cs (1)
98
private void OnAnyEventRaised(object sender,
BuildEventArgs
e)
MSBuild (2)
OutOfProcTaskHostNode.cs (2)
1993
private void SendBuildEvent(
BuildEventArgs
e)
2010
LogMessagePacketBase logMessage = new(new KeyValuePair<int,
BuildEventArgs
>(configuration.NodeId, e));
NuGet.Build.Tasks (3)
ConsoleOutLogMessage.cs (3)
32
/// <inheritdoc cref="
BuildEventArgs
.HelpKeyword" />
41
/// <inheritdoc cref="
BuildEventArgs
.Message" />
47
/// <inheritdoc cref="
BuildEventArgs
.SenderName" />