61 references to CanBeCanceled
mscorlib (29)
system\io\filestream.cs (2)
2638
if (readTask._asyncResult.IsAsync && cancellationToken.
CanBeCanceled
)
2690
if (writeTask._asyncResult.IsAsync && cancellationToken.
CanBeCanceled
)
system\threading\CancellationToken.cs (4)
37
/// <see cref="
CanBeCanceled
"/> is false will never change to one that can be canceled.
154
/// both <see cref="
CanBeCanceled
"/> and <see cref="IsCancellationRequested"/> will be false.
156
/// both <see cref="
CanBeCanceled
"/> and <see cref="IsCancellationRequested"/> will be true.
332
if (
CanBeCanceled
== false)
system\threading\CancellationTokenSource.cs (3)
878
bool token2CanBeCanceled = token2.
CanBeCanceled
;
880
if( token1.
CanBeCanceled
)
925
if (tokens[i].
CanBeCanceled
)
system\threading\SemaphoreSlim.cs (2)
631
return (millisecondsTimeout == Timeout.Infinite && !cancellationToken.
CanBeCanceled
) ?
704
using (var cts = cancellationToken.
CanBeCanceled
?
system\threading\Tasks\Parallel.cs (13)
227
if (parallelOptions.CancellationToken.
CanBeCanceled
1083
if (parallelOptions.CancellationToken.
CanBeCanceled
)
1268
if (parallelOptions.CancellationToken.
CanBeCanceled
)
1280
if (parallelOptions.CancellationToken.
CanBeCanceled
)
1292
if (parallelOptions.CancellationToken.
CanBeCanceled
)
1398
if (parallelOptions.CancellationToken.
CanBeCanceled
)
1581
if (parallelOptions.CancellationToken.
CanBeCanceled
)
1593
if (parallelOptions.CancellationToken.
CanBeCanceled
)
1605
if (parallelOptions.CancellationToken.
CanBeCanceled
)
3249
if (parallelOptions.CancellationToken.
CanBeCanceled
)
3475
if (parallelOptions.CancellationToken.
CanBeCanceled
)
3487
if (parallelOptions.CancellationToken.
CanBeCanceled
)
3500
if (parallelOptions.CancellationToken.
CanBeCanceled
)
system\threading\Tasks\Task.cs (5)
656
if (cancellationToken.
CanBeCanceled
)
3252
if (millisecondsTimeout == Timeout.Infinite && !cancellationToken.
CanBeCanceled
&&
4644
if (cancellationToken.
CanBeCanceled
)
5084
if (millisecondsTimeout != Timeout.Infinite || cancellationToken.
CanBeCanceled
)
5888
if (cancellationToken.
CanBeCanceled
)
System (8)
net\System\Net\WebSockets\WebSocketConnectionStream.cs (3)
210
if (cancellationToken.
CanBeCanceled
)
256
if (cancellationToken.
CanBeCanceled
)
325
if (cancellationToken.
CanBeCanceled
)
net\System\Net\WebSockets\WebSocketHelpers.cs (1)
219
cancellationToken.
CanBeCanceled
);
net\System\Net\WebSockets\WebSocketHttpListenerDuplexStream.cs (4)
149
if (cancellationToken.
CanBeCanceled
)
373
if (cancellationToken.
CanBeCanceled
)
436
if (cancellationToken.
CanBeCanceled
)
626
if (cancellationToken.
CanBeCanceled
)
System.Core (8)
System\IO\Pipes\IOCancellationHelper.cs (1)
37
if (!_cancellationToken.
CanBeCanceled
) {
System\IO\Pipes\Pipe.cs (3)
637
IOCancellationHelper cancellationHelper = cancellationToken.
CanBeCanceled
? new IOCancellationHelper(cancellationToken) : null;
1298
if (cancellationToken.
CanBeCanceled
) {
1316
if (cancellationToken.
CanBeCanceled
) {
System\Linq\Parallel\QueryOperators\QuerySettings.cs (4)
118
if (this.CancellationState.ExternalCancellationToken.
CanBeCanceled
&& settings2.CancellationState.ExternalCancellationToken.
CanBeCanceled
)
135
CancellationToken externalCancellationToken = (this.CancellationState.ExternalCancellationToken.
CanBeCanceled
) ? this.CancellationState.ExternalCancellationToken : settings2.CancellationState.ExternalCancellationToken;
167
Contract.Assert(settings.CancellationState.MergedCancellationToken.
CanBeCanceled
);
System.Data (14)
fx\src\data\System\Data\Common\DBCommand.cs (3)
214
if (cancellationToken.
CanBeCanceled
) {
250
if (cancellationToken.
CanBeCanceled
) {
274
if (cancellationToken.
CanBeCanceled
) {
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (1)
2582
if (cts.
CanBeCanceled
) {
fx\src\data\System\Data\SqlClient\SqlCommand.cs (3)
2413
if (cancellationToken.
CanBeCanceled
) {
2477
if (cancellationToken.
CanBeCanceled
) {
2581
if (cancellationToken.
CanBeCanceled
) {
fx\src\data\System\Data\SqlClient\SqlConnection.cs (1)
1433
if (cancellationToken.
CanBeCanceled
) {
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (5)
3945
if (cancellationToken.
CanBeCanceled
) {
4011
if (cancellationToken.
CanBeCanceled
) {
4278
if (cancellationToken.
CanBeCanceled
) {
4399
if (cancellationToken.
CanBeCanceled
) {
4500
if (cancellationToken.
CanBeCanceled
) {
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (1)
175
if (!cancellationToken.
CanBeCanceled
)
System.Web (1)
WebSockets\AspNetWebSocket.cs (1)
577
if (!task.IsCompleted && cancellationToken.
CanBeCanceled
) {
WindowsBase (1)
Base\System\Windows\Threading\Dispatcher.cs (1)
1084
if(cancellationToken.
CanBeCanceled
)