123 references to BinaryLogRecordKind
Microsoft.Build (113)
Logging\BinaryLogger\BinaryLogger.cs (3)
318streamToEmbed => eventArgsWriter.WriteBlob(BinaryLogRecordKind.ProjectImportArchive, streamToEmbed), 332stream.WriteByte((byte)BinaryLogRecordKind.EndOfFile); 339private void RawEvents_LogDataSliceReceived(BinaryLogRecordKind recordKind, Stream stream)
Logging\BinaryLogger\BinaryLogReplayEventSource.cs (4)
26event Action<BinaryLogRecordKind, Stream>? RawLogRecordReceived; 279instance.RecordKind != BinaryLogRecordKind.EndOfFile) 335private Action<BinaryLogRecordKind, Stream>? _rawLogRecordReceived; 337event Action<BinaryLogRecordKind, Stream>? IBinaryLogReplaySource.RawLogRecordReceived
Logging\BinaryLogger\BuildEventArgsReader.cs (47)
156internal readonly record struct RawRecord(BinaryLogRecordKind RecordKind, Stream Stream); 178BinaryLogRecordKind recordKind = PreprocessRecordsTillNextEvent(IsTextualDataRecord); 180if (recordKind == BinaryLogRecordKind.EndOfFile) 217BinaryLogRecordKind recordKind = PreprocessRecordsTillNextEvent(IsAuxiliaryRecord); 219if (recordKind == BinaryLogRecordKind.EndOfFile) 280void HandleError(FormatErrorMessage msgFactory, bool noThrow, ReaderErrorType readerErrorType, BinaryLogRecordKind recordKind, Exception? innerException = null) 294private BuildEventArgs? ReadBuildEventArgs(BinaryLogRecordKind recordKind) 297BinaryLogRecordKind.BuildStarted => ReadBuildStartedEventArgs(), 298BinaryLogRecordKind.BuildFinished => ReadBuildFinishedEventArgs(), 299BinaryLogRecordKind.ProjectStarted => ReadProjectStartedEventArgs(), 300BinaryLogRecordKind.ProjectFinished => ReadProjectFinishedEventArgs(), 301BinaryLogRecordKind.TargetStarted => ReadTargetStartedEventArgs(), 302BinaryLogRecordKind.TargetFinished => ReadTargetFinishedEventArgs(), 303BinaryLogRecordKind.TaskStarted => ReadTaskStartedEventArgs(), 304BinaryLogRecordKind.TaskFinished => ReadTaskFinishedEventArgs(), 305BinaryLogRecordKind.Error => ReadBuildErrorEventArgs(), 306BinaryLogRecordKind.Warning => ReadBuildWarningEventArgs(), 307BinaryLogRecordKind.Message => ReadBuildMessageEventArgs(), 308BinaryLogRecordKind.CriticalBuildMessage => ReadCriticalBuildMessageEventArgs(), 309BinaryLogRecordKind.TaskCommandLine => ReadTaskCommandLineEventArgs(), 310BinaryLogRecordKind.TaskParameter => ReadTaskParameterEventArgs(), 311BinaryLogRecordKind.ProjectEvaluationStarted => ReadProjectEvaluationStartedEventArgs(), 312BinaryLogRecordKind.ProjectEvaluationFinished => ReadProjectEvaluationFinishedEventArgs(), 313BinaryLogRecordKind.ProjectImported => ReadProjectImportedEventArgs(), 314BinaryLogRecordKind.TargetSkipped => ReadTargetSkippedEventArgs(), 315BinaryLogRecordKind.EnvironmentVariableRead => ReadEnvironmentVariableReadEventArgs(), 316BinaryLogRecordKind.ResponseFileUsed => ReadResponseFileUsedEventArgs(), 317BinaryLogRecordKind.PropertyReassignment => ReadPropertyReassignmentEventArgs(), 318BinaryLogRecordKind.UninitializedPropertyRead => ReadUninitializedPropertyReadEventArgs(), 319BinaryLogRecordKind.PropertyInitialValueSet => ReadPropertyInitialValueSetEventArgs(), 320BinaryLogRecordKind.AssemblyLoad => ReadAssemblyLoadEventArgs(), 329private BinaryLogRecordKind PreprocessRecordsTillNextEvent(Func<BinaryLogRecordKind, bool> isPreprocessRecord) 333BinaryLogRecordKind recordKind = (BinaryLogRecordKind)ReadInt32(); 340if (recordKind == BinaryLogRecordKind.String) 344else if (recordKind == BinaryLogRecordKind.NameValueList) 349else if (recordKind == BinaryLogRecordKind.ProjectImportArchive) 356recordKind = (BinaryLogRecordKind)ReadInt32(); 362private static bool IsAuxiliaryRecord(BinaryLogRecordKind recordKind) 364return recordKind == BinaryLogRecordKind.String 365|| recordKind == BinaryLogRecordKind.NameValueList 366|| recordKind == BinaryLogRecordKind.ProjectImportArchive; 369private static bool IsTextualDataRecord(BinaryLogRecordKind recordKind) 371return recordKind == BinaryLogRecordKind.String 372|| recordKind == BinaryLogRecordKind.ProjectImportArchive; 375private void ReadEmbeddedContent(BinaryLogRecordKind recordKind)
Logging\BinaryLogger\BuildEventArgsWriter.cs (55)
149BinaryLogRecordKind eventKind = WriteCore(e); 154private void FlushRecordToFinalStream(BinaryLogRecordKind recordKind, MemoryStream recordStream) 202private BinaryLogRecordKind WriteCore(BuildEventArgs e) 252public void WriteBlob(BinaryLogRecordKind kind, Stream stream) 284private BinaryLogRecordKind Write(BuildStartedEventArgs e) 296return BinaryLogRecordKind.BuildStarted; 299private BinaryLogRecordKind Write(BuildFinishedEventArgs e) 304return BinaryLogRecordKind.BuildFinished; 307private BinaryLogRecordKind Write(ProjectEvaluationStartedEventArgs e) 311return BinaryLogRecordKind.ProjectEvaluationStarted; 314private BinaryLogRecordKind Write(ProjectEvaluationFinishedEventArgs e) 338return BinaryLogRecordKind.ProjectEvaluationFinished; 341private BinaryLogRecordKind Write(ProjectStartedEventArgs e) 367return BinaryLogRecordKind.ProjectStarted; 370private BinaryLogRecordKind Write(ProjectFinishedEventArgs e) 376return BinaryLogRecordKind.ProjectFinished; 379private BinaryLogRecordKind Write(TargetStartedEventArgs e) 388return BinaryLogRecordKind.TargetStarted; 391private BinaryLogRecordKind Write(TargetFinishedEventArgs e) 400return BinaryLogRecordKind.TargetFinished; 403private BinaryLogRecordKind Write(TaskStartedEventArgs e) 413return BinaryLogRecordKind.TaskStarted; 416private BinaryLogRecordKind Write(TaskFinishedEventArgs e) 424return BinaryLogRecordKind.TaskFinished; 427private BinaryLogRecordKind Write(BuildErrorEventArgs e) 440return BinaryLogRecordKind.Error; 443private BinaryLogRecordKind Write(BuildWarningEventArgs e) 456return BinaryLogRecordKind.Warning; 459private BinaryLogRecordKind Write(BuildMessageEventArgs e) 476return BinaryLogRecordKind.Message; 480private BinaryLogRecordKind Write(ProjectImportedEventArgs e) 486return BinaryLogRecordKind.ProjectImported; 489private BinaryLogRecordKind Write(TargetSkippedEventArgs e) 501return BinaryLogRecordKind.TargetSkipped; 504private BinaryLogRecordKind Write(AssemblyLoadBuildEventArgs e) 513return BinaryLogRecordKind.AssemblyLoad; 516private BinaryLogRecordKind Write(CriticalBuildMessageEventArgs e) 519return BinaryLogRecordKind.CriticalBuildMessage; 522private BinaryLogRecordKind Write(PropertyReassignmentEventArgs e) 529return BinaryLogRecordKind.PropertyReassignment; 532private BinaryLogRecordKind Write(UninitializedPropertyReadEventArgs e) 536return BinaryLogRecordKind.UninitializedPropertyRead; 539private BinaryLogRecordKind Write(PropertyInitialValueSetEventArgs e) 545return BinaryLogRecordKind.PropertyInitialValueSet; 548private BinaryLogRecordKind Write(EnvironmentVariableReadEventArgs e) 552return BinaryLogRecordKind.EnvironmentVariableRead; 554private BinaryLogRecordKind Write(ResponseFileUsedEventArgs e) 558return BinaryLogRecordKind.ResponseFileUsed; 560private BinaryLogRecordKind Write(TaskCommandLineEventArgs e) 565return BinaryLogRecordKind.TaskCommandLine; 568private BinaryLogRecordKind Write(TaskParameterEventArgs e) 581return BinaryLogRecordKind.TaskParameter; 1096FlushRecordToFinalStream(BinaryLogRecordKind.NameValueList, nameValueListStream); 1125private void Write(BinaryLogRecordKind kind) 1211Write(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; }
Microsoft.Build.Engine.UnitTests (10)
BuildEventArgsSerialization_Tests.cs (10)
42writer.WriteBlob(BinaryLogRecordKind.ProjectImportArchive, inputStream); 47Assert.Equal(BinaryLogRecordKind.ProjectImportArchive, (BinaryLogRecordKind)binaryReader.Read7BitEncodedInt()); 956readerErrors[0].RecordKind.ShouldBe(BinaryLogRecordKind.Error); 992BinaryLogRecordKind unknownType = (BinaryLogRecordKind) Enum.GetValues(typeof(BinaryLogRecordKind)).Cast<BinaryLogRecordKind>().Select(e => (int)e).Max() + 2; 1067readerErrors[0].RecordKind.ShouldBe(BinaryLogRecordKind.Error); 1123readerErrors[0].RecordKind.ShouldBe(BinaryLogRecordKind.Error);