50 references to IsCanceled
Microsoft.AspNetCore.Components (5)
ComponentBase.cs (2)
293if (!task.IsCanceled) 333if (task.IsCanceled)
RenderTree\Renderer.cs (3)
800if (updateDisplayTask.IsCanceled) 856if (updateDisplayTask.IsCanceled) 1046if (!taskToHandle.IsCanceled)
Microsoft.AspNetCore.Components.WebAssembly (2)
Rendering\WebAssemblyDispatcher.cs (2)
104else if (t.IsCanceled) 148else if (t.IsCanceled)
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\KeyRingProvider.cs (1)
447Debug.Assert(!task.IsCanceled, "How did a task with no cancellation token get canceled?");
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
294else if (resultTask.IsFaulted || resultTask.IsCanceled)
Microsoft.AspNetCore.Owin (1)
WebSockets\OwinWebSocketAcceptAdapter.cs (1)
84if (task.IsCanceled)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (5)
Listener\RequestBodyTests.cs (1)
60Assert.True(task.IsCanceled);
ResponseSendFileTests.cs (4)
379Assert.True(writeTask.IsCanceled); 407Assert.True(writeTask.IsCanceled); 436Assert.True(writeTask.IsCanceled); 463Assert.True(writeTask.IsCanceled);
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
594if (writeTask.IsFaulted || writeTask.IsCanceled || !writeTask.IsCompleted)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HttpConnectionTests.ConnectionLifecycle.cs (1)
414Assert.False(startTask.IsCanceled);
Microsoft.Extensions.Hosting (1)
Internal\Host.cs (1)
192if (_applicationLifetime.ApplicationStopping.IsCancellationRequested && backgroundTask.IsCanceled && ex is OperationCanceledException)
System.Net.Http (4)
System\Net\Http\MessageProcessingHandler.cs (1)
72if (task.IsCanceled)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionWaiter.cs (1)
63connection.Trace(Task.IsCanceled
System\Net\Http\SocketsHttpHandler\ConnectionPool\RequestQueue.cs (1)
133pool.Trace(queueItem.Waiter.Task.IsCanceled
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
1148return !Task.IsCanceled;
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.cs (1)
527var e = new PingCompletedEventArgs(t.IsCompletedSuccessfully ? t.Result : null, t.Exception, t.IsCanceled, asyncOp.UserSuppliedState);
System.Net.Requests (1)
System\Net\TaskExtensions.cs (1)
35Debug.Assert(tcs.Task.IsCanceled);
System.Net.Sockets (6)
System\Net\Sockets\Socket.cs (6)
2381if (t.IsFaulted || t.IsCanceled) 2403if (t.IsFaulted || t.IsCanceled) 2464if (t.IsFaulted || t.IsCanceled) 2485if (t.IsFaulted || t.IsCanceled) 3883Debug.Assert(t.IsCanceled || t.IsFaulted); 3885if (t.IsCanceled)
System.Private.CoreLib (18)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (10)
1829if (includeTaskCanceledExceptions && IsCanceled) 1871Debug.Assert(IsCanceled, "Must only be used when the task has canceled."); 2253if (!IsCancellationRequested & !IsCanceled) 2278if (!IsCancellationRequested & !IsCanceled) 2290if (!IsCanceled) 2779if (IsCanceled) cancellationToken.ThrowIfCancellationRequested(); 4963else if (task.IsCanceled) cancellationSeen = true; 4982else if (task.IsCanceled) cancellationSeen = true; 6109else if (task.IsCanceled) 6385else if (task.IsCanceled)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskContinuation.cs (2)
304(completedTask.IsCanceled ? 314if (TplEventSource.Log.IsEnabled() && !continuationTask.IsCanceled)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskScheduler.cs (2)
178task.IsCanceled || 194if (inlined && !(task.IsDelegateInvoked || task.IsCanceled))
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ValueTask.cs (4)
366/// value of the task's <see cref="Task.IsCanceled"/> property. 382return t.IsCanceled; 772/// value of the task's <see cref="Task.IsCanceled"/> property. 788return t.IsCanceled;
System.Threading.Tasks.Dataflow (2)
Base\DataflowBlock.cs (1)
988if (task.IsCanceled) cancellationToken.ThrowIfCancellationRequested();
Internal\Common.cs (1)
377Debug.Assert(t.IsCanceled, "Task's constructor should cancel the task synchronously in the ctor.");