5 overrides of ReadAsync
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpRequestPipeReader.cs (1)
59public override ValueTask<ReadResult> ReadAsync(CancellationToken cancellationToken = default)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\aspnetcore\src\Servers\Kestrel\shared\CompletionPipeReader.cs (1)
52public override ValueTask<ReadResult> ReadAsync(CancellationToken cancellationToken = default)
System.IO.Pipelines (3)
System\IO\Pipelines\Pipe.DefaultPipeReader.cs (1)
24public override ValueTask<ReadResult> ReadAsync(CancellationToken cancellationToken = default) => _pipe.ReadAsync(cancellationToken);
System\IO\Pipelines\SequencePipeReader.cs (1)
62public override ValueTask<ReadResult> ReadAsync(CancellationToken cancellationToken = default)
System\IO\Pipelines\StreamPipeReader.cs (1)
203public override ValueTask<ReadResult> ReadAsync(CancellationToken cancellationToken = default)
44 references to ReadAsync
Aspire.Dashboard (1)
Otlp\Http\OtlpHttpEndpointsBuilder.cs (1)
259result = await httpContext.Request.BodyReader.ReadAsync().ConfigureAwait(false);
Aspire.Hosting (1)
Dcp\DcpHost.cs (1)
402var result = await reader.ReadAsync(CancellationToken.None).ConfigureAwait(false);
Microsoft.AspNetCore.Http.Connections (3)
Internal\Transports\LongPollingServerTransport.cs (1)
36var result = await _application.ReadAsync(token);
Internal\Transports\ServerSentEventsServerTransport.cs (1)
51var result = await _application.ReadAsync(cancellationToken);
Internal\Transports\WebSocketsServerTransport.cs (1)
208var result = await _application.Input.ReadAsync();
Microsoft.AspNetCore.Server.Kestrel.Core (19)
Internal\Http\Http1ChunkedEncodingMessageBody.cs (3)
68var readAwaitable = _requestBodyPipe.Reader.ReadAsync(cancellationToken); 100var awaitable = _context.Input.ReadAsync(); 152awaitable = _context.Input.ReadAsync();
Internal\Http\Http1Connection.cs (1)
848awaitable = Input.ReadAsync();
Internal\Http\Http1ContentLengthMessageBody.cs (1)
59var readAwaitable = _context.Input.ReadAsync(cancellationToken);
Internal\Http\Http1UpgradeMessageBody.cs (2)
80var readTask = _context.Input.ReadAsync(cancellationToken); 101readResult = await _context.Input.ReadAsync(cancellationToken);
Internal\Http2\Http2Connection.cs (3)
324var result = await Input.ReadAsync(); 557var result = await Input.ReadAsync(); 1897var readResult = await reader.ReadAsync();
Internal\Http2\Http2MessageBody.cs (1)
111var readAwaitable = _context.RequestBodyPipe.Reader.ReadAsync(cancellationToken);
Internal\Http3\Http3ControlStream.cs (2)
160var result = await Input.ReadAsync(); 263var result = await Input.ReadAsync();
Internal\Http3\Http3MessageBody.cs (1)
79var readAwaitable = _context.RequestBodyPipe.Reader.ReadAsync(cancellationToken);
Internal\Http3\Http3OutputProducer.cs (1)
419readResult = await _pipeReader.ReadAsync();
Internal\Http3\Http3PendingStream.cs (1)
50var result = await Input.ReadAsync();
Internal\Http3\Http3Stream.cs (1)
643var result = await Input.ReadAsync();
Middleware\TlsListener.cs (1)
33var result = await input.ReadAsync(cancellationToken);
src\aspnetcore\src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
121var result = await _input.ReadAsync(cancellationToken);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Internal\QuicStreamContext.cs (1)
383var result = await output.ReadAsync();
src\aspnetcore\src\Servers\Kestrel\shared\CompletionPipeReader.cs (1)
54return _inner.ReadAsync(cancellationToken);
Microsoft.AspNetCore.SignalR.Core (2)
HubConnectionContext.cs (1)
547var result = await input.ReadAsync();
HubConnectionHandler.cs (1)
273var result = await input.ReadAsync();
Microsoft.AspNetCore.WebUtilities (1)
FormPipeReader.cs (1)
96var readResult = await _pipeReader.ReadAsync(cancellationToken);
System.IO.Pipelines (15)
System\IO\Pipelines\PipeReader.cs (6)
70ReadResult result = await ReadAsync(cancellationToken).ConfigureAwait(false); 86/// The <see cref="System.IO.Pipelines.ReadResult.Buffer" /> previously returned from <see cref="System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> must not be accessed after this call. 96/// The <see cref="System.IO.Pipelines.ReadResult.Buffer" /> previously returned from <see cref="System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> must not be accessed after this call. 117/// <summary>Cancels the pending <see cref="System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> operation without causing it to throw and without completing the <see cref="System.IO.Pipelines.PipeReader" />. If there is no pending operation, this cancels the next operation.</summary> 118/// <remarks>The canceled <see cref="System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> operation returns a <see cref="System.IO.Pipelines.ReadResult" /> where <see cref="System.IO.Pipelines.ReadResult.IsCanceled" /> is <see langword="true" />.</remarks> 236ReadResult result = await ReadAsync(cancellationToken).ConfigureAwait(false);
System\IO\Pipelines\PipeReaderStream.cs (2)
66ValueTask<ReadResult> vt = _pipeReader.ReadAsync(); 107ReadResult result = await _pipeReader.ReadAsync(cancellationToken).ConfigureAwait(false);
System\IO\Pipelines\PipeWriter.cs (1)
56/// <summary>Makes bytes written available to <see cref="System.IO.Pipelines.PipeReader" /> and runs <see cref="System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> continuation.</summary>
System\IO\Pipelines\ReadResult.cs (6)
8/// <summary>Represents the result of a <see cref="System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> call.</summary> 15/// <param name="buffer">The read-only sequence containing the bytes of data that were read in the <see cref="System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> call.</param> 16/// <param name="isCanceled">A flag that indicates if the <see cref="System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> operation that produced this <see cref="System.IO.Pipelines.ReadResult" /> was canceled by <see cref="System.IO.Pipelines.PipeReader.CancelPendingRead" />.</param> 34/// <value>A read-only sequence containing the bytes of data that were read in the <see cref="System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> call.</value> 37/// <summary>Gets a value that indicates whether the current <see cref="System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> operation was canceled by <see cref="System.IO.Pipelines.PipeReader.CancelPendingRead" />.</summary> 38/// <value><see langword="true" /> if the <see cref="System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> operation that produced this <see cref="System.IO.Pipelines.ReadResult" /> was canceled by <see cref="System.IO.Pipelines.PipeReader.CancelPendingRead" />; otherwise, <see langword="false" />.</value>