15 overrides of TryRead
InMemory.FunctionalTests (4)
Http3\WebTransport\WebTransportTestUtilities.cs (1)
197public override bool TryRead(out ReadResult result)
src\Servers\Kestrel\shared\CompletionPipeReader.cs (1)
57public override bool TryRead(out ReadResult result)
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (1)
80public override bool TryRead(out ReadResult result) => _input.TryRead(out result);
TestTransport\InMemoryTransportConnection.cs (1)
159public override bool TryRead(out ReadResult result)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpRequestPipeReader.cs (1)
66public override bool TryRead(out ReadResult result)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (1)
80public override bool TryRead(out ReadResult result) => _input.TryRead(out result);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\CompletionPipeReader.cs (1)
57public override bool TryRead(out ReadResult result)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\Servers\Kestrel\shared\CompletionPipeReader.cs (1)
57public override bool TryRead(out ReadResult result)
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
Shared\TestPipeReader.cs (1)
48public override bool TryRead(out ReadResult result)
Microsoft.AspNetCore.SignalR.Tests (1)
HubConnectionHandlerTests.cs (1)
2976public override bool TryRead(out ReadResult result) =>
Sockets.FunctionalTests (2)
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (1)
80public override bool TryRead(out ReadResult result) => _input.TryRead(out result);
src\Servers\Kestrel\test\FunctionalTests\ConnectionMiddlewareTests.cs (1)
122public override bool TryRead(out ReadResult result)
System.IO.Pipelines (3)
System\IO\Pipelines\Pipe.DefaultPipeReader.cs (1)
22public override bool TryRead(out ReadResult result) => _pipe.TryRead(out result);
System\IO\Pipelines\SequencePipeReader.cs (1)
74public override bool TryRead(out ReadResult result)
System\IO\Pipelines\StreamPipeReader.cs (1)
458public override bool TryRead(out ReadResult result)
54 references to TryRead
InMemory.FunctionalTests (3)
src\Servers\Kestrel\shared\CompletionPipeReader.cs (1)
59return _inner.TryRead(out result);
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (1)
80public override bool TryRead(out ReadResult result) => _input.TryRead(out result);
TestTransport\InMemoryTransportConnection.cs (1)
161return _reader.TryRead(out result);
Microsoft.AspNetCore.Http.Connections.Tests (2)
HttpConnectionDispatcherTests.cs (2)
244Assert.True(connection.Transport.Input.TryRead(out var result)); 612Assert.True(connection.Transport.Input.TryRead(out var result));
Microsoft.AspNetCore.Server.Kestrel.Core (6)
Internal\Http\Http1ChunkedEncodingMessageBody.cs (1)
46var boolResult = _requestBodyPipe.Reader.TryRead(out _readResult);
Internal\Http\Http1ContentLengthMessageBody.cs (1)
140if (!_context.Input.TryRead(out _readResult))
Internal\Http\Http1UpgradeMessageBody.cs (1)
64if (!_context.Input.TryRead(out readResult))
Internal\Http2\Http2FrameWriter.cs (1)
192reader.TryRead(out var readResult);
Internal\Http2\Http2MessageBody.cs (1)
87var hasResult = _context.RequestBodyPipe.Reader.TryRead(out readResult);
Internal\Http3\Http3MessageBody.cs (1)
55var hasResult = _context.RequestBodyPipe.Reader.TryRead(out readResult);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (31)
BodyControlTests.cs (2)
101Assert.Throws<Exception>(() => requestPipe.TryRead(out var res))); 118Assert.Throws<ObjectDisposedException>(() => requestPipe.TryRead(out var res));
Http1\Http1OutputProducerTests.cs (1)
51Assert.False(socketOutput.Pipe.Reader.TryRead(out var result));
MessageBodyTests.cs (27)
96Assert.True(reader.TryRead(out var readResult)); 102reader.TryRead(out readResult); 144Assert.True(reader.TryRead(out var readResult)); 146Assert.Throws<InvalidOperationException>(() => reader.TryRead(out readResult)); 1075Assert.True(reader.TryRead(out var readResult)); 1094Assert.True(reader.TryRead(out var readResult)); 1101Assert.True(reader.TryRead(out readResult)); 1121Assert.True(reader.TryRead(out var readResult)); 1129reader.TryRead(out readResult); 1147Assert.True(reader.TryRead(out var readResult)); 1152reader.TryRead(out readResult); 1170Assert.True(reader.TryRead(out var readResult)); 1194Assert.True(reader.TryRead(out var readResult)); 1203Assert.Throws<InvalidOperationException>(() => reader.TryRead(out readResult)); 1221var ex0 = Assert.Throws<BadHttpRequestException>(() => reader.TryRead(out var readResult)); 1222var ex1 = Assert.Throws<BadHttpRequestException>(() => reader.TryRead(out var readResult)); 1254var ex0 = Assert.Throws<BadHttpRequestException>(() => reader.TryRead(out var readResult)); 1255var ex1 = Assert.Throws<BadHttpRequestException>(() => reader.TryRead(out var readResult)); 1281var ex0 = Assert.Throws<BadHttpRequestException>(() => reader.TryRead(out var readResult)); 1282var ex1 = Assert.Throws<BadHttpRequestException>(() => reader.TryRead(out var readResult)); 1307Assert.True(reader.TryRead(out var readResult)); 1331Assert.True(reader.TryRead(out var readResult)); 1340Assert.Throws<InvalidOperationException>(() => reader.TryRead(out readResult)); 1357Assert.True(reader.TryRead(out var readResult)); 1366Assert.Throws<InvalidOperationException>(() => reader.TryRead(out readResult)); 1383Assert.True(reader.TryRead(out var readResult)); 1394reader.TryRead(out readResult);
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (1)
80public override bool TryRead(out ReadResult result) => _input.TryRead(out result);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\CompletionPipeReader.cs (1)
59return _inner.TryRead(out result);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\Servers\Kestrel\shared\CompletionPipeReader.cs (1)
59return _inner.TryRead(out result);
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\SignalR\common\testassets\Tests.Utils\TestClient.cs (1)
277if (!Connection.Application.Input.TryRead(out var result))
Microsoft.AspNetCore.SignalR.Tests (5)
HubConnectionHandlerTests.cs (1)
2977_originalPipeReader.TryRead(out result);
Internal\MessageBufferTests.cs (4)
118Assert.False(pipes.Application.Input.TryRead(out res)); 280Assert.False(pipes.Application.Input.TryRead(out res)); 359Assert.False(pipes.Application.Input.TryRead(out res)); 494Assert.False(pipes.Application.Input.TryRead(out res));
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
TestClient.cs (1)
277if (!Connection.Application.Input.TryRead(out var result))
Microsoft.AspNetCore.TestHost (1)
HttpContextBuilder.cs (1)
196return !_requestPipe.Reader.TryRead(out var result) || !result.IsCompleted;
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (1)
80public override bool TryRead(out ReadResult result) => _input.TryRead(out result);
System.IO.Pipelines (1)
System\IO\Pipelines\PipeReader.cs (1)
44/// further data is available. You should instead call <see cref="System.IO.Pipelines.PipeReader.TryRead" /> to avoid a blocking call.