35 references to ThrowIfCancellationRequested
mscorlib (11)
system\threading\CountdownEvent.cs (1)
565cancellationToken.ThrowIfCancellationRequested();
system\threading\ManualResetEventSlim.cs (3)
545cancellationToken.ThrowIfCancellationRequested(); // an early convenience check 624cancellationToken.ThrowIfCancellationRequested(); 639cancellationToken.ThrowIfCancellationRequested();
system\threading\SemaphoreSlim.cs (3)
324cancellationToken.ThrowIfCancellationRequested(); 457cancellationToken.ThrowIfCancellationRequested(); 727cancellationToken.ThrowIfCancellationRequested(); // cancellation occurred
system\threading\Tasks\Task.cs (4)
3181if (IsCanceled) cancellationToken.ThrowIfCancellationRequested(); 5053cancellationToken.ThrowIfCancellationRequested(); // early check before we make any allocations 5153if (!exceptionSeen) cancellationToken.ThrowIfCancellationRequested(); 5466cancellationToken.ThrowIfCancellationRequested(); // early check before we make any allocations
System (19)
net\System\Net\WebSockets\WebSocketBase.cs (4)
1323cancellationToken.ThrowIfCancellationRequested(); 1352cancellationToken.ThrowIfCancellationRequested(); 1946cancellationToken.ThrowIfCancellationRequested(); 2139cancellationToken.ThrowIfCancellationRequested();
net\System\Net\WebSockets\WebSocketConnectionStream.cs (8)
148cancellationToken.ThrowIfCancellationRequested(); 227cancellationToken.ThrowIfCancellationRequested(); 273cancellationToken.ThrowIfCancellationRequested(); 345cancellationToken.ThrowIfCancellationRequested(); 647cancellationToken.ThrowIfCancellationRequested(); 699cancellationToken.ThrowIfCancellationRequested(); 758cancellationToken.ThrowIfCancellationRequested(); 817cancellationToken.ThrowIfCancellationRequested();
net\System\Net\WebSockets\WebSocketHttpListenerDuplexStream.cs (4)
188cancellationToken.ThrowIfCancellationRequested(); 396cancellationToken.ThrowIfCancellationRequested(); 467cancellationToken.ThrowIfCancellationRequested(); 653cancellationToken.ThrowIfCancellationRequested();
sys\system\collections\concurrent\BlockingCollection.cs (2)
503cancellationToken.ThrowIfCancellationRequested(); 740cancellationToken.ThrowIfCancellationRequested();
sys\system\threading\Barrier.cs (1)
639cancellationToken.ThrowIfCancellationRequested();
System.Core (2)
System\IO\Pipes\IOCancellationHelper.cs (1)
66this._cancellationToken.ThrowIfCancellationRequested();
System\IO\Pipes\Pipe.cs (1)
1293cancellationToken.ThrowIfCancellationRequested();
System.ServiceModel (1)
System\ServiceModel\Channels\HttpChannelListener.cs (1)
1570cancellationToken.ThrowIfCancellationRequested();
System.Web (2)
UI\PageAsyncTaskManager.cs (1)
34cancellationToken.ThrowIfCancellationRequested();
WebSockets\AspNetWebSocket.cs (1)
595cancellationToken.ThrowIfCancellationRequested();