135 references to BinaryLogRecordKind
Microsoft.Build (135)
Logging\BinaryLogger\BinaryLogger.cs (3)
519
streamToEmbed => eventArgsWriter.WriteBlob(
BinaryLogRecordKind
.ProjectImportArchive, streamToEmbed),
543
stream.WriteByte((byte)
BinaryLogRecordKind
.EndOfFile);
581
private void RawEvents_LogDataSliceReceived(
BinaryLogRecordKind
recordKind, Stream stream)
Logging\BinaryLogger\BinaryLogReplayEventSource.cs (4)
26
event Action<
BinaryLogRecordKind
, Stream>? RawLogRecordReceived;
292
instance.RecordKind !=
BinaryLogRecordKind
.EndOfFile)
348
private Action<
BinaryLogRecordKind
, Stream>? _rawLogRecordReceived;
350
event Action<
BinaryLogRecordKind
, Stream>? IBinaryLogReplaySource.RawLogRecordReceived
Logging\BinaryLogger\BuildEventArgsReader.cs (57)
157
internal readonly record struct RawRecord(
BinaryLogRecordKind
RecordKind, Stream Stream);
179
BinaryLogRecordKind
recordKind = PreprocessRecordsTillNextEvent(IsTextualDataRecord);
181
if (recordKind ==
BinaryLogRecordKind
.EndOfFile)
218
BinaryLogRecordKind
recordKind = PreprocessRecordsTillNextEvent(IsAuxiliaryRecord);
220
if (recordKind ==
BinaryLogRecordKind
.EndOfFile)
260
BinaryLogRecordKind
localRecordKind = recordKind;
285
void HandleError(FormatErrorMessage msgFactory, bool noThrow, ReaderErrorType readerErrorType,
BinaryLogRecordKind
recordKind, Exception? innerException = null)
299
private BuildEventArgs? ReadBuildEventArgs(
BinaryLogRecordKind
recordKind)
302
BinaryLogRecordKind
.BuildStarted => ReadBuildStartedEventArgs(),
303
BinaryLogRecordKind
.BuildFinished => ReadBuildFinishedEventArgs(),
304
BinaryLogRecordKind
.BuildSubmissionStarted => ReadBuildSubmissionStartedEventArgs(),
305
BinaryLogRecordKind
.ProjectStarted => ReadProjectStartedEventArgs(),
306
BinaryLogRecordKind
.ProjectFinished => ReadProjectFinishedEventArgs(),
307
BinaryLogRecordKind
.TargetStarted => ReadTargetStartedEventArgs(),
308
BinaryLogRecordKind
.TargetFinished => ReadTargetFinishedEventArgs(),
309
BinaryLogRecordKind
.TaskStarted => ReadTaskStartedEventArgs(),
310
BinaryLogRecordKind
.TaskFinished => ReadTaskFinishedEventArgs(),
311
BinaryLogRecordKind
.Error => ReadBuildErrorEventArgs(),
312
BinaryLogRecordKind
.Warning => ReadBuildWarningEventArgs(),
313
BinaryLogRecordKind
.Message => ReadBuildMessageEventArgs(),
314
BinaryLogRecordKind
.CriticalBuildMessage => ReadCriticalBuildMessageEventArgs(),
315
BinaryLogRecordKind
.TaskCommandLine => ReadTaskCommandLineEventArgs(),
316
BinaryLogRecordKind
.TaskParameter => ReadTaskParameterEventArgs(),
317
BinaryLogRecordKind
.ProjectEvaluationStarted => ReadProjectEvaluationStartedEventArgs(),
318
BinaryLogRecordKind
.ProjectEvaluationFinished => ReadProjectEvaluationFinishedEventArgs(),
319
BinaryLogRecordKind
.ProjectImported => ReadProjectImportedEventArgs(),
320
BinaryLogRecordKind
.TargetSkipped => ReadTargetSkippedEventArgs(),
321
BinaryLogRecordKind
.EnvironmentVariableRead => ReadEnvironmentVariableReadEventArgs(),
322
BinaryLogRecordKind
.ResponseFileUsed => ReadResponseFileUsedEventArgs(),
323
BinaryLogRecordKind
.PropertyReassignment => ReadPropertyReassignmentEventArgs(),
324
BinaryLogRecordKind
.UninitializedPropertyRead => ReadUninitializedPropertyReadEventArgs(),
325
BinaryLogRecordKind
.PropertyInitialValueSet => ReadPropertyInitialValueSetEventArgs(),
326
BinaryLogRecordKind
.AssemblyLoad => ReadAssemblyLoadEventArgs(),
327
BinaryLogRecordKind
.BuildCheckMessage => ReadBuildMessageEventArgs(),
328
BinaryLogRecordKind
.BuildCheckWarning => ReadBuildWarningEventArgs(),
329
BinaryLogRecordKind
.BuildCheckError => ReadBuildErrorEventArgs(),
330
BinaryLogRecordKind
.BuildCheckTracing => ReadBuildCheckTracingEventArgs(),
331
BinaryLogRecordKind
.BuildCheckAcquisition => ReadBuildCheckAcquisitionEventArgs(),
332
BinaryLogRecordKind
.BuildCanceled => ReadBuildCanceledEventArgs(),
333
BinaryLogRecordKind
.LoggersRegistered => ReadLoggersRegisteredEventArgs(),
334
BinaryLogRecordKind
.MSBuildServerLifecycle => ReadMSBuildServerLifecycleEventArgs(),
343
private
BinaryLogRecordKind
PreprocessRecordsTillNextEvent(Func<
BinaryLogRecordKind
, bool> isPreprocessRecord)
347
BinaryLogRecordKind
recordKind = (
BinaryLogRecordKind
)ReadInt32();
354
if (recordKind ==
BinaryLogRecordKind
.String)
358
else if (recordKind ==
BinaryLogRecordKind
.NameValueList)
363
else if (recordKind ==
BinaryLogRecordKind
.ProjectImportArchive)
370
recordKind = (
BinaryLogRecordKind
)ReadInt32();
376
private static bool IsAuxiliaryRecord(
BinaryLogRecordKind
recordKind)
378
return recordKind ==
BinaryLogRecordKind
.String
379
|| recordKind ==
BinaryLogRecordKind
.NameValueList
380
|| recordKind ==
BinaryLogRecordKind
.ProjectImportArchive;
383
private static bool IsTextualDataRecord(
BinaryLogRecordKind
recordKind)
385
return recordKind ==
BinaryLogRecordKind
.String
386
|| recordKind ==
BinaryLogRecordKind
.ProjectImportArchive;
389
private void ReadEmbeddedContent(
BinaryLogRecordKind
recordKind)
Logging\BinaryLogger\BuildEventArgsWriter.cs (67)
148
BinaryLogRecordKind
eventKind = WriteCore(e);
153
private void FlushRecordToFinalStream(
BinaryLogRecordKind
recordKind, MemoryStream recordStream)
203
private
BinaryLogRecordKind
WriteCore(BuildEventArgs e)
258
public void WriteBlob(
BinaryLogRecordKind
kind, Stream stream)
290
private
BinaryLogRecordKind
Write(BuildStartedEventArgs e)
302
return
BinaryLogRecordKind
.BuildStarted;
305
private
BinaryLogRecordKind
Write(BuildFinishedEventArgs e)
310
return
BinaryLogRecordKind
.BuildFinished;
313
private
BinaryLogRecordKind
Write(BuildCanceledEventArgs e)
317
return
BinaryLogRecordKind
.BuildCanceled;
320
private
BinaryLogRecordKind
Write(LoggersRegisteredEventArgs e)
341
return
BinaryLogRecordKind
.LoggersRegistered;
344
private
BinaryLogRecordKind
Write(ProjectEvaluationStartedEventArgs e)
348
return
BinaryLogRecordKind
.ProjectEvaluationStarted;
351
private
BinaryLogRecordKind
Write(BuildCheckTracingEventArgs e)
360
return
BinaryLogRecordKind
.BuildCheckTracing;
363
private
BinaryLogRecordKind
Write(BuildCheckAcquisitionEventArgs e)
369
return
BinaryLogRecordKind
.BuildCheckAcquisition;
372
private
BinaryLogRecordKind
Write(ProjectEvaluationFinishedEventArgs e)
396
return
BinaryLogRecordKind
.ProjectEvaluationFinished;
399
private
BinaryLogRecordKind
Write(BuildSubmissionStartedEventArgs e)
408
return
BinaryLogRecordKind
.BuildSubmissionStarted;
411
private
BinaryLogRecordKind
Write(ProjectStartedEventArgs e)
437
return
BinaryLogRecordKind
.ProjectStarted;
440
private
BinaryLogRecordKind
Write(ProjectFinishedEventArgs e)
446
return
BinaryLogRecordKind
.ProjectFinished;
449
private
BinaryLogRecordKind
Write(TargetStartedEventArgs e)
458
return
BinaryLogRecordKind
.TargetStarted;
461
private
BinaryLogRecordKind
Write(TargetFinishedEventArgs e)
470
return
BinaryLogRecordKind
.TargetFinished;
473
private
BinaryLogRecordKind
Write(TaskStartedEventArgs e)
483
return
BinaryLogRecordKind
.TaskStarted;
486
private
BinaryLogRecordKind
Write(TaskFinishedEventArgs e)
494
return
BinaryLogRecordKind
.TaskFinished;
497
private
BinaryLogRecordKind
Write(BuildErrorEventArgs e)
510
return
BinaryLogRecordKind
.Error;
513
private
BinaryLogRecordKind
Write(BuildWarningEventArgs e)
526
return
BinaryLogRecordKind
.Warning;
529
private
BinaryLogRecordKind
Write(BuildMessageEventArgs e)
548
return
BinaryLogRecordKind
.Message;
552
private
BinaryLogRecordKind
Write(ProjectImportedEventArgs e)
558
return
BinaryLogRecordKind
.ProjectImported;
561
private
BinaryLogRecordKind
Write(TargetSkippedEventArgs e)
573
return
BinaryLogRecordKind
.TargetSkipped;
576
private
BinaryLogRecordKind
Write(AssemblyLoadBuildEventArgs e)
585
return
BinaryLogRecordKind
.AssemblyLoad;
588
private
BinaryLogRecordKind
Write(MSBuildServerLifecycleEventArgs e)
599
return
BinaryLogRecordKind
.MSBuildServerLifecycle;
602
private
BinaryLogRecordKind
Write(CriticalBuildMessageEventArgs e)
605
return
BinaryLogRecordKind
.CriticalBuildMessage;
608
private
BinaryLogRecordKind
Write(PropertyReassignmentEventArgs e)
616
return
BinaryLogRecordKind
.PropertyReassignment;
619
private
BinaryLogRecordKind
Write(UninitializedPropertyReadEventArgs e)
624
return
BinaryLogRecordKind
.UninitializedPropertyRead;
627
private
BinaryLogRecordKind
Write(PropertyInitialValueSetEventArgs e)
633
return
BinaryLogRecordKind
.PropertyInitialValueSet;
636
private
BinaryLogRecordKind
Write(EnvironmentVariableReadEventArgs e)
644
return
BinaryLogRecordKind
.EnvironmentVariableRead;
647
private
BinaryLogRecordKind
Write(ResponseFileUsedEventArgs e)
651
return
BinaryLogRecordKind
.ResponseFileUsed;
654
private
BinaryLogRecordKind
Write(TaskCommandLineEventArgs e)
659
return
BinaryLogRecordKind
.TaskCommandLine;
662
private
BinaryLogRecordKind
Write(TaskParameterEventArgs e)
675
return
BinaryLogRecordKind
.TaskParameter;
1264
FlushRecordToFinalStream(
BinaryLogRecordKind
.NameValueList, nameValueListStream);
1293
private void Write(
BinaryLogRecordKind
kind)
1379
Write(
BinaryLogRecordKind
.String);
Logging\BinaryLogger\Postprocessing\BinaryLogReaderErrorEventArgs.cs (2)
24
BinaryLogRecordKind
recordKind,
40
public
BinaryLogRecordKind
RecordKind { get; }
Logging\BinaryLogger\Postprocessing\EmbeddedContentEventArgs.cs (2)
11
public EmbeddedContentEventArgs(
BinaryLogRecordKind
contentKind, Stream contentStream)
17
public
BinaryLogRecordKind
ContentKind { get; }