16 references to GetAsTask
Microsoft.AspNetCore.Server.Kestrel.Core (16)
Internal\Http\Http1Connection.cs (1)
874return _context.Transport.Output.FlushAsync().GetAsTask();
Internal\Http\Http1OutputProducer.cs (1)
103return WriteAsync(buffer, cancellationToken).GetAsTask();
Internal\Http\HttpProtocol.cs (2)
1670return FlushPipeAsync(cancellationToken).GetAsTask(); 1682return WritePipeAsync(data, cancellationToken).GetAsTask();
Internal\Http\HttpResponseStream.cs (2)
61return _pipeWriter.FlushAsync(cancellationToken).GetAsTask(); 94return _pipeWriter.WriteAsync(new ReadOnlyMemory<byte>(buffer, offset, count), cancellationToken).GetAsTask();
Internal\Http2\Http2Connection.cs (2)
1051return ackTask.GetAsTask(); 1094return _frameWriter.WritePingAsync(Http2PingFrameFlags.ACK, payload).GetAsTask();
Internal\Http2\Http2MessageBody.cs (1)
52return continueTask.GetAsTask();
Internal\Http2\Http2OutputProducer.cs (1)
412var task = _flusher.FlushAsync(this, cancellationToken).GetAsTask();
Internal\Http3\Http3FrameWriter.cs (2)
127return _outputWriter.FlushAsync().GetAsTask(); 157return _outputWriter.FlushAsync().GetAsTask();
Internal\Http3\Http3OutputProducer.cs (1)
349return _flusher.FlushAsync(this, cancellationToken).GetAsTask();
Internal\Http3\Http3Stream.cs (1)
917return RequestBodyPipe.Writer.FlushAsync().GetAsTask();
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (2)
98return _output.WriteAsync(buffer.AsMemory(offset, count), cancellationToken).GetAsTask(); 113return _output.FlushAsync(cancellationToken).GetAsTask();