137 references to IsCancellationRequested
mscorlib (55)
system\io\bufferedstream.cs (3)
334
if (cancellationToken.
IsCancellationRequested
)
678
if (cancellationToken.
IsCancellationRequested
)
1090
if (cancellationToken.
IsCancellationRequested
)
system\io\filestream.cs (5)
2622
if (cancellationToken.
IsCancellationRequested
)
2674
if (cancellationToken.
IsCancellationRequested
)
2773
Contract.Assert(cancellationToken.
IsCancellationRequested
, "How can the IO operation be aborted if cancellation was not requested?");
2809
Contract.Assert(cancellationToken.
IsCancellationRequested
, "How can the IO operation be aborted if cancellation was not requested?");
2837
if (cancellationToken.
IsCancellationRequested
)
system\io\memorystream.cs (4)
198
if (cancellationToken.
IsCancellationRequested
)
388
if (cancellationToken.
IsCancellationRequested
)
454
if (cancellationToken.
IsCancellationRequested
)
615
if (cancellationToken.
IsCancellationRequested
)
system\io\stream.cs (4)
421
return cancellationToken.
IsCancellationRequested
716
return cancellationToken.
IsCancellationRequested
899
return cancellationToken.
IsCancellationRequested
?
969
return cancellationToken.
IsCancellationRequested
?
system\io\unmanagedmemorystream.cs (3)
294
if (cancellationToken.
IsCancellationRequested
)
459
if (cancellationToken.
IsCancellationRequested
)
656
if (cancellationToken.
IsCancellationRequested
)
system\security\cryptography\cryptostream.cs (3)
165
return cancellationToken.
IsCancellationRequested
?
327
if (cancellationToken.
IsCancellationRequested
)
591
if (cancellationToken.
IsCancellationRequested
)
system\threading\CancellationToken.cs (7)
99
/// into a canceled state, meaning that <see cref="
IsCancellationRequested
"/> will never
154
/// both <see cref="CanBeCanceled"/> and <see cref="
IsCancellationRequested
"/> will be false.
156
/// both <see cref="CanBeCanceled"/> and <see cref="
IsCancellationRequested
"/> will be true.
343
if (!
IsCancellationRequested
)
364
/// from public CancellationToken constructors and their <see cref="
IsCancellationRequested
"/> values are equal.</returns>
398
/// from public CancellationToken constructors and their <see cref="
IsCancellationRequested
"/> values are equal.</returns>
468
if (
IsCancellationRequested
)
system\threading\CancellationTokenSource.cs (2)
342
/// <see cref="System.Threading.CancellationToken.
IsCancellationRequested
">IsCancellationRequested</see> returns true.
372
/// <see cref="System.Threading.CancellationToken.
IsCancellationRequested
">IsCancellationRequested</see> returns true.
system\threading\SemaphoreSlim.cs (1)
612
if (cancellationToken.
IsCancellationRequested
)
system\threading\Tasks\Future.cs (1)
1666
public bool CancellationPending { get { return (m_task.Status == TaskStatus.WaitingToRun) && m_task.CancellationToken.
IsCancellationRequested
; } }
system\threading\Tasks\FutureFactory.cs (4)
1787
if (cancellationToken.
IsCancellationRequested
1834
if (cancellationToken.
IsCancellationRequested
2188
if (cancellationToken.
IsCancellationRequested
2235
if (cancellationToken.
IsCancellationRequested
system\threading\Tasks\Parallel.cs (8)
233
if (parallelOptions.CancellationToken.
IsCancellationRequested
)
309
if (parallelOptions.CancellationToken.
IsCancellationRequested
)
358
if (parallelOptions.CancellationToken.
IsCancellationRequested
)
1066
if (parallelOptions.CancellationToken.
IsCancellationRequested
)
1381
if (parallelOptions.CancellationToken.
IsCancellationRequested
)
2232
if (parallelOptions.CancellationToken.
IsCancellationRequested
)
3218
if (parallelOptions.CancellationToken.
IsCancellationRequested
)
3556
if (ct.
IsCancellationRequested
)
system\threading\Tasks\Task.cs (10)
691
if (cancellationToken.
IsCancellationRequested
)
1480
props.m_cancellationToken.
IsCancellationRequested
);
4646
if (IsCompleted || cancellationToken.
IsCancellationRequested
)
5552
if (!cancellationToken.
IsCancellationRequested
) throw new ArgumentOutOfRangeException("cancellationToken");
5572
if (!cancellationToken.
IsCancellationRequested
) throw new ArgumentOutOfRangeException("cancellationToken");
5717
if (cancellationToken.
IsCancellationRequested
)
5768
if (cancellationToken.
IsCancellationRequested
)
5873
if (cancellationToken.
IsCancellationRequested
)
5929
if (Token.
IsCancellationRequested
)
6718
public bool CancellationPending { get { return (m_task.Status == TaskStatus.WaitingToRun) && m_task.CancellationToken.
IsCancellationRequested
; } }
System (15)
net\System\Net\WebSockets\WebSocketBase.cs (9)
257
bool aborted = linkedCancellationToken.
IsCancellationRequested
;
380
bool aborted = linkedCancellationToken.
IsCancellationRequested
;
632
bool aborted = linkedCancellationToken.
IsCancellationRequested
;
738
cancellationToken.
IsCancellationRequested
);
840
linkedCancellationToken.
IsCancellationRequested
);
911
linkedCancellationToken.
IsCancellationRequested
);
997
bool aborted = linkedCancellationToken.
IsCancellationRequested
;
1312
if (cancellationToken.
IsCancellationRequested
||
1590
linkedCancellationToken.
IsCancellationRequested
);
sys\system\collections\concurrent\BlockingCollection.cs (6)
414
if (cancellationToken.
IsCancellationRequested
)
442
if (cancellationToken.
IsCancellationRequested
)
691
if (cancellationToken.
IsCancellationRequested
)
718
if (cancellationToken.
IsCancellationRequested
)
1040
if (externalCancellationToken.
IsCancellationRequested
) //case#3
1443
if (linkedTokenSource.IsCancellationRequested && externalCancellationToken.
IsCancellationRequested
)//case#3
System.Activities (1)
System\Activities\ActivityUtilities.cs (1)
626
if (options.CancellationToken.
IsCancellationRequested
)
System.Core (19)
System\IO\Pipes\IOCancellationHelper.cs (1)
43
if (this._cancellationToken.
IsCancellationRequested
) {
System\IO\Pipes\Pipe.cs (2)
628
if (cancellationToken.
IsCancellationRequested
) {
1261
if (cancellationToken.
IsCancellationRequested
) {
System\Linq\Parallel\Merging\OrderPreservingPipeliningMergeHelper.cs (1)
353
if (m_mergeHelper.m_taskGroupState.CancellationState.MergedCancellationToken.
IsCancellationRequested
)
System\Linq\Parallel\QueryOperators\Inlined\InlinedAggregationOperator.cs (1)
83
&& SpecifiedQuerySettings.CancellationState.ExternalCancellationToken.
IsCancellationRequested
)
System\Linq\Parallel\QueryOperators\QueryOperator.cs (2)
152
if(querySettings.CancellationState.MergedCancellationToken.
IsCancellationRequested
)
154
if (querySettings.CancellationState.ExternalCancellationToken.
IsCancellationRequested
)
System\Linq\Parallel\Scheduling\CancellationState.cs (2)
83
if (token.
IsCancellationRequested
)
90
if (externalCancellationToken.
IsCancellationRequested
)
System\Linq\Parallel\Scheduling\OrderPreservingPipeliningSpoolingTask.cs (1)
119
if (cancelToken.
IsCancellationRequested
)
System\Linq\Parallel\Scheduling\OrderPreservingSpoolingTask.cs (1)
141
if (!m_groupState.CancellationState.MergedCancellationToken.
IsCancellationRequested
)
System\Linq\Parallel\Scheduling\QueryTaskGroupState.cs (2)
127
!oce.CancellationToken.
IsCancellationRequested
||
145
if (m_cancellationState.MergedCancellationToken.
IsCancellationRequested
)
System\Linq\Parallel\Scheduling\SpoolingTask.cs (2)
235
if (cancelToken.
IsCancellationRequested
)
323
if (cancelToken.
IsCancellationRequested
)
System\Linq\Parallel\Scheduling\SpoolingTaskBase.cs (1)
58
&& m_groupState.CancellationState.MergedCancellationToken.
IsCancellationRequested
)
System\Linq\Parallel\Utils\ExceptionAggregator.cs (3)
170
&& cancellationState.ExternalCancellationToken.
IsCancellationRequested
)
178
&& cancellationState.MergedCancellationToken.
IsCancellationRequested
179
&& cancellationState.ExternalCancellationToken.
IsCancellationRequested
)
System.Data (38)
fx\src\data\System\Data\Common\DBCommand.cs (3)
209
if (cancellationToken.
IsCancellationRequested
) {
245
if (cancellationToken.
IsCancellationRequested
) {
269
if (cancellationToken.
IsCancellationRequested
) {
fx\src\data\System\Data\Common\DBConnection.cs (1)
187
if (cancellationToken.
IsCancellationRequested
) {
fx\src\data\System\Data\Common\DbDataReader.cs (4)
203
if (cancellationToken.
IsCancellationRequested
) {
225
if (cancellationToken.
IsCancellationRequested
) {
247
if (cancellationToken.
IsCancellationRequested
) {
265
if (cancellationToken.
IsCancellationRequested
) {
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (3)
1615
if (cancellationToken.
IsCancellationRequested
) {
2127
if (cts.
IsCancellationRequested
) {
2505
if (cts.
IsCancellationRequested
) { //We may get cancellation req even after the entire copy.
fx\src\data\System\Data\SqlClient\SqlCommand.cs (3)
2414
if (cancellationToken.
IsCancellationRequested
) {
2478
if (cancellationToken.
IsCancellationRequested
) {
2582
if (cancellationToken.
IsCancellationRequested
) {
fx\src\data\System\Data\SqlClient\SqlConnection.cs (2)
1232
if (ctoken.
IsCancellationRequested
) {
1407
if (cancellationToken.
IsCancellationRequested
) {
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (19)
3946
if (cancellationToken.
IsCancellationRequested
) {
3960
if (_cancelAsyncOnCloseToken.
IsCancellationRequested
) {
4012
if (cancellationToken.
IsCancellationRequested
) {
4052
if (cancellationToken.
IsCancellationRequested
) {
4056
else if (timeoutToken.
IsCancellationRequested
) {
4120
if (_cancelAsyncOnCloseToken.
IsCancellationRequested
) {
4139
if (cancellationToken.
IsCancellationRequested
) {
4143
else if (timeoutToken.
IsCancellationRequested
) {
4195
if (cancellationToken.
IsCancellationRequested
) {
4271
if (_cancelAsyncOnCloseToken.
IsCancellationRequested
) {
4337
if ((_sharedState._nextColumnHeaderToRead > i) && (!cancellationToken.
IsCancellationRequested
) && (_currentTask == null)) {
4354
if (cancellationToken.
IsCancellationRequested
) {
4391
if (_cancelAsyncOnCloseToken.
IsCancellationRequested
) {
4432
if ((!IsCommandBehavior(CommandBehavior.SequentialAccess)) && (_sharedState._nextColumnDataToRead > i) && (!cancellationToken.
IsCancellationRequested
) && (_currentTask == null)) {
4456
if (cancellationToken.
IsCancellationRequested
) {
4492
if (_cancelAsyncOnCloseToken.
IsCancellationRequested
) {
4568
if (_cancelAsyncOnCloseToken.
IsCancellationRequested
|| completionSource == null) {
4582
else if (!_cancelAsyncOnCloseToken.
IsCancellationRequested
) {
4721
if ((ignoreCloseToken) || (!_cancelAsyncOnCloseToken.
IsCancellationRequested
) || (stateObj._asyncReadWithoutSnapshot)) {
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (3)
189
if ((reader != null) && (!cancellationToken.
IsCancellationRequested
) && (!_disposalTokenSource.Token.
IsCancellationRequested
))
197
if (cancellationToken.
IsCancellationRequested
)
System.Web (4)
UI\Page.cs (1)
6039
if (cancellationToken.
IsCancellationRequested
) {
UI\WebControls\ModelDataSourceView.cs (2)
772
if (cancellationToken.
IsCancellationRequested
) {
869
if (cancellationToken.
IsCancellationRequested
) {
WebSockets\AspNetWebSocket.cs (1)
571
if (cancellationToken.
IsCancellationRequested
) {
WindowsBase (5)
Base\System\Windows\Threading\Dispatcher.cs (5)
652
if(!cancellationToken.
IsCancellationRequested
&& priority == DispatcherPriority.Send && CheckAccess())
822
if(!cancellationToken.
IsCancellationRequested
&& priority == DispatcherPriority.Send && CheckAccess())
1053
if (!cancellationToken.
IsCancellationRequested
&&
1471
if(!cancellationToken.
IsCancellationRequested
)
1529
if (ctTimeout.
IsCancellationRequested
)