28 references to IsCanceled
Aspire.Dashboard (1)
Otlp\Http\OtlpHttpEndpointsBuilder.cs (1)
261
if (result.
IsCanceled
)
Aspire.Hosting (1)
Dcp\DcpHost.cs (1)
404
if (result.IsCompleted || result.
IsCanceled
)
Microsoft.AspNetCore.Http.Connections (3)
Internal\Transports\LongPollingServerTransport.cs (1)
41
if (buffer.IsEmpty && (result.IsCompleted || result.
IsCanceled
))
Internal\Transports\ServerSentEventsServerTransport.cs (1)
56
if (result.
IsCanceled
)
Internal\Transports\WebSocketsServerTransport.cs (1)
215
if (result.
IsCanceled
&& !ignoreFirstCancel)
Microsoft.AspNetCore.Server.Kestrel.Core (11)
Internal\Http\Http1ContentLengthMessageBody.cs (3)
98
if (!_readResult.
IsCanceled
|| Interlocked.Exchange(ref _userCanceled, 0) == 1 || _cannotResetInputPipe)
146
if (!_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);
99
while (readResult.
IsCanceled
&& Interlocked.Exchange(ref _userCanceled, 0) == 0)
Internal\Http\HttpRequestStream.cs (1)
120
if (result.
IsCanceled
)
Internal\Http2\Http2Connection.cs (2)
330
if (result.
IsCanceled
)
1899
if ((readResult.IsCompleted && readResult.Buffer.Length == 0) || readResult.
IsCanceled
)
Internal\Http3\Http3PendingStream.cs (1)
52
if (result.
IsCanceled
)
src\aspnetcore\src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
125
if (_throwOnCancelled && result.
IsCanceled
&& _cancelCalled)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Internal\QuicStreamContext.cs (1)
385
if (result.
IsCanceled
)
Microsoft.AspNetCore.SignalR.Core (2)
HubConnectionContext.cs (1)
555
if (result.
IsCanceled
)
HubConnectionHandler.cs (1)
278
if (result.
IsCanceled
)
System.IO.Pipelines (8)
System\IO\Pipelines\Pipe.cs (2)
706
if (_unconsumedBytes >= minimumBytes || readResult.
IsCanceled
|| readResult.IsCompleted)
954
if (result.
IsCanceled
)
System\IO\Pipelines\PipeReader.cs (3)
73
if (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>
243
if (result.
IsCanceled
)
System\IO\Pipelines\PipeReaderStream.cs (1)
113
if (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)
230
|| readResult.
IsCanceled
)
System.Text.Json (1)
System\Text\Json\Serialization\PipeReadBufferState.cs (1)
68
if (readResult.
IsCanceled
)