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