1 type derived from OperationCanceledException
mscorlib (1)
system\threading\Tasks\TaskCanceledException.cs (1)
27
public class TaskCanceledException :
OperationCanceledException
24 instantiations of OperationCanceledException
mscorlib (13)
system\io\__error.cs (1)
185
throw new
OperationCanceledException
();
system\threading\CancellationToken.cs (1)
482
throw new
OperationCanceledException
(Environment.GetResourceString("OperationCanceled"), this);
system\threading\Tasks\Parallel.cs (11)
234
throw new
OperationCanceledException
(parallelOptions.CancellationToken);
310
throw new
OperationCanceledException
(parallelOptions.CancellationToken);
359
throw new
OperationCanceledException
(parallelOptions.CancellationToken);
1068
throw new
OperationCanceledException
(parallelOptions.CancellationToken);
1090
oce = new
OperationCanceledException
(parallelOptions.CancellationToken);
1383
throw new
OperationCanceledException
(parallelOptions.CancellationToken);
1405
oce = new
OperationCanceledException
(parallelOptions.CancellationToken);
2234
throw new
OperationCanceledException
(parallelOptions.CancellationToken);
3220
throw new
OperationCanceledException
(parallelOptions.CancellationToken);
3256
oce = new
OperationCanceledException
(parallelOptions.CancellationToken);
3570
if (bCollectionNotZeroLength) throw new
OperationCanceledException
(ct);
PresentationFramework (1)
src\Framework\MS\Internal\AppModel\ApplicationProxyInternal.cs (1)
818
throw new
OperationCanceledException
();
System.Activities (2)
System\Activities\ActivityUtilities.cs (1)
628
throw FxTrace.Exception.AsError(new
OperationCanceledException
(options.CancellationToken));
System\Activities\Runtime\ActivityExecutor.cs (1)
1042
Abort(new
OperationCanceledException
());
System.Core (6)
System\Diagnostics\Eventing\Reader\EventLogException.cs (1)
40
throw new
OperationCanceledException
();
System\IO\__Error.cs (1)
209
throw new
OperationCanceledException
();
System\Linq\Parallel\QueryOperators\QueryOperator.cs (2)
155
throw new
OperationCanceledException
(querySettings.CancellationState.ExternalCancellationToken);
157
throw new
OperationCanceledException
();
System\Linq\Parallel\Scheduling\CancellationState.cs (2)
84
throw new
OperationCanceledException
(token);
93
throw new
OperationCanceledException
(oceMessage, externalCancellationToken);
System.ServiceModel.Discovery (2)
System\ServiceModel\Discovery\AnnouncementDispatcherAsyncResult.cs (1)
185
Complete(false, new
OperationCanceledException
());
System\ServiceModel\Discovery\RandomDelaySendsAsyncResult.cs (1)
282
Complete(false, new
OperationCanceledException
());
110 references to OperationCanceledException
mscorlib (30)
system\io\memorystream.cs (2)
399
catch (
OperationCanceledException
oce)
623
catch (
OperationCanceledException
oce)
system\io\unmanagedmemorystream.cs (2)
470
Contract.Assert(! (ex is
OperationCanceledException
));
666
Contract.Assert(! (ex is
OperationCanceledException
));
system\runtime\compilerservices\AsyncMethodBuilder.cs (2)
661
var
oce = exception as
OperationCanceledException
;
system\threading\CancellationToken.cs (1)
463
/// <exception cref="System.
OperationCanceledException
">The token has had cancellation requested.</exception>
system\threading\SemaphoreSlim.cs (4)
270
/// <exception cref="System.
OperationCanceledException
"><paramref name="cancellationToken"/> was canceled.</exception>
312
/// <exception cref="System.
OperationCanceledException
"><paramref name="cancellationToken"/> was canceled.</exception>
377
OperationCanceledException
oce = null;
392
catch (
OperationCanceledException
e) { oce = e; }
system\threading\Tasks\FutureFactory.cs (3)
543
OperationCanceledException
oce = null;
557
catch (
OperationCanceledException
_oce) { oce = _oce; }
1452
catch (
OperationCanceledException
oce)
system\threading\Tasks\Parallel.cs (5)
1078
OperationCanceledException
oce = null;
1393
OperationCanceledException
oce = null;
3244
OperationCanceledException
oce = null;
3561
OperationCanceledException
oce = e as
OperationCanceledException
;
system\threading\Tasks\Task.cs (7)
1456
/// <see cref="System.
OperationCanceledException
">OperationCanceledException</see> that bears the same
2910
OperationCanceledException
exceptionAsOce = unhandledException as
OperationCanceledException
;
3347
/// <exception cref="System.
OperationCanceledException
">The wait was canceled.</exception>
5590
internal static Task<TResult> FromCancellation<TResult>(
OperationCanceledException
exception)
7284
OperationCanceledException
oce;
7287
(oce = oceEdi.SourceException as
OperationCanceledException
) != null)
system\threading\Tasks\TaskExceptionHolder.cs (4)
219
var
oce = exceptionObject as
OperationCanceledException
;
227
Contract.Assert(edi != null && edi.SourceException is
OperationCanceledException
,
422
Contract.Assert(edi == null || edi.SourceException is
OperationCanceledException
,
PresentationFramework (2)
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (2)
557
catch (
OperationCanceledException
)
586
catch (
OperationCanceledException
)
System (32)
net\System\Net\WebSockets\WebSocketBase.cs (3)
1287
return error is
OperationCanceledException
||
1309
OperationCanceledException
operationCanceledException = exception as
OperationCanceledException
;
services\monitoring\system\diagnosticts\AsyncStreamReader.cs (1)
168
catch (
OperationCanceledException
) {
sys\system\collections\concurrent\BlockingCollection.cs (27)
279
/// A <see cref="System.
OperationCanceledException
"/> is thrown if the <see cref="CancellationToken"/> is
284
/// <exception cref="
OperationCanceledException
">If the <see cref="CancellationToken"/> is canceled.</exception>
371
/// A <see cref="System.
OperationCanceledException
"/> is thrown if the <see cref="CancellationToken"/> is
380
/// <exception cref="
OperationCanceledException
">If the <see cref="CancellationToken"/> is canceled.</exception>
405
/// <exception cref="
OperationCanceledException
">If the <see cref="CancellationToken"/> is canceled.</exception>
439
catch (
OperationCanceledException
)
647
/// A <see cref="System.
OperationCanceledException
"/> is thrown if the <see cref="CancellationToken"/> is
656
/// <exception cref="
OperationCanceledException
">If the <see cref="CancellationToken"/> is canceled.</exception>
674
/// A <see cref="System.
OperationCanceledException
"/> is thrown if the <see cref="CancellationToken"/> is
684
/// <exception cref="
OperationCanceledException
">If the <see cref="CancellationToken"/> is canceled.</exception>
716
catch (
OperationCanceledException
)
823
/// A <see cref="System.
OperationCanceledException
"/> is thrown if the <see cref="CancellationToken"/> is
830
/// <exception cref="
OperationCanceledException
">If the <see cref="CancellationToken"/> is canceled.</exception>
945
/// A <see cref="System.
OperationCanceledException
"/> is thrown if the <see cref="CancellationToken"/> is
955
/// <exception cref="
OperationCanceledException
">If the <see cref="CancellationToken"/> is canceled.</exception>
975
/// A <see cref="System.
OperationCanceledException
"/> is thrown if the <see cref="CancellationToken"/> is
985
/// <exception cref="
OperationCanceledException
">If the <see cref="CancellationToken"/> is canceled.</exception>
1194
/// A <see cref="System.
OperationCanceledException
"/> is thrown if the <see cref="CancellationToken"/> is
1204
/// <exception cref="
OperationCanceledException
">If the <see cref="CancellationToken"/> is canceled.</exception>
1314
/// A <see cref="System.
OperationCanceledException
"/> is thrown if the <see cref="CancellationToken"/> is
1324
/// <exception cref="
OperationCanceledException
">If the <see cref="CancellationToken"/> is canceled.</exception>
1346
/// A <see cref="System.
OperationCanceledException
"/> is thrown if the <see cref="CancellationToken"/> is
1357
/// <exception cref="
OperationCanceledException
">If the <see cref="CancellationToken"/> is canceled.</exception>
1381
/// A <see cref="System.
OperationCanceledException
"/> is thrown if the <see cref="CancellationToken"/> is
1392
/// <exception cref="
OperationCanceledException
">If the <see cref="CancellationToken"/> is canceled.</exception>
1663
/// throw an <see cref="System.
OperationCanceledException
"/> if the <see cref="CancellationToken"/> is canceled.
1669
/// <exception cref="
OperationCanceledException
">If the <see cref="CancellationToken"/> is canceled.</exception>
sys\system\threading\Barrier.cs (1)
711
catch (
OperationCanceledException
)
System.Activities (4)
System\Activities\DurableInstancing\PersistenceIOParticipant.cs (1)
22
[Fx.Tag.Throws(typeof(
OperationCanceledException
), "The operation has been aborted. The transaction should be rolled back and the pipeline aborted.")]
System\Activities\WorkflowApplication.cs (3)
5763
catch (
OperationCanceledException
) { }
5781
catch (
OperationCanceledException
) { }
5801
catch (
OperationCanceledException
) { }
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\Validation\BackgroundValidationSynchronizer.cs (1)
133
catch (
OperationCanceledException
)
System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (1)
396
if (Fx.IsFatal(e) || e is
OperationCanceledException
)
System.Core (8)
System\Linq\Parallel\QueryOperators\Inlined\InlinedAggregationOperator.cs (2)
80
OperationCanceledException
cancelEx = ex as
OperationCanceledException
;
System\Linq\Parallel\Scheduling\QueryTaskGroupState.cs (2)
121
OperationCanceledException
oce = flattenedAE.InnerExceptions[i] as
OperationCanceledException
;
System\Linq\Parallel\Scheduling\SpoolingTaskBase.cs (2)
55
OperationCanceledException
oce = ex as
OperationCanceledException
;
System\Linq\Parallel\Utils\ExceptionAggregator.cs (2)
167
OperationCanceledException
cancelEx = ex as
OperationCanceledException
;
System.Data (2)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\BackgroundValidationSynchronizer.cs (1)
133
catch (
OperationCanceledException
)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (1)
396
if (Fx.IsFatal(e) || e is
OperationCanceledException
)
System.Runtime.DurableInstancing (8)
System\Runtime\DurableInstancing\InstancePersistenceContext.cs (6)
685
[Fx.Tag.Throws(typeof(
OperationCanceledException
), "The operation was canceled because the InstanceHandle has been freed.")]
706
catch (
OperationCanceledException
)
733
catch (
OperationCanceledException
)
817
catch (
OperationCanceledException
)
835
catch (
OperationCanceledException
)
1567
else if (exception is TimeoutException || exception is
OperationCanceledException
)
System\Runtime\DurableInstancing\InstanceStore.cs (2)
64
[Fx.Tag.Throws(typeof(
OperationCanceledException
), "The operation was canceled; the InstanceHandle is no longer valid.")]
115
[Fx.Tag.Throws(typeof(
OperationCanceledException
), "The operation was canceled; the InstanceHandle is no longer valid.")]
System.ServiceModel (5)
System\ServiceModel\Channels\HttpChannelListener.cs (1)
1209
else if (e is
OperationCanceledException
)
System\ServiceModel\Channels\HttpPipeline.cs (1)
525
catch (
OperationCanceledException
)
System\ServiceModel\Channels\WebSocketHelper.cs (3)
259
Exception exception = FxTrace.Exception.AsError<
OperationCanceledException
>(aggregationException);
260
OperationCanceledException
operationCanceledException = exception as
OperationCanceledException
;
System.ServiceModel.Activities (13)
System\ServiceModel\Activities\Dispatcher\ControlOperationInvoker.cs (2)
413
catch (
OperationCanceledException
exception)
497
catch (
OperationCanceledException
exception)
System\ServiceModel\Activities\Dispatcher\DurableInstanceManager.cs (4)
207
catch (
OperationCanceledException
exception)
243
exception is
OperationCanceledException
||
845
catch (
OperationCanceledException
) { }
928
catch (
OperationCanceledException
) { }
System\ServiceModel\Activities\Dispatcher\PersistenceContext.cs (5)
446
if (exception is
OperationCanceledException
)
873
catch (
OperationCanceledException
exception)
1030
catch (
OperationCanceledException
exception)
1170
catch (
OperationCanceledException
exception)
1368
catch (
OperationCanceledException
exception)
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (2)
138
[Fx.Tag.Throws(typeof(
OperationCanceledException
), "The directory of loaded instances has been aborted. An abrupt shutdown of the service is in progress.")]
1339
if (exception is
OperationCanceledException
)
System.Web (2)
Hosting\BackgroundWorkScheduler.cs (2)
46
OperationCanceledException
operationCanceledException = ex as
OperationCanceledException
;
WindowsBase (2)
Base\System\Windows\Threading\Dispatcher.cs (1)
1520
catch(
OperationCanceledException
)
Base\System\Windows\Threading\DispatcherOperation.cs (1)
457
if(_exception != null && _exception is
OperationCanceledException
)