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