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