12 references to Read
Microsoft.Build (1)
Logging\BinaryLogger\BinaryLogReplayEventSource.cs (1)
262while (!cancellationToken.IsCancellationRequested && reader.Read() is { } instance)
Microsoft.Build.Engine.UnitTests (11)
BinaryLogger_Tests.cs (3)
290while (reader1.Read() is { } ev1) 293var ev2 = reader2.Read(); 300reader2.Read().ShouldBeNull($"Binlogs ({firstPath} and {secondPath}) are not equal - second has more events >{i + 1}");
BuildEventArgsSerialization_Tests.cs (8)
596var deserialized = buildEventArgsReader.Read(); 961Assert.Throws<EndOfStreamException>(() => buildEventArgsReader.Read()); 1011var deserializedError = (BuildErrorEventArgs)buildEventArgsReader.Read(); 1019var deserializedFinished = (BuildFinishedEventArgs)buildEventArgsReader.Read(); 1071var deserializedEvent = buildEventArgsReader.Read(); 1122var deserializedEvent = buildEventArgsReader.Read(); 1178var deserializedEvent = buildEventArgsReader.Read(); 1233var deserializedArgs = (T)buildEventArgsReader.Read();