76 references to Default
mscorlib (39)
system\io\filestream.cs (1)
2865TaskScheduler.Default);
system\io\stream.cs (3)
286cancellationToken, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default); 531TaskScheduler.Default); 545readWriteTask.m_taskScheduler = TaskScheduler.Default;
system\io\textreader.cs (2)
200return Task<String>.Factory.StartNew(_ReadLineDelegate, this, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default); 240return Task<int>.Factory.StartNew(_ReadDelegate, tuple, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
system\io\textwriter.cs (7)
544return Task.Factory.StartNew(_WriteCharDelegate, tuple, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default); 552return Task.Factory.StartNew(_WriteStringDelegate, tuple, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default); 568return Task.Factory.StartNew(_WriteCharArrayRangeDelegate, tuple, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default); 576return Task.Factory.StartNew(_WriteLineCharDelegate, tuple, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default); 584return Task.Factory.StartNew(_WriteLineStringDelegate, tuple, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default); 600return Task.Factory.StartNew(_WriteLineCharArrayRangeDelegate, tuple, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default); 614return 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)
109if (scheduler == TaskScheduler.Default)
system\threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (2)
80this(TaskScheduler.Default, DefaultMaxConcurrencyLevel, DEFAULT_MAXITEMSPERTASK) { } 573bool isDefaultScheduler = m_pair.m_underlyingTaskScheduler == TaskScheduler.Default;
system\threading\Tasks\FutureFactory.cs (1)
74else return TaskScheduler.Default;
system\threading\Tasks\Parallel.cs (1)
58m_scheduler = TaskScheduler.Default;
system\threading\Tasks\Task.cs (11)
2992if (scheduler != null && scheduler != TaskScheduler.Default) 3233(currentTask != null ? currentTask.m_taskScheduler.Id : TaskScheduler.Default.Id), (currentTask != null ? currentTask.Id : 0), 3275etwLog.TaskWaitEnd(TaskScheduler.Default.Id, 0, this.Id); 5617return Task.InternalStartNew(null, action, null, default(CancellationToken), TaskScheduler.Default, 5637return Task.InternalStartNew(null, action, null, cancellationToken, TaskScheduler.Default, 5654TaskCreationOptions.DenyChildAttach, InternalTaskOptions.None, TaskScheduler.Default, ref stackMark); 5674TaskCreationOptions.DenyChildAttach, InternalTaskOptions.None, TaskScheduler.Default, ref stackMark); 5721Task<Task> task1 = Task<Task>.Factory.StartNew(function, cancellationToken, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default); 5772Task<Task<TResult>> task1 = Task<Task<TResult>>.Factory.StartNew(function, cancellationToken, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default); 6557TaskContinuationOptions.ExecuteSynchronously | TaskContinuationOptions.DenyChildAttach, TaskScheduler.Default); 6586TaskContinuationOptions.ExecuteSynchronously | TaskContinuationOptions.DenyChildAttach, TaskScheduler.Default);
system\threading\Tasks\TaskContinuation.cs (5)
428etwLog.AwaitTaskContinuationScheduled((task.ExecutingTaskScheduler ?? TaskScheduler.Default).Id, task.Id, m_continuationId); 506if (m_scheduler == TaskScheduler.Default) 622etwLog.AwaitTaskContinuationScheduled((task.ExecutingTaskScheduler ?? TaskScheduler.Default).Id, task.Id, m_continuationId); 658return sched == null || sched == TaskScheduler.Default; 833etwLog.AwaitTaskContinuationScheduled((task.ExecutingTaskScheduler ?? TaskScheduler.Default).Id, task.Id, atc.m_continuationId);
system\threading\Tasks\TaskFactory.cs (1)
70else 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. 353return current ?? TaskScheduler.Default;
System.Core (4)
System\Linq\Parallel\QueryOperators\QuerySettings.cs (1)
186settings.TaskScheduler = TaskScheduler.Default;
System\Linq\Parallel\Scheduling\QueryTask.cs (2)
66Contract.Assert(taskScheduler == TaskScheduler.Default, "PLINQ queries can currently execute only on the default scheduler."); 84Contract.Assert(taskScheduler == TaskScheduler.Default, "PLINQ queries can currently execute only on the default scheduler.");
System\Linq\Parallel\Utils\PLINQETWProvider.cs (1)
44private 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)
1302globalCompletion.Task.ContinueWith((t) => callback(t), TaskScheduler.Default); 1795globalCompletion.Task.ContinueWith((t) => callback(t), TaskScheduler.Default); 2188globalCompletion.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)
1438completion.Task.ContinueWith(retry.Retry, TaskScheduler.Default); 2145}, TaskScheduler.Default).Unwrap();
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (3)
4172retryTask.ContinueWith((t) => CompleteRetryable(t, source, timeoutCancellationSource), TaskScheduler.Default); 4616}, TaskScheduler.Default).Unwrap(); 4634task.ContinueWith((t) => CompleteRetryable(t, source, objectToDispose), TaskScheduler.Default);
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (2)
127readTask.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); 8591execFlushTask.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)
108Task newTask = _lastScheduledTask.ContinueWith(_ => SafeWrapCallback(action), TaskScheduler.Default);