76 references to Default
mscorlib (39)
system\io\filestream.cs (1)
2865
TaskScheduler.
Default
);
system\io\stream.cs (3)
286
cancellationToken, TaskCreationOptions.DenyChildAttach, TaskScheduler.
Default
);
531
TaskScheduler.
Default
);
545
readWriteTask.m_taskScheduler = TaskScheduler.
Default
;
system\io\textreader.cs (2)
200
return Task<String>.Factory.StartNew(_ReadLineDelegate, this, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.
Default
);
240
return Task<int>.Factory.StartNew(_ReadDelegate, tuple, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.
Default
);
system\io\textwriter.cs (7)
544
return Task.Factory.StartNew(_WriteCharDelegate, tuple, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.
Default
);
552
return Task.Factory.StartNew(_WriteStringDelegate, tuple, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.
Default
);
568
return Task.Factory.StartNew(_WriteCharArrayRangeDelegate, tuple, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.
Default
);
576
return Task.Factory.StartNew(_WriteLineCharDelegate, tuple, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.
Default
);
584
return Task.Factory.StartNew(_WriteLineStringDelegate, tuple, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.
Default
);
600
return Task.Factory.StartNew(_WriteLineCharArrayRangeDelegate, tuple, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.
Default
);
614
return Task.Factory.StartNew(_FlushDelegate, this, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.
Default
);
system\runtime\compilerservices\TaskAwaiter.cs (2)
251
(currentTaskAtBegin != null ? currentTaskAtBegin.m_taskScheduler.Id : TaskScheduler.
Default
.Id),
276
(currentTaskAtEnd != null ? currentTaskAtEnd.m_taskScheduler.Id : TaskScheduler.
Default
.Id),
system\runtime\compilerservices\YieldAwaitable.cs (1)
109
if (scheduler == TaskScheduler.
Default
)
system\threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (2)
80
this(TaskScheduler.
Default
, DefaultMaxConcurrencyLevel, DEFAULT_MAXITEMSPERTASK) { }
573
bool isDefaultScheduler = m_pair.m_underlyingTaskScheduler == TaskScheduler.
Default
;
system\threading\Tasks\FutureFactory.cs (1)
74
else return TaskScheduler.
Default
;
system\threading\Tasks\Parallel.cs (1)
58
m_scheduler = TaskScheduler.
Default
;
system\threading\Tasks\Task.cs (11)
2992
if (scheduler != null && scheduler != TaskScheduler.
Default
)
3233
(currentTask != null ? currentTask.m_taskScheduler.Id : TaskScheduler.
Default
.Id), (currentTask != null ? currentTask.Id : 0),
3275
etwLog.TaskWaitEnd(TaskScheduler.
Default
.Id, 0, this.Id);
5617
return Task.InternalStartNew(null, action, null, default(CancellationToken), TaskScheduler.
Default
,
5637
return Task.InternalStartNew(null, action, null, cancellationToken, TaskScheduler.
Default
,
5654
TaskCreationOptions.DenyChildAttach, InternalTaskOptions.None, TaskScheduler.
Default
, ref stackMark);
5674
TaskCreationOptions.DenyChildAttach, InternalTaskOptions.None, TaskScheduler.
Default
, ref stackMark);
5721
Task<Task> task1 = Task<Task>.Factory.StartNew(function, cancellationToken, TaskCreationOptions.DenyChildAttach, TaskScheduler.
Default
);
5772
Task<Task<TResult>> task1 = Task<Task<TResult>>.Factory.StartNew(function, cancellationToken, TaskCreationOptions.DenyChildAttach, TaskScheduler.
Default
);
6557
TaskContinuationOptions.ExecuteSynchronously | TaskContinuationOptions.DenyChildAttach, TaskScheduler.
Default
);
6586
TaskContinuationOptions.ExecuteSynchronously | TaskContinuationOptions.DenyChildAttach, TaskScheduler.
Default
);
system\threading\Tasks\TaskContinuation.cs (5)
428
etwLog.AwaitTaskContinuationScheduled((task.ExecutingTaskScheduler ?? TaskScheduler.
Default
).Id, task.Id, m_continuationId);
506
if (m_scheduler == TaskScheduler.
Default
)
622
etwLog.AwaitTaskContinuationScheduled((task.ExecutingTaskScheduler ?? TaskScheduler.
Default
).Id, task.Id, m_continuationId);
658
return sched == null || sched == TaskScheduler.
Default
;
833
etwLog.AwaitTaskContinuationScheduled((task.ExecutingTaskScheduler ?? TaskScheduler.
Default
).Id, task.Id, atc.m_continuationId);
system\threading\Tasks\TaskFactory.cs (1)
70
else return TaskScheduler.
Default
;
system\threading\Tasks\TaskScheduler.cs (2)
346
/// When not called from within a task, <see cref="Current"/> will return the <see cref="
Default
"/> scheduler.
353
return current ?? TaskScheduler.
Default
;
System.Core (4)
System\Linq\Parallel\QueryOperators\QuerySettings.cs (1)
186
settings.TaskScheduler = TaskScheduler.
Default
;
System\Linq\Parallel\Scheduling\QueryTask.cs (2)
66
Contract.Assert(taskScheduler == TaskScheduler.
Default
, "PLINQ queries can currently execute only on the default scheduler.");
84
Contract.Assert(taskScheduler == TaskScheduler.
Default
, "PLINQ queries can currently execute only on the default scheduler.");
System\Linq\Parallel\Utils\PLINQETWProvider.cs (1)
44
private static readonly int s_defaultSchedulerId = TaskScheduler.
Default
.Id;
System.Data (30)
fx\src\data\System\Data\ProviderBase\DbConnectionFactory.cs (2)
258
}, cancellationTokenSource.Token, TaskContinuationOptions.LongRunning, TaskScheduler.
Default
);
290
}, TaskScheduler.
Default
);
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (4)
528
}, TaskScheduler.
Default
);
769
}, TaskScheduler.
Default
);
1009
}, TaskScheduler.
Default
).Unwrap();
1810
}, TaskScheduler.
Default
).Unwrap();
fx\src\data\System\Data\SqlClient\SqlCommand.cs (11)
1302
globalCompletion.Task.ContinueWith((t) => callback(t), TaskScheduler.
Default
);
1795
globalCompletion.Task.ContinueWith((t) => callback(t), TaskScheduler.
Default
);
2188
globalCompletion.Task.ContinueWith((t) => callback(t), TaskScheduler.
Default
);
2284
}, TaskScheduler.
Default
);
2292
}, TaskScheduler.
Default
);
2439
}, TaskScheduler.
Default
);
2454
}, CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously | TaskContinuationOptions.NotOnCanceled, TaskScheduler.
Default
);
2503
}, TaskScheduler.
Default
);
2563
}, TaskScheduler.
Default
);
2566
}, TaskScheduler.
Default
).Unwrap();
2607
}, TaskScheduler.
Default
);
fx\src\data\System\Data\SqlClient\SqlConnection.cs (2)
1438
completion.Task.ContinueWith(retry.Retry, TaskScheduler.
Default
);
2145
}, TaskScheduler.
Default
).Unwrap();
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (3)
4172
retryTask.ContinueWith((t) => CompleteRetryable(t, source, timeoutCancellationSource), TaskScheduler.
Default
);
4616
}, TaskScheduler.
Default
).Unwrap();
4634
task.ContinueWith((t) => CompleteRetryable(t, source, objectToDispose), TaskScheduler.
Default
);
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (2)
127
readTask.ContinueWith((t) => callback(t), TaskScheduler.
Default
);
250
}, TaskScheduler.
Default
);
fx\src\data\System\Data\SqlClient\SqlSequentialTextReader.cs (1)
226
}, TaskScheduler.
Default
);
fx\src\data\System\Data\SqlClient\SqlUtil.cs (1)
147
}, TaskScheduler.
Default
fx\src\data\System\Data\SqlClient\TdsParser.cs (4)
8020
}, TaskScheduler.
Default
);
8554
}, TaskScheduler.
Default
);
8591
execFlushTask.ContinueWith(tsk => ExecuteFlushTaskCallback(tsk, stateObj, completion, taskReleaseConnectionLock), TaskScheduler.
Default
);
9656
}, TaskScheduler.
Default
).Unwrap();
System.ServiceModel (2)
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (2)
276
}, callback, CancellationToken.None, TaskContinuationOptions.HideScheduler, TaskScheduler.
Default
);
309
}, continuationState, CancellationToken.None, TaskContinuationOptions.HideScheduler, TaskScheduler.
Default
);
System.Web (1)
Util\SynchronizationHelper.cs (1)
108
Task newTask = _lastScheduledTask.ContinueWith(_ => SafeWrapCallback(action), TaskScheduler.
Default
);