132 references to BinaryLogRecordKind
Microsoft.Build (132)
Logging\BinaryLogger\BinaryLogger.cs (3)
517streamToEmbed => eventArgsWriter.WriteBlob(BinaryLogRecordKind.ProjectImportArchive, streamToEmbed), 541stream.WriteByte((byte)BinaryLogRecordKind.EndOfFile); 579private void RawEvents_LogDataSliceReceived(BinaryLogRecordKind recordKind, Stream stream)
Logging\BinaryLogger\BinaryLogReplayEventSource.cs (4)
26event Action<BinaryLogRecordKind, Stream>? RawLogRecordReceived; 292instance.RecordKind != BinaryLogRecordKind.EndOfFile) 348private Action<BinaryLogRecordKind, Stream>? _rawLogRecordReceived; 350event Action<BinaryLogRecordKind, Stream>? IBinaryLogReplaySource.RawLogRecordReceived
Logging\BinaryLogger\BuildEventArgsReader.cs (56)
157internal readonly record struct RawRecord(BinaryLogRecordKind RecordKind, Stream Stream); 179BinaryLogRecordKind recordKind = PreprocessRecordsTillNextEvent(IsTextualDataRecord); 181if (recordKind == BinaryLogRecordKind.EndOfFile) 218BinaryLogRecordKind recordKind = PreprocessRecordsTillNextEvent(IsAuxiliaryRecord); 220if (recordKind == BinaryLogRecordKind.EndOfFile) 260BinaryLogRecordKind localRecordKind = recordKind; 285void HandleError(FormatErrorMessage msgFactory, bool noThrow, ReaderErrorType readerErrorType, BinaryLogRecordKind recordKind, Exception? innerException = null) 299private BuildEventArgs? ReadBuildEventArgs(BinaryLogRecordKind recordKind) 302BinaryLogRecordKind.BuildStarted => ReadBuildStartedEventArgs(), 303BinaryLogRecordKind.BuildFinished => ReadBuildFinishedEventArgs(), 304BinaryLogRecordKind.BuildSubmissionStarted => ReadBuildSubmissionStartedEventArgs(), 305BinaryLogRecordKind.ProjectStarted => ReadProjectStartedEventArgs(), 306BinaryLogRecordKind.ProjectFinished => ReadProjectFinishedEventArgs(), 307BinaryLogRecordKind.TargetStarted => ReadTargetStartedEventArgs(), 308BinaryLogRecordKind.TargetFinished => ReadTargetFinishedEventArgs(), 309BinaryLogRecordKind.TaskStarted => ReadTaskStartedEventArgs(), 310BinaryLogRecordKind.TaskFinished => ReadTaskFinishedEventArgs(), 311BinaryLogRecordKind.Error => ReadBuildErrorEventArgs(), 312BinaryLogRecordKind.Warning => ReadBuildWarningEventArgs(), 313BinaryLogRecordKind.Message => ReadBuildMessageEventArgs(), 314BinaryLogRecordKind.CriticalBuildMessage => ReadCriticalBuildMessageEventArgs(), 315BinaryLogRecordKind.TaskCommandLine => ReadTaskCommandLineEventArgs(), 316BinaryLogRecordKind.TaskParameter => ReadTaskParameterEventArgs(), 317BinaryLogRecordKind.ProjectEvaluationStarted => ReadProjectEvaluationStartedEventArgs(), 318BinaryLogRecordKind.ProjectEvaluationFinished => ReadProjectEvaluationFinishedEventArgs(), 319BinaryLogRecordKind.ProjectImported => ReadProjectImportedEventArgs(), 320BinaryLogRecordKind.TargetSkipped => ReadTargetSkippedEventArgs(), 321BinaryLogRecordKind.EnvironmentVariableRead => ReadEnvironmentVariableReadEventArgs(), 322BinaryLogRecordKind.ResponseFileUsed => ReadResponseFileUsedEventArgs(), 323BinaryLogRecordKind.PropertyReassignment => ReadPropertyReassignmentEventArgs(), 324BinaryLogRecordKind.UninitializedPropertyRead => ReadUninitializedPropertyReadEventArgs(), 325BinaryLogRecordKind.PropertyInitialValueSet => ReadPropertyInitialValueSetEventArgs(), 326BinaryLogRecordKind.AssemblyLoad => ReadAssemblyLoadEventArgs(), 327BinaryLogRecordKind.BuildCheckMessage => ReadBuildMessageEventArgs(), 328BinaryLogRecordKind.BuildCheckWarning => ReadBuildWarningEventArgs(), 329BinaryLogRecordKind.BuildCheckError => ReadBuildErrorEventArgs(), 330BinaryLogRecordKind.BuildCheckTracing => ReadBuildCheckTracingEventArgs(), 331BinaryLogRecordKind.BuildCheckAcquisition => ReadBuildCheckAcquisitionEventArgs(), 332BinaryLogRecordKind.BuildCanceled => ReadBuildCanceledEventArgs(), 333BinaryLogRecordKind.LoggersRegistered => ReadLoggersRegisteredEventArgs(), 342private BinaryLogRecordKind PreprocessRecordsTillNextEvent(Func<BinaryLogRecordKind, bool> isPreprocessRecord) 346BinaryLogRecordKind recordKind = (BinaryLogRecordKind)ReadInt32(); 353if (recordKind == BinaryLogRecordKind.String) 357else if (recordKind == BinaryLogRecordKind.NameValueList) 362else if (recordKind == BinaryLogRecordKind.ProjectImportArchive) 369recordKind = (BinaryLogRecordKind)ReadInt32(); 375private static bool IsAuxiliaryRecord(BinaryLogRecordKind recordKind) 377return recordKind == BinaryLogRecordKind.String 378|| recordKind == BinaryLogRecordKind.NameValueList 379|| recordKind == BinaryLogRecordKind.ProjectImportArchive; 382private static bool IsTextualDataRecord(BinaryLogRecordKind recordKind) 384return recordKind == BinaryLogRecordKind.String 385|| recordKind == BinaryLogRecordKind.ProjectImportArchive; 388private void ReadEmbeddedContent(BinaryLogRecordKind recordKind)
Logging\BinaryLogger\BuildEventArgsWriter.cs (65)
148BinaryLogRecordKind eventKind = WriteCore(e); 153private void FlushRecordToFinalStream(BinaryLogRecordKind recordKind, MemoryStream recordStream) 203private BinaryLogRecordKind WriteCore(BuildEventArgs e) 258public void WriteBlob(BinaryLogRecordKind kind, Stream stream) 290private BinaryLogRecordKind Write(BuildStartedEventArgs e) 302return BinaryLogRecordKind.BuildStarted; 305private BinaryLogRecordKind Write(BuildFinishedEventArgs e) 310return BinaryLogRecordKind.BuildFinished; 313private BinaryLogRecordKind Write(BuildCanceledEventArgs e) 317return BinaryLogRecordKind.BuildCanceled; 320private BinaryLogRecordKind Write(LoggersRegisteredEventArgs e) 341return BinaryLogRecordKind.LoggersRegistered; 344private BinaryLogRecordKind Write(ProjectEvaluationStartedEventArgs e) 348return BinaryLogRecordKind.ProjectEvaluationStarted; 351private BinaryLogRecordKind Write(BuildCheckTracingEventArgs e) 360return BinaryLogRecordKind.BuildCheckTracing; 363private BinaryLogRecordKind Write(BuildCheckAcquisitionEventArgs e) 369return BinaryLogRecordKind.BuildCheckAcquisition; 372private BinaryLogRecordKind Write(ProjectEvaluationFinishedEventArgs e) 396return BinaryLogRecordKind.ProjectEvaluationFinished; 399private BinaryLogRecordKind Write(BuildSubmissionStartedEventArgs e) 408return BinaryLogRecordKind.BuildSubmissionStarted; 411private BinaryLogRecordKind Write(ProjectStartedEventArgs e) 437return BinaryLogRecordKind.ProjectStarted; 440private BinaryLogRecordKind Write(ProjectFinishedEventArgs e) 446return BinaryLogRecordKind.ProjectFinished; 449private BinaryLogRecordKind Write(TargetStartedEventArgs e) 458return BinaryLogRecordKind.TargetStarted; 461private BinaryLogRecordKind Write(TargetFinishedEventArgs e) 470return BinaryLogRecordKind.TargetFinished; 473private BinaryLogRecordKind Write(TaskStartedEventArgs e) 483return BinaryLogRecordKind.TaskStarted; 486private BinaryLogRecordKind Write(TaskFinishedEventArgs e) 494return BinaryLogRecordKind.TaskFinished; 497private BinaryLogRecordKind Write(BuildErrorEventArgs e) 510return BinaryLogRecordKind.Error; 513private BinaryLogRecordKind Write(BuildWarningEventArgs e) 526return BinaryLogRecordKind.Warning; 529private BinaryLogRecordKind Write(BuildMessageEventArgs e) 547return BinaryLogRecordKind.Message; 551private BinaryLogRecordKind Write(ProjectImportedEventArgs e) 557return BinaryLogRecordKind.ProjectImported; 560private BinaryLogRecordKind Write(TargetSkippedEventArgs e) 572return BinaryLogRecordKind.TargetSkipped; 575private BinaryLogRecordKind Write(AssemblyLoadBuildEventArgs e) 584return BinaryLogRecordKind.AssemblyLoad; 587private BinaryLogRecordKind Write(CriticalBuildMessageEventArgs e) 590return BinaryLogRecordKind.CriticalBuildMessage; 593private BinaryLogRecordKind Write(PropertyReassignmentEventArgs e) 601return BinaryLogRecordKind.PropertyReassignment; 604private BinaryLogRecordKind Write(UninitializedPropertyReadEventArgs e) 609return BinaryLogRecordKind.UninitializedPropertyRead; 612private BinaryLogRecordKind Write(PropertyInitialValueSetEventArgs e) 618return BinaryLogRecordKind.PropertyInitialValueSet; 621private BinaryLogRecordKind Write(EnvironmentVariableReadEventArgs e) 629return BinaryLogRecordKind.EnvironmentVariableRead; 632private BinaryLogRecordKind Write(ResponseFileUsedEventArgs e) 636return BinaryLogRecordKind.ResponseFileUsed; 639private BinaryLogRecordKind Write(TaskCommandLineEventArgs e) 644return BinaryLogRecordKind.TaskCommandLine; 647private BinaryLogRecordKind Write(TaskParameterEventArgs e) 660return BinaryLogRecordKind.TaskParameter; 1220FlushRecordToFinalStream(BinaryLogRecordKind.NameValueList, nameValueListStream); 1249private void Write(BinaryLogRecordKind kind) 1335Write(BinaryLogRecordKind.String);
Logging\BinaryLogger\Postprocessing\BinaryLogReaderErrorEventArgs.cs (2)
24BinaryLogRecordKind recordKind, 40public BinaryLogRecordKind RecordKind { get; }
Logging\BinaryLogger\Postprocessing\EmbeddedContentEventArgs.cs (2)
11public EmbeddedContentEventArgs(BinaryLogRecordKind contentKind, Stream contentStream) 17public BinaryLogRecordKind ContentKind { get; }