41 references to CancellationToken
mscorlib (41)
system\threading\Tasks\Parallel.cs (41)
52
/// be employed. <see cref="
CancellationToken
"/> is initialized to a non-cancelable token,
227
if (parallelOptions.
CancellationToken
.CanBeCanceled
230
parallelOptions.
CancellationToken
.ThrowIfSourceDisposed();
233
if (parallelOptions.
CancellationToken
.IsCancellationRequested)
234
throw new OperationCanceledException(parallelOptions.
CancellationToken
);
309
if (parallelOptions.
CancellationToken
.IsCancellationRequested)
310
throw new OperationCanceledException(parallelOptions.
CancellationToken
);
346
ThrowIfReducableToSingleOCE(exceptionQ, parallelOptions.
CancellationToken
);
358
if (parallelOptions.
CancellationToken
.IsCancellationRequested)
359
throw new OperationCanceledException(parallelOptions.
CancellationToken
);
364
tasks[i] = Task.Factory.StartNew(actionsCopy[i], parallelOptions.
CancellationToken
, TaskCreationOptions.None,
391
ThrowIfReducableToSingleOCE(aggExp.InnerExceptions, parallelOptions.
CancellationToken
);
1066
if (parallelOptions.
CancellationToken
.IsCancellationRequested)
1068
throw new OperationCanceledException(parallelOptions.
CancellationToken
);
1083
if (parallelOptions.
CancellationToken
.CanBeCanceled)
1085
ctr = parallelOptions.
CancellationToken
.InternalRegisterWithoutEC((o) =>
1090
oce = new OperationCanceledException(parallelOptions.
CancellationToken
);
1268
if (parallelOptions.
CancellationToken
.CanBeCanceled)
1280
if (parallelOptions.
CancellationToken
.CanBeCanceled)
1286
ThrowIfReducableToSingleOCE(aggExp.InnerExceptions, parallelOptions.
CancellationToken
);
1292
if (parallelOptions.
CancellationToken
.CanBeCanceled)
1381
if (parallelOptions.
CancellationToken
.IsCancellationRequested)
1383
throw new OperationCanceledException(parallelOptions.
CancellationToken
);
1398
if (parallelOptions.
CancellationToken
.CanBeCanceled)
1400
ctr = parallelOptions.
CancellationToken
.InternalRegisterWithoutEC((o) =>
1405
oce = new OperationCanceledException(parallelOptions.
CancellationToken
);
1581
if (parallelOptions.
CancellationToken
.CanBeCanceled)
1593
if (parallelOptions.
CancellationToken
.CanBeCanceled)
1599
ThrowIfReducableToSingleOCE(aggExp.InnerExceptions, parallelOptions.
CancellationToken
);
1605
if (parallelOptions.
CancellationToken
.CanBeCanceled)
2232
if (parallelOptions.
CancellationToken
.IsCancellationRequested)
2234
throw new OperationCanceledException(parallelOptions.
CancellationToken
);
3218
if (parallelOptions.
CancellationToken
.IsCancellationRequested)
3220
throw new OperationCanceledException(parallelOptions.
CancellationToken
);
3249
if (parallelOptions.
CancellationToken
.CanBeCanceled)
3251
ctr = parallelOptions.
CancellationToken
.InternalRegisterWithoutEC((o) =>
3256
oce = new OperationCanceledException(parallelOptions.
CancellationToken
);
3475
if (parallelOptions.
CancellationToken
.CanBeCanceled)
3487
if (parallelOptions.
CancellationToken
.CanBeCanceled)
3493
ThrowIfReducableToSingleOCE(aggExp.InnerExceptions, parallelOptions.
CancellationToken
);
3500
if (parallelOptions.
CancellationToken
.CanBeCanceled)