52 references to IsCanceled
Aspire.Dashboard (1)
Otlp\Http\OtlpHttpEndpointsBuilder.cs (1)
186if (result.IsCanceled)
Aspire.Hosting (1)
Dcp\DcpHostService.cs (1)
356if (result.IsCompleted || result.IsCanceled)
ClientSample (1)
Tcp\TcpConnection.cs (1)
224if (result.IsCanceled)
http2cat (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
125if (_throwOnCancelled && result.IsCanceled && _cancelCalled)
IIS.FunctionalTests (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
125if (_throwOnCancelled && result.IsCanceled && _cancelCalled)
IIS.LongTests (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
125if (_throwOnCancelled && result.IsCanceled && _cancelCalled)
IIS.NewHandler.FunctionalTests (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
125if (_throwOnCancelled && result.IsCanceled && _cancelCalled)
IIS.NewShim.FunctionalTests (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
125if (_throwOnCancelled && result.IsCanceled && _cancelCalled)
IIS.ShadowCopy.Tests (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
125if (_throwOnCancelled && result.IsCanceled && _cancelCalled)
IISExpress.FunctionalTests (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
125if (_throwOnCancelled && result.IsCanceled && _cancelCalled)
InMemory.FunctionalTests (2)
ChunkedRequestTests.cs (1)
925Assert.True((await requestTask).IsCanceled);
RequestTests.cs (1)
1917Assert.True((await requestTask).IsCanceled);
Microsoft.AspNetCore.Http.Connections (3)
Internal\Transports\LongPollingServerTransport.cs (1)
41if (buffer.IsEmpty && (result.IsCompleted || result.IsCanceled))
Internal\Transports\ServerSentEventsServerTransport.cs (1)
56if (result.IsCanceled)
Internal\Transports\WebSocketsServerTransport.cs (1)
215if (result.IsCanceled && !ignoreFirstCancel)
Microsoft.AspNetCore.Http.Connections.Client (2)
Internal\SendUtils.cs (1)
32if (result.IsCanceled)
Internal\WebSocketsTransport.cs (1)
547if (result.IsCanceled && !ignoreFirstCanceled)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
125if (_throwOnCancelled && result.IsCanceled && _cancelCalled)
Microsoft.AspNetCore.Server.IIS (2)
Core\IISHttpContext.IO.cs (1)
196flush |= result.IsCanceled;
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
125if (_throwOnCancelled && result.IsCanceled && _cancelCalled)
Microsoft.AspNetCore.Server.Kestrel.Core (11)
Internal\Http\Http1ContentLengthMessageBody.cs (3)
98if (!_readResult.IsCanceled || Interlocked.Exchange(ref _userCanceled, 0) == 1 || _cannotResetInputPipe) 146if (!_readResult.IsCanceled || Interlocked.Exchange(ref _userCanceled, 0) == 1 || _cannotResetInputPipe) 198_readResult.IsCanceled,
Internal\Http\Http1UpgradeMessageBody.cs (3)
68} while (readResult.IsCanceled && Interlocked.Exchange(ref _userCanceled, 0) == 0); 88} while (readResult.IsCanceled && Interlocked.Exchange(ref _userCanceled, 0) == 0); 99while (readResult.IsCanceled && Interlocked.Exchange(ref _userCanceled, 0) == 0)
Internal\Http\HttpRequestStream.cs (1)
120if (result.IsCanceled)
Internal\Http2\Http2Connection.cs (2)
326if (result.IsCanceled) 1859if ((readResult.IsCompleted && readResult.Buffer.Length == 0) || readResult.IsCanceled)
Internal\Http3\Http3PendingStream.cs (1)
52if (result.IsCanceled)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
125if (_throwOnCancelled && result.IsCanceled && _cancelCalled)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
MessageBodyTests.cs (4)
993Assert.True(readResult.IsCanceled); 1014Assert.True(readResult.IsCanceled); 1035Assert.True(readResult.IsCanceled); 1058Assert.False(readResult.IsCanceled);
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Internal\NamedPipeConnection.cs (1)
159if (result.IsCanceled)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Internal\QuicStreamContext.cs (1)
385if (result.IsCanceled)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
Internal\SocketConnection.cs (1)
276if (result.IsCanceled)
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
125if (_throwOnCancelled && result.IsCanceled && _cancelCalled)
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
1635if (result.IsCanceled)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
TestTransport.cs (1)
64else if (result.IsCanceled)
Microsoft.AspNetCore.SignalR.Core (2)
HubConnectionContext.cs (1)
518if (result.IsCanceled)
HubConnectionHandler.cs (1)
278if (result.IsCanceled)
Microsoft.AspNetCore.TestHost (1)
ResponseBodyReaderStream.cs (1)
89if (result.IsCanceled)
System.IO.Pipelines (8)
System\IO\Pipelines\Pipe.cs (2)
706if (_unconsumedBytes >= minimumBytes || readResult.IsCanceled || readResult.IsCompleted) 954if (result.IsCanceled)
System\IO\Pipelines\PipeReader.cs (3)
73if (buffer.Length >= minimumSize || result.IsCompleted || result.IsCanceled) 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> 243if (result.IsCanceled)
System\IO\Pipelines\PipeReaderStream.cs (1)
113if (result.IsCanceled)
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)
228|| readResult.IsCanceled)