42 references to IsCanceled
mscorlib (13)
system\threading\Tasks\Task.cs (9)
2090
if (includeTaskCanceledExceptions &&
IsCanceled
)
2134
Contract.Assert(
IsCanceled
, "Must only be used when the task has canceled.");
2754
if (!IsCancellationRequested && !
IsCanceled
)
2758
else if (!
IsCanceled
)
3181
if (
IsCanceled
) cancellationToken.ThrowIfCancellationRequested();
5101
else if (task.
IsCanceled
) cancellationSeen = true;
5120
else if (task.
IsCanceled
) cancellationSeen = true;
6149
else if (task.
IsCanceled
)
6394
else if (task.
IsCanceled
)
system\threading\Tasks\TaskContinuation.cs (2)
333
(completedTask.
IsCanceled
?
344
if (!continuationTask.
IsCanceled
&& AsyncCausalityTracer.LoggingOn)
system\threading\Tasks\TaskScheduler.cs (2)
206
task.
IsCanceled
||
228
if (bInlined && !(task.IsDelegateInvoked || task.
IsCanceled
))
System.Data (20)
fx\src\data\System\Data\ProviderBase\DbConnectionFactory.cs (1)
273
if (task.
IsCanceled
) {
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (3)
519
Debug.Assert(!t.
IsCanceled
, "Execution task was canceled");
762
Debug.Assert(!t.
IsCanceled
, "Execution task was canceled");
2485
if (task.
IsCanceled
) {
fx\src\data\System\Data\SqlClient\SqlCommand.cs (10)
1365
if (completionTask.
IsCanceled
) {
1372
Debug.Assert(_reconnectionCompletionSource == null || _reconnectionCompletionSource.Task.
IsCanceled
, "ReconnectCompletionSource should be null or cancelled");
1435
if (reconnectionCompletionSource != null && reconnectionCompletionSource.Task.
IsCanceled
) {
2215
else if (tsk.
IsCanceled
) {
2278
else if (retryTsk.
IsCanceled
) {
2432
if (t.
IsCanceled
) {
2496
if (t.
IsCanceled
) {
2516
if (executeTask.
IsCanceled
) {
2526
if (readTask.
IsCanceled
) {
2600
if (t.
IsCanceled
) {
fx\src\data\System\Data\SqlClient\SqlConnection.cs (1)
1481
else if (retryTask.
IsCanceled
) {
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (2)
4589
if (retryTask.
IsCanceled
) {
4666
else if (task.
IsCanceled
) {
fx\src\data\System\Data\SqlClient\SqlUtil.cs (2)
76
else if (tsk.
IsCanceled
) {
172
if (!tsk.
IsCanceled
&& !completion.Task.IsCompleted) {
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
8005
Debug.Assert(!t.
IsCanceled
, "Task should not be canceled");
System.ServiceModel (5)
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
3268
else if (task.
IsCanceled
)
System\ServiceModel\Channels\HttpRequestContext.cs (1)
1131
else if (acceptTask.
IsCanceled
)
System\ServiceModel\Channels\WebSocketHelper.cs (1)
331
else if (task.
IsCanceled
)
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (2)
149
if (task.
IsCanceled
)
296
else if (antecedent.
IsCanceled
)
System.ServiceModel.Internals (2)
System\Runtime\TaskExtensions.cs (2)
34
else if (t.
IsCanceled
)
76
else if (t.
IsCanceled
)
System.Web (2)
Hosting\BackgroundWorkScheduler.cs (1)
41
if (returnedTask != null && returnedTask.
IsCanceled
) {
Util\SynchronizationHelper.cs (1)
188
else if (t.
IsCanceled
) {