143 references to IsCompleted
Aspire.Dashboard (1)
Otlp\Http\OtlpHttpEndpointsBuilder.cs (1)
199if (result.IsCompleted)
Aspire.Hosting (1)
Dcp\DcpHostService.cs (1)
356if (result.IsCompleted || result.IsCanceled)
ClientSample (2)
RawSample.cs (1)
88else if (result.IsCompleted)
Tcp\TcpConnection.cs (1)
230var isCompleted = result.IsCompleted;
http2cat (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
141if (result.IsCompleted)
IIS.FunctionalTests (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
141if (result.IsCompleted)
IIS.LongTests (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
141if (result.IsCompleted)
IIS.NewHandler.FunctionalTests (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
141if (result.IsCompleted)
IIS.NewShim.FunctionalTests (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
141if (result.IsCompleted)
IIS.ShadowCopy.Tests (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
141if (result.IsCompleted)
IISExpress.FunctionalTests (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
141if (result.IsCompleted)
InMemory.FunctionalTests (18)
ChunkedRequestTests.cs (2)
46if (readResult.IsCompleted) 391if (result.IsCompleted)
Http2\Http2ConnectionTests.cs (1)
5661Assert.True(result.IsCompleted);
Http2\Http2StreamTests.cs (3)
999while (!readResult.IsCompleted) 1282while (!readResult.IsCompleted) 1292Assert.True(readResult.IsCompleted);
Http2\TlsTests.cs (1)
126if (result.IsCompleted)
Http3\Http3StreamTests.cs (1)
623while (!readResult.IsCompleted)
RequestTests.cs (3)
972Assert.True(readResult.IsCompleted); 1167while (!result.IsCompleted && result.Buffer.Length < numBytes) 1202Assert.True(readResult.IsCompleted);
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (7)
527if (!result.IsCompleted) 561if (result.IsCompleted && allowEnd) 576if (!result.IsCompleted || buffer.Length > 0) 589if (result.IsCompleted) 634if (!result.IsCompleted) 766if (!result.IsCompleted) 944if (result.IsCompleted)
Interop.FunctionalTests (5)
HttpClientHttp2InteropTests.cs (5)
274while (!readResult.IsCompleted && readResult.Buffer.Length < "Hello World".Length) 287Assert.True(finalResult.IsCompleted && finalResult.Buffer.Length == 0); 331while (!readResult.IsCompleted && readResult.Buffer.Length < "Hello World".Length) 347while (!readResult.IsCompleted && readResult.Buffer.Length < "Hello World".Length) 358Assert.True(finalResult.IsCompleted && finalResult.Buffer.Length == 0);
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
ServerStreamingServerCallHandlerTests.cs (1)
278if (result.IsCompleted)
Microsoft.AspNetCore.Http.Connections (3)
Internal\Transports\LongPollingServerTransport.cs (1)
41if (buffer.IsEmpty && (result.IsCompleted || result.IsCanceled))
Internal\Transports\ServerSentEventsServerTransport.cs (1)
68else if (result.IsCompleted)
Internal\Transports\WebSocketsServerTransport.cs (1)
257else if (result.IsCompleted)
Microsoft.AspNetCore.Http.Connections.Client (2)
Internal\SendUtils.cs (1)
58else if (result.IsCompleted)
Internal\WebSocketsTransport.cs (1)
578else if (result.IsCompleted)
Microsoft.AspNetCore.Http.Connections.Tests (10)
HttpConnectionDispatcherTests.cs (8)
480Assert.True(result.IsCompleted); 544Assert.True(result.IsCompleted); 3849if (result.IsCompleted) 3888if (result.IsCompleted) 3911if (result.IsCompleted) 3941if (result.IsCompleted) 3968if (result.IsCompleted) 4017if (res.IsCompleted)
HttpConnectionManagerTests.cs (1)
255Assert.True(result.IsCompleted);
MapConnectionHandlerTests.cs (1)
438if (result.IsCompleted)
Microsoft.AspNetCore.Http.Extensions.Tests (2)
RequestDelegateGenerator\RequestDelegateCreationTests.JsonBody.cs (2)
333Assert.True(result.IsCompleted); 374Assert.True(result.IsCompleted);
Microsoft.AspNetCore.OutputCaching.Tests (1)
CachedResponseBodyTests.cs (1)
110if (result.IsCompleted)
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
ResponseCachingBenchmark.cs (1)
103if (result.IsCompleted)
Microsoft.AspNetCore.ResponseCaching.Tests (1)
CachedResponseBodyTests.cs (1)
115if (result.IsCompleted)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
141if (result.IsCompleted)
Microsoft.AspNetCore.Server.IIS (3)
Core\IISHttpContext.IO.cs (2)
41else if (result.IsCompleted) 182if (result.IsCompleted)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
141if (result.IsCompleted)
Microsoft.AspNetCore.Server.Kestrel.Core (28)
Internal\Http\Http1ChunkedEncodingMessageBody.cs (3)
51if (_readResult.IsCompleted) 76if (_readResult.IsCompleted) 138if (result.IsCompleted)
Internal\Http\Http1Connection.cs (1)
751if (result.IsCompleted)
Internal\Http\Http1ContentLengthMessageBody.cs (5)
88if (_readResult.IsCompleted) 105if (_readResult.IsCompleted) 154if (_readResult.IsCompleted) 177if (readResult.IsCompleted) 270if (_readResult.IsCompleted)
Internal\Http\Http1MessageBody.cs (2)
57if (readResult.IsCompleted) 95} while (!result.IsCompleted);
Internal\Http\HttpRequestStream.cs (1)
142if (result.IsCompleted)
Internal\Http2\Http2Connection.cs (3)
359if (result.IsCompleted) 617if (result.IsCompleted) 1859if ((readResult.IsCompleted && readResult.Buffer.Length == 0) || readResult.IsCanceled)
Internal\Http2\Http2MessageBody.cs (2)
95if (readResult.IsCompleted) 122if (_readResult.IsCompleted)
Internal\Http3\Http3ControlStream.cs (2)
169if (result.IsCompleted) 271if (result.IsCompleted)
Internal\Http3\Http3MessageBody.cs (2)
63if (readResult.IsCompleted) 90if (_readResult.IsCompleted)
Internal\Http3\Http3OutputProducer.cs (3)
423if (readResult.IsCompleted && _stream.ResponseTrailers?.Count > 0) 435else if (readResult.IsCompleted) 456} while (!readResult.IsCompleted);
Internal\Http3\Http3PendingStream.cs (1)
74if (result.IsCompleted)
Internal\Http3\Http3Stream.cs (2)
628await ProcessHttp3Stream(application, framePayload, result.IsCompleted && readableBuffer.IsEmpty); 632if (result.IsCompleted)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
141if (result.IsCompleted)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (15)
MessageBodyTests.cs (15)
76Assert.True(readResult.IsCompleted); 103Assert.True(readResult.IsCompleted); 1077Assert.True(readResult.IsCompleted); 1095Assert.False(readResult.IsCompleted); 1103Assert.True(readResult.IsCompleted); 1122Assert.False(readResult.IsCompleted); 1130Assert.True(readResult.IsCompleted); 1148Assert.True(readResult.IsCompleted); 1153Assert.True(readResult.IsCompleted); 1172Assert.False(readResult.IsCompleted); 1196Assert.False(readResult.IsCompleted); 1309Assert.False(readResult.IsCompleted); 1333Assert.False(readResult.IsCompleted); 1359Assert.False(readResult.IsCompleted); 1385Assert.True(readResult.IsCompleted);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (8)
Http2\Http2ConnectionBenchmarkBase.cs (1)
173if (result.IsCompleted)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (7)
527if (!result.IsCompleted) 561if (result.IsCompleted && allowEnd) 576if (!result.IsCompleted || buffer.Length > 0) 589if (result.IsCompleted) 634if (!result.IsCompleted) 766if (!result.IsCompleted) 944if (result.IsCompleted)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Internal\NamedPipeConnection.cs (1)
180if (result.IsCompleted)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Internal\QuicStreamContext.cs (1)
400var isCompleted = result.IsCompleted;
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (2)
QuicConnectionContextTests.cs (1)
618Assert.True(readResult.IsCompleted);
QuicTestHelpers.cs (1)
160Assert.True(readResult.IsCompleted);
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
Internal\SocketConnection.cs (1)
316if (result.IsCompleted)
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
141if (result.IsCompleted)
Microsoft.AspNetCore.SignalR.Client.Core (2)
HubConnection.cs (2)
1542if (result.IsCompleted) 1676if (result.IsCompleted)
Microsoft.AspNetCore.SignalR.Client.Tests (2)
TestConnection.cs (1)
159else if (result.IsCompleted)
TestTransport.cs (1)
60if (result.IsCompleted)
Microsoft.AspNetCore.SignalR.Core (2)
HubConnectionContext.cs (1)
618if (result.IsCompleted)
HubConnectionHandler.cs (1)
346if (result.IsCompleted)
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
BroadcastBenchmark.cs (1)
85else if (result.IsCompleted)
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\SignalR\common\testassets\Tests.Utils\TestClient.cs (1)
258if (result.IsCompleted)
Microsoft.AspNetCore.SignalR.Tests (2)
AuthConnectionHandler.cs (1)
25else if (result.IsCompleted)
EchoConnectionHandler.cs (1)
23else if (result.IsCompleted)
Microsoft.AspNetCore.SignalR.Tests.Utils (3)
PipeReaderExtensions.cs (2)
23if (result.IsCompleted) 75if (result.IsCompleted)
TestClient.cs (1)
258if (result.IsCompleted)
Microsoft.AspNetCore.TestHost (2)
HttpContextBuilder.cs (1)
196return !_requestPipe.Reader.TryRead(out var result) || !result.IsCompleted;
ResponseBodyReaderStream.cs (1)
94if (result.Buffer.IsEmpty && result.IsCompleted)
Microsoft.AspNetCore.WebUtilities (2)
FormPipeReader.cs (2)
104ParseFormValues(ref buffer, ref accumulator, readResult.IsCompleted); 113if (readResult.IsCompleted)
SignalR.Client.FunctionalTestApp (1)
EchoConnectionHandler.cs (1)
24else if (result.IsCompleted)
SignalRSamples (1)
ConnectionHandlers\MessagesConnectionHandler.cs (1)
39else if (result.IsCompleted)
SocialWeather (1)
SocialWeatherConnectionHandler.cs (1)
50else if (result.IsCompleted)
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\UnixDomainSocketsTests.cs (1)
57if (result.IsCompleted)
System.IO.Pipelines (6)
System\IO\Pipelines\Pipe.cs (1)
706if (_unconsumedBytes >= minimumBytes || readResult.IsCanceled || readResult.IsCompleted)
System\IO\Pipelines\PipeReader.cs (2)
73if (buffer.Length >= minimumSize || result.IsCompleted || result.IsCanceled) 277if (result.IsCompleted)
System\IO\Pipelines\PipeReaderStream.cs (1)
135if (result.IsCompleted)
System\IO\Pipelines\ReadResult.cs (1)
14/// <summary>Creates a new instance of <see cref="System.IO.Pipelines.ReadResult" /> setting <see cref="System.IO.Pipelines.ReadResult.IsCanceled" /> and <see cref="System.IO.Pipelines.ReadResult.IsCompleted" /> flags.</summary>
System\IO\Pipelines\StreamPipeReader.cs (1)
227|| readResult.IsCompleted