5 overrides of ReadAsync
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpRequestPipeReader.cs (1)
59
public override ValueTask<ReadResult>
ReadAsync
(CancellationToken cancellationToken = default)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\aspnetcore\src\Servers\Kestrel\shared\CompletionPipeReader.cs (1)
52
public override ValueTask<ReadResult>
ReadAsync
(CancellationToken cancellationToken = default)
System.IO.Pipelines (3)
System\IO\Pipelines\Pipe.DefaultPipeReader.cs (1)
24
public override ValueTask<ReadResult>
ReadAsync
(CancellationToken cancellationToken = default) => _pipe.ReadAsync(cancellationToken);
System\IO\Pipelines\SequencePipeReader.cs (1)
62
public override ValueTask<ReadResult>
ReadAsync
(CancellationToken cancellationToken = default)
System\IO\Pipelines\StreamPipeReader.cs (1)
203
public override ValueTask<ReadResult>
ReadAsync
(CancellationToken cancellationToken = default)
44 references to ReadAsync
Aspire.Dashboard (1)
Otlp\Http\OtlpHttpEndpointsBuilder.cs (1)
259
result = await httpContext.Request.BodyReader.
ReadAsync
().ConfigureAwait(false);
Aspire.Hosting (1)
Dcp\DcpHost.cs (1)
402
var result = await reader.
ReadAsync
(CancellationToken.None).ConfigureAwait(false);
Microsoft.AspNetCore.Http.Connections (3)
Internal\Transports\LongPollingServerTransport.cs (1)
36
var result = await _application.
ReadAsync
(token);
Internal\Transports\ServerSentEventsServerTransport.cs (1)
51
var result = await _application.
ReadAsync
(cancellationToken);
Internal\Transports\WebSocketsServerTransport.cs (1)
208
var result = await _application.Input.
ReadAsync
();
Microsoft.AspNetCore.Server.Kestrel.Core (19)
Internal\Http\Http1ChunkedEncodingMessageBody.cs (3)
68
var readAwaitable = _requestBodyPipe.Reader.
ReadAsync
(cancellationToken);
100
var awaitable = _context.Input.
ReadAsync
();
152
awaitable = _context.Input.
ReadAsync
();
Internal\Http\Http1Connection.cs (1)
848
awaitable = Input.
ReadAsync
();
Internal\Http\Http1ContentLengthMessageBody.cs (1)
59
var readAwaitable = _context.Input.
ReadAsync
(cancellationToken);
Internal\Http\Http1UpgradeMessageBody.cs (2)
80
var readTask = _context.Input.
ReadAsync
(cancellationToken);
101
readResult = await _context.Input.
ReadAsync
(cancellationToken);
Internal\Http2\Http2Connection.cs (3)
324
var result = await Input.
ReadAsync
();
557
var result = await Input.
ReadAsync
();
1897
var readResult = await reader.
ReadAsync
();
Internal\Http2\Http2MessageBody.cs (1)
111
var readAwaitable = _context.RequestBodyPipe.Reader.
ReadAsync
(cancellationToken);
Internal\Http3\Http3ControlStream.cs (2)
160
var result = await Input.
ReadAsync
();
263
var result = await Input.
ReadAsync
();
Internal\Http3\Http3MessageBody.cs (1)
79
var readAwaitable = _context.RequestBodyPipe.Reader.
ReadAsync
(cancellationToken);
Internal\Http3\Http3OutputProducer.cs (1)
419
readResult = await _pipeReader.
ReadAsync
();
Internal\Http3\Http3PendingStream.cs (1)
50
var result = await Input.
ReadAsync
();
Internal\Http3\Http3Stream.cs (1)
643
var result = await Input.
ReadAsync
();
Middleware\TlsListener.cs (1)
33
var result = await input.
ReadAsync
(cancellationToken);
src\aspnetcore\src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
121
var result = await _input.
ReadAsync
(cancellationToken);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Internal\QuicStreamContext.cs (1)
383
var result = await output.
ReadAsync
();
src\aspnetcore\src\Servers\Kestrel\shared\CompletionPipeReader.cs (1)
54
return _inner.
ReadAsync
(cancellationToken);
Microsoft.AspNetCore.SignalR.Core (2)
HubConnectionContext.cs (1)
547
var result = await input.
ReadAsync
();
HubConnectionHandler.cs (1)
273
var result = await input.
ReadAsync
();
Microsoft.AspNetCore.WebUtilities (1)
FormPipeReader.cs (1)
96
var readResult = await _pipeReader.
ReadAsync
(cancellationToken);
System.IO.Pipelines (15)
System\IO\Pipelines\PipeReader.cs (6)
70
ReadResult 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>
236
ReadResult result = await
ReadAsync
(cancellationToken).ConfigureAwait(false);
System\IO\Pipelines\PipeReaderStream.cs (2)
66
ValueTask<ReadResult> vt = _pipeReader.
ReadAsync
();
107
ReadResult 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>