132 references to BinaryLogRecordKind
Microsoft.Build (132)
Logging\BinaryLogger\BinaryLogger.cs (3)
517
streamToEmbed => eventArgsWriter.WriteBlob(
BinaryLogRecordKind
.ProjectImportArchive, streamToEmbed),
541
stream.WriteByte((byte)
BinaryLogRecordKind
.EndOfFile);
579
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 (56)
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(),
342
private
BinaryLogRecordKind
PreprocessRecordsTillNextEvent(Func<
BinaryLogRecordKind
, bool> isPreprocessRecord)
346
BinaryLogRecordKind
recordKind = (
BinaryLogRecordKind
)ReadInt32();
353
if (recordKind ==
BinaryLogRecordKind
.String)
357
else if (recordKind ==
BinaryLogRecordKind
.NameValueList)
362
else if (recordKind ==
BinaryLogRecordKind
.ProjectImportArchive)
369
recordKind = (
BinaryLogRecordKind
)ReadInt32();
375
private static bool IsAuxiliaryRecord(
BinaryLogRecordKind
recordKind)
377
return recordKind ==
BinaryLogRecordKind
.String
378
|| recordKind ==
BinaryLogRecordKind
.NameValueList
379
|| recordKind ==
BinaryLogRecordKind
.ProjectImportArchive;
382
private static bool IsTextualDataRecord(
BinaryLogRecordKind
recordKind)
384
return recordKind ==
BinaryLogRecordKind
.String
385
|| recordKind ==
BinaryLogRecordKind
.ProjectImportArchive;
388
private void ReadEmbeddedContent(
BinaryLogRecordKind
recordKind)
Logging\BinaryLogger\BuildEventArgsWriter.cs (65)
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)
547
return
BinaryLogRecordKind
.Message;
551
private
BinaryLogRecordKind
Write(ProjectImportedEventArgs e)
557
return
BinaryLogRecordKind
.ProjectImported;
560
private
BinaryLogRecordKind
Write(TargetSkippedEventArgs e)
572
return
BinaryLogRecordKind
.TargetSkipped;
575
private
BinaryLogRecordKind
Write(AssemblyLoadBuildEventArgs e)
584
return
BinaryLogRecordKind
.AssemblyLoad;
587
private
BinaryLogRecordKind
Write(CriticalBuildMessageEventArgs e)
590
return
BinaryLogRecordKind
.CriticalBuildMessage;
593
private
BinaryLogRecordKind
Write(PropertyReassignmentEventArgs e)
601
return
BinaryLogRecordKind
.PropertyReassignment;
604
private
BinaryLogRecordKind
Write(UninitializedPropertyReadEventArgs e)
609
return
BinaryLogRecordKind
.UninitializedPropertyRead;
612
private
BinaryLogRecordKind
Write(PropertyInitialValueSetEventArgs e)
618
return
BinaryLogRecordKind
.PropertyInitialValueSet;
621
private
BinaryLogRecordKind
Write(EnvironmentVariableReadEventArgs e)
629
return
BinaryLogRecordKind
.EnvironmentVariableRead;
632
private
BinaryLogRecordKind
Write(ResponseFileUsedEventArgs e)
636
return
BinaryLogRecordKind
.ResponseFileUsed;
639
private
BinaryLogRecordKind
Write(TaskCommandLineEventArgs e)
644
return
BinaryLogRecordKind
.TaskCommandLine;
647
private
BinaryLogRecordKind
Write(TaskParameterEventArgs e)
660
return
BinaryLogRecordKind
.TaskParameter;
1220
FlushRecordToFinalStream(
BinaryLogRecordKind
.NameValueList, nameValueListStream);
1249
private void Write(
BinaryLogRecordKind
kind)
1335
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; }