258 references to TaskContinuationOptions
mscorlib (242)
system\io\stream.cs (1)
530TaskContinuationOptions.ExecuteSynchronously,
system\threading\Tasks\Future.cs (40)
738return ContinueWith(continuationAction, TaskScheduler.Current, default(CancellationToken), TaskContinuationOptions.None, ref stackMark); 766return ContinueWith(continuationAction, TaskScheduler.Current, cancellationToken, TaskContinuationOptions.None, ref stackMark); 796return ContinueWith(continuationAction, scheduler, default(CancellationToken), TaskContinuationOptions.None, ref stackMark); 809/// cref="System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled">OnlyOnCanceled</see>, as 811/// cref="System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 828public Task ContinueWith(Action<Task<TResult>> continuationAction, TaskContinuationOptions continuationOptions) 845/// cref="System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled">OnlyOnCanceled</see>, as 847/// cref="System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 874TaskContinuationOptions continuationOptions, TaskScheduler scheduler) 882TaskContinuationOptions continuationOptions, ref StackCrawlMark stackMark) 938return ContinueWith(continuationAction, state, TaskScheduler.Current, default(CancellationToken), TaskContinuationOptions.None, ref stackMark); 967return ContinueWith(continuationAction, state, TaskScheduler.Current, cancellationToken, TaskContinuationOptions.None, ref stackMark); 998return ContinueWith(continuationAction, state, scheduler, default(CancellationToken), TaskContinuationOptions.None, ref stackMark); 1012/// cref="System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled">OnlyOnCanceled</see>, as 1014/// cref="System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 1031public Task ContinueWith(Action<Task<TResult>, Object> continuationAction, Object state,TaskContinuationOptions continuationOptions) 1049/// cref="System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled">OnlyOnCanceled</see>, as 1051/// cref="System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 1078TaskContinuationOptions continuationOptions, TaskScheduler scheduler) 1086TaskContinuationOptions continuationOptions, ref StackCrawlMark stackMark) 1145return ContinueWith<TNewResult>(continuationFunction, TaskScheduler.Current, default(CancellationToken), TaskContinuationOptions.None, ref stackMark); 1176return ContinueWith<TNewResult>(continuationFunction, TaskScheduler.Current, cancellationToken, TaskContinuationOptions.None, ref stackMark); 1208return ContinueWith<TNewResult>(continuationFunction, scheduler, default(CancellationToken), TaskContinuationOptions.None, ref stackMark); 1224/// cref="System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled">OnlyOnCanceled</see>, as 1226/// cref="System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 1249public Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult> continuationFunction, TaskContinuationOptions continuationOptions) 1269/// cref="System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled">OnlyOnCanceled</see>, as 1271/// cref="System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 1305TaskContinuationOptions continuationOptions, TaskScheduler scheduler) 1313CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, ref StackCrawlMark stackMark) 1372return ContinueWith<TNewResult>(continuationFunction, state, TaskScheduler.Current, default(CancellationToken), TaskContinuationOptions.None, ref stackMark); 1405return ContinueWith<TNewResult>(continuationFunction, state, TaskScheduler.Current, cancellationToken, TaskContinuationOptions.None, ref stackMark); 1439return ContinueWith<TNewResult>(continuationFunction, state, scheduler, default(CancellationToken), TaskContinuationOptions.None, ref stackMark); 1456/// cref="System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled">OnlyOnCanceled</see>, as 1458/// cref="System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 1482TaskContinuationOptions continuationOptions) 1503/// cref="System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled">OnlyOnCanceled</see>, as 1505/// cref="System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 1539CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler) 1547TaskScheduler scheduler, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, ref StackCrawlMark stackMark)
system\threading\Tasks\FutureFactory.cs (50)
55private TaskContinuationOptions m_defaultContinuationOptions; 86/// <see cref="TaskContinuationOptions"/> property is initialized to <see 87/// cref="System.Threading.Tasks.TaskContinuationOptions.None">TaskContinuationOptions.None</see>, 93: this(default(CancellationToken), TaskCreationOptions.None, TaskContinuationOptions.None, null) 107/// <see cref="TaskContinuationOptions"/> property is initialized to <see 108/// cref="System.Threading.Tasks.TaskContinuationOptions.None">TaskContinuationOptions.None</see>, 114: this(cancellationToken, TaskCreationOptions.None, TaskContinuationOptions.None, null) 130/// <see cref="TaskContinuationOptions"/> property is initialized to <see 131/// cref="System.Threading.Tasks.TaskContinuationOptions.None">TaskContinuationOptions.None</see>, 138: this(default(CancellationToken), TaskCreationOptions.None, TaskContinuationOptions.None, scheduler) 150/// The default <see cref="System.Threading.Tasks.TaskContinuationOptions"> 162/// <see cref="TaskContinuationOptions"/> property is initialized to <paramref 168public TaskFactory(TaskCreationOptions creationOptions, TaskContinuationOptions continuationOptions) 184/// The default <see cref="System.Threading.Tasks.TaskContinuationOptions"> 201/// <see cref="TaskContinuationOptions"/> property is initialized to <paramref 208public TaskFactory(CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskContinuationOptions continuationOptions, TaskScheduler scheduler) 262public TaskContinuationOptions ContinuationOptions { get { return m_defaultContinuationOptions; } } 1466private static Task<TResult> CreateCanceledTask(TaskContinuationOptions continuationOptions, CancellationToken ct) 1542/// <param name="continuationOptions">The <see cref="System.Threading.Tasks.TaskContinuationOptions"> 1558/// The NotOn* and OnlyOn* <see cref="System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>, 1563public Task<TResult> ContinueWhenAll(Task[] tasks, Func<Task[], TResult> continuationFunction, TaskContinuationOptions continuationOptions) 1581/// <param name="continuationOptions">The <see cref="System.Threading.Tasks.TaskContinuationOptions"> 1605/// The NotOn* and OnlyOn* <see cref="System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>, 1611CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler) 1688/// <param name="continuationOptions">The <see cref="System.Threading.Tasks.TaskContinuationOptions"> 1704/// The NotOn* and OnlyOn* <see cref="System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>, 1710TaskContinuationOptions continuationOptions) 1729/// <param name="continuationOptions">The <see cref="System.Threading.Tasks.TaskContinuationOptions"> 1753/// The NotOn* and OnlyOn* <see cref="System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>, 1759CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler) 1773TaskContinuationOptions continuationOptions, CancellationToken cancellationToken, TaskScheduler scheduler, ref StackCrawlMark stackMark) 1788&& ((continuationOptions & TaskContinuationOptions.LazyCancellation) == 0) 1820TaskContinuationOptions continuationOptions, CancellationToken cancellationToken, TaskScheduler scheduler, ref StackCrawlMark stackMark) 1835&& ((continuationOptions & TaskContinuationOptions.LazyCancellation) == 0) 1942/// <param name="continuationOptions">The <see cref="System.Threading.Tasks.TaskContinuationOptions"> 1958/// The NotOn* and OnlyOn* <see cref="System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>, 1963public Task<TResult> ContinueWhenAny(Task[] tasks, Func<Task, TResult> continuationFunction, TaskContinuationOptions continuationOptions) 1981/// <param name="continuationOptions">The <see cref="System.Threading.Tasks.TaskContinuationOptions"> 2005/// The NotOn* and OnlyOn* <see cref="System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>, 2011CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler) 2088/// <param name="continuationOptions">The <see cref="System.Threading.Tasks.TaskContinuationOptions"> 2104/// The NotOn* and OnlyOn* <see cref="System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>, 2110TaskContinuationOptions continuationOptions) 2129/// <param name="continuationOptions">The <see cref="System.Threading.Tasks.TaskContinuationOptions"> 2153/// The NotOn* and OnlyOn* <see cref="System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>, 2159CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler) 2172TaskContinuationOptions continuationOptions, CancellationToken cancellationToken, TaskScheduler scheduler, ref StackCrawlMark stackMark) 2189&& ((continuationOptions & TaskContinuationOptions.LazyCancellation) == 0) 2220TaskContinuationOptions continuationOptions, CancellationToken cancellationToken, TaskScheduler scheduler, ref StackCrawlMark stackMark) 2236&& ((continuationOptions & TaskContinuationOptions.LazyCancellation) == 0)
system\threading\Tasks\Task.cs (64)
3669if (tc != null && (tc.m_options & TaskContinuationOptions.ExecuteSynchronously) == 0) 3755return ContinueWith(continuationAction, TaskScheduler.Current, default(CancellationToken), TaskContinuationOptions.None, ref stackMark); 3782return ContinueWith(continuationAction, TaskScheduler.Current, cancellationToken, TaskContinuationOptions.None, ref stackMark); 3811return ContinueWith(continuationAction, scheduler, default(CancellationToken), TaskContinuationOptions.None, ref stackMark); 3824/// cref="System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled">OnlyOnCanceled</see>, as 3826/// cref="System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 3843public Task ContinueWith(Action<Task> continuationAction, TaskContinuationOptions continuationOptions) 3859/// cref="System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled">OnlyOnCanceled</see>, as 3861/// cref="System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 3889TaskContinuationOptions continuationOptions, TaskScheduler scheduler) 3897CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, ref StackCrawlMark stackMark) 3953return ContinueWith(continuationAction, state, TaskScheduler.Current, default(CancellationToken), TaskContinuationOptions.None, ref stackMark); 3981return ContinueWith(continuationAction, state, TaskScheduler.Current, cancellationToken, TaskContinuationOptions.None, ref stackMark); 4011return ContinueWith(continuationAction, state, scheduler, default(CancellationToken), TaskContinuationOptions.None, ref stackMark); 4025/// cref="System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled">OnlyOnCanceled</see>, as 4027/// cref="System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 4044public Task ContinueWith(Action<Task, Object> continuationAction, Object state, TaskContinuationOptions continuationOptions) 4061/// cref="System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled">OnlyOnCanceled</see>, as 4063/// cref="System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 4091TaskContinuationOptions continuationOptions, TaskScheduler scheduler) 4099CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, ref StackCrawlMark stackMark) 4159TaskContinuationOptions.None, ref stackMark); 4190return ContinueWith<TResult>(continuationFunction, TaskScheduler.Current, cancellationToken, TaskContinuationOptions.None, ref stackMark); 4222return ContinueWith<TResult>(continuationFunction, scheduler, default(CancellationToken), TaskContinuationOptions.None, ref stackMark); 4238/// cref="System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled">OnlyOnCanceled</see>, as 4240/// cref="System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 4257public Task<TResult> ContinueWith<TResult>(Func<Task, TResult> continuationFunction, TaskContinuationOptions continuationOptions) 4277/// cref="System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled">OnlyOnCanceled</see>, as 4279/// cref="System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 4306TaskContinuationOptions continuationOptions, TaskScheduler scheduler) 4314CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, ref StackCrawlMark stackMark) 4374TaskContinuationOptions.None, ref stackMark); 4406return ContinueWith<TResult>(continuationFunction, state, TaskScheduler.Current, cancellationToken, TaskContinuationOptions.None, ref stackMark); 4439return ContinueWith<TResult>(continuationFunction, state, scheduler, default(CancellationToken), TaskContinuationOptions.None, ref stackMark); 4456/// cref="System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled">OnlyOnCanceled</see>, as 4458/// cref="System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 4475public Task<TResult> ContinueWith<TResult>(Func<Task, Object, TResult> continuationFunction, Object state, TaskContinuationOptions continuationOptions) 4496/// cref="System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled">OnlyOnCanceled</see>, as 4498/// cref="System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously">ExecuteSynchronously</see>. 4525TaskContinuationOptions continuationOptions, TaskScheduler scheduler) 4533CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, ref StackCrawlMark stackMark) 4574TaskContinuationOptions continuationOptions, 4579TaskContinuationOptions NotOnAnything = 4580TaskContinuationOptions.NotOnCanceled | 4581TaskContinuationOptions.NotOnFaulted | 4582TaskContinuationOptions.NotOnRanToCompletion; 4584TaskContinuationOptions creationOptionsMask = 4585TaskContinuationOptions.PreferFairness | 4586TaskContinuationOptions.LongRunning | 4587TaskContinuationOptions.DenyChildAttach | 4588TaskContinuationOptions.HideScheduler | 4589TaskContinuationOptions.AttachedToParent| 4590TaskContinuationOptions.RunContinuationsAsynchronously; 4593TaskContinuationOptions illegalMask = TaskContinuationOptions.ExecuteSynchronously | TaskContinuationOptions.LongRunning; 4602TaskContinuationOptions.LazyCancellation | TaskContinuationOptions.ExecuteSynchronously)) != 0) 4620if ((continuationOptions & TaskContinuationOptions.LazyCancellation) != 0) 4634TaskContinuationOptions options) 6557TaskContinuationOptions.ExecuteSynchronously | TaskContinuationOptions.DenyChildAttach, TaskScheduler.Default); 6586TaskContinuationOptions.ExecuteSynchronously | TaskContinuationOptions.DenyChildAttach, TaskScheduler.Default);
system\threading\Tasks\TaskContinuation.cs (7)
295internal readonly TaskContinuationOptions m_options; 303internal StandardTaskContinuation(Task task, TaskContinuationOptions options, TaskScheduler scheduler) 329TaskContinuationOptions options = m_options; 332(options & TaskContinuationOptions.NotOnRanToCompletion) == 0 : 334(options & TaskContinuationOptions.NotOnCanceled) == 0 : 335(options & TaskContinuationOptions.NotOnFaulted) == 0); 354(options & TaskContinuationOptions.ExecuteSynchronously) != 0) // synchronous execution was requested by the continuation's creator
system\threading\Tasks\TaskFactory.cs (80)
50private TaskContinuationOptions m_defaultContinuationOptions; 86/// <see cref="TaskContinuationOptions"/> property is initialized to <see 87/// cref="System.Threading.Tasks.TaskContinuationOptions.None">TaskContinuationOptions.None</see>, 93: this(default(CancellationToken), TaskCreationOptions.None, TaskContinuationOptions.None, null) 107/// <see cref="TaskContinuationOptions"/> property is initialized to <see 108/// cref="System.Threading.Tasks.TaskContinuationOptions.None">TaskContinuationOptions.None</see>, 114: this(cancellationToken, TaskCreationOptions.None, TaskContinuationOptions.None, null) 130/// <see cref="TaskContinuationOptions"/> property is initialized to <see 131/// cref="System.Threading.Tasks.TaskContinuationOptions.None">TaskContinuationOptions.None</see>, 138: this(default(CancellationToken), TaskCreationOptions.None, TaskContinuationOptions.None, scheduler) 150/// The default <see cref="System.Threading.Tasks.TaskContinuationOptions"> 162/// <see cref="TaskContinuationOptions"/> property is initialized to <paramref 168public TaskFactory(TaskCreationOptions creationOptions, TaskContinuationOptions continuationOptions) 184/// The default <see cref="System.Threading.Tasks.TaskContinuationOptions"> 201/// <see cref="TaskContinuationOptions"/> property is initialized to <paramref 208public TaskFactory(CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskContinuationOptions continuationOptions, TaskScheduler scheduler) 279public TaskContinuationOptions ContinuationOptions { get { return m_defaultContinuationOptions; } } 1849/// <param name="continuationOptions">The <see cref="System.Threading.Tasks.TaskContinuationOptions"> 1865/// The NotOn* and OnlyOn* <see cref="System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>, 1870public Task ContinueWhenAll(Task[] tasks, Action<Task[]> continuationAction, TaskContinuationOptions continuationOptions) 1888/// <param name="continuationOptions">The <see cref="System.Threading.Tasks.TaskContinuationOptions"> 1912/// The NotOn* and OnlyOn* <see cref="System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>, 1918TaskContinuationOptions continuationOptions, TaskScheduler scheduler) 1996/// <param name="continuationOptions">The <see cref="System.Threading.Tasks.TaskContinuationOptions"> 2012/// The NotOn* and OnlyOn* <see cref="System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>, 2018TaskContinuationOptions continuationOptions) 2037/// <param name="continuationOptions">The <see cref="System.Threading.Tasks.TaskContinuationOptions"> 2061/// The NotOn* and OnlyOn* <see cref="System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>, 2067CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler) 2153/// <param name="continuationOptions">The <see cref="System.Threading.Tasks.TaskContinuationOptions"> 2169/// The NotOn* and OnlyOn* <see cref="System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>, 2174public Task<TResult> ContinueWhenAll<TResult>(Task[] tasks, Func<Task[], TResult> continuationFunction, TaskContinuationOptions continuationOptions) 2196/// <param name="continuationOptions">The <see cref="System.Threading.Tasks.TaskContinuationOptions"> 2220/// The NotOn* and OnlyOn* <see cref="System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>, 2226TaskContinuationOptions continuationOptions, TaskScheduler scheduler) 2316/// <param name="continuationOptions">The <see cref="System.Threading.Tasks.TaskContinuationOptions"> 2332/// The NotOn* and OnlyOn* <see cref="System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>, 2338TaskContinuationOptions continuationOptions) 2361/// <param name="continuationOptions">The <see cref="System.Threading.Tasks.TaskContinuationOptions"> 2385/// The NotOn* and OnlyOn* <see cref="System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>, 2391CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler) 2592/// <param name="continuationOptions">The <see cref="System.Threading.Tasks.TaskContinuationOptions"> 2608/// The NotOn* and OnlyOn* <see cref="System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>, 2613public Task ContinueWhenAny(Task[] tasks, Action<Task> continuationAction, TaskContinuationOptions continuationOptions) 2631/// <param name="continuationOptions">The <see cref="System.Threading.Tasks.TaskContinuationOptions"> 2655/// The NotOn* and OnlyOn* <see cref="System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>, 2661TaskContinuationOptions continuationOptions, TaskScheduler scheduler) 2747/// <param name="continuationOptions">The <see cref="System.Threading.Tasks.TaskContinuationOptions"> 2763/// The NotOn* and OnlyOn* <see cref="System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>, 2768public Task<TResult> ContinueWhenAny<TResult>(Task[] tasks, Func<Task, TResult> continuationFunction, TaskContinuationOptions continuationOptions) 2790/// <param name="continuationOptions">The <see cref="System.Threading.Tasks.TaskContinuationOptions"> 2814/// The NotOn* and OnlyOn* <see cref="System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>, 2820TaskContinuationOptions continuationOptions, TaskScheduler scheduler) 2907/// <param name="continuationOptions">The <see cref="System.Threading.Tasks.TaskContinuationOptions"> 2923/// The NotOn* and OnlyOn* <see cref="System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>, 2929TaskContinuationOptions continuationOptions) 2952/// <param name="continuationOptions">The <see cref="System.Threading.Tasks.TaskContinuationOptions"> 2976/// The NotOn* and OnlyOn* <see cref="System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>, 2982CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler) 3060/// <param name="continuationOptions">The <see cref="System.Threading.Tasks.TaskContinuationOptions"> 3076/// The NotOn* and OnlyOn* <see cref="System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>, 3082TaskContinuationOptions continuationOptions) 3101/// <param name="continuationOptions">The <see cref="System.Threading.Tasks.TaskContinuationOptions"> 3125/// The NotOn* and OnlyOn* <see cref="System.Threading.Tasks.TaskContinuationOptions">TaskContinuationOptions</see>, 3131CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler) 3184internal static void CheckMultiTaskContinuationOptions(TaskContinuationOptions continuationOptions) 3187const TaskContinuationOptions NotOnAny = TaskContinuationOptions.NotOnCanceled | 3188TaskContinuationOptions.NotOnFaulted | 3189TaskContinuationOptions.NotOnRanToCompletion; 3192const TaskContinuationOptions illegalMask = TaskContinuationOptions.ExecuteSynchronously | TaskContinuationOptions.LongRunning; 3200TaskContinuationOptions.LongRunning | 3201TaskContinuationOptions.PreferFairness | 3202TaskContinuationOptions.AttachedToParent | 3203TaskContinuationOptions.DenyChildAttach | 3204TaskContinuationOptions.HideScheduler | 3205TaskContinuationOptions.LazyCancellation | 3207TaskContinuationOptions.ExecuteSynchronously)) != 0)
System.Data (3)
fx\src\data\System\Data\ProviderBase\DbConnectionFactory.cs (1)
258}, cancellationTokenSource.Token, TaskContinuationOptions.LongRunning, TaskScheduler.Default);
fx\src\data\System\Data\SqlClient\SqlCommand.cs (2)
2454}, CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously | TaskContinuationOptions.NotOnCanceled, TaskScheduler.Default);
System.ServiceModel (6)
System\ServiceModel\Channels\HttpChannelListener.cs (1)
1528TaskContinuationOptions.ExecuteSynchronously);
System\ServiceModel\Channels\HttpPipeline.cs (2)
627TaskContinuationOptions.OnlyOnRanToCompletion | TaskContinuationOptions.ExecuteSynchronously);
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (1)
1214}, TaskContinuationOptions.None);
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (2)
276}, callback, CancellationToken.None, TaskContinuationOptions.HideScheduler, TaskScheduler.Default); 309}, continuationState, CancellationToken.None, TaskContinuationOptions.HideScheduler, TaskScheduler.Default);
System.ServiceModel.Internals (2)
System\Runtime\TaskExtensions.cs (2)
50TaskContinuationOptions.ExecuteSynchronously); 92TaskContinuationOptions.ExecuteSynchronously);
System.Web (5)
HttpApplicationFactory.cs (1)
368app.ApplicationInstanceConsumersCounter.Task.ContinueWith((_, o) => RecycleApplicationInstance((HttpApplication)o), app, TaskContinuationOptions.ExecuteSynchronously);
Util\SynchronizationHelper.cs (2)
91if (!lastTask.IsCompleted) { lastTask.ContinueWith(_ => { }, TaskContinuationOptions.ExecuteSynchronously).Wait(); } 194}, TaskContinuationOptions.ExecuteSynchronously);
WebSocketPipeline.cs (2)
47Task abortTask = webSocketTask.ContinueWith(task => (task.Result != null) ? ((AspNetWebSocket)task.Result).AbortAsync() : (Task)null, TaskContinuationOptions.ExecuteSynchronously).Unwrap(); 51abortTask.ContinueWith(_ => UnsafeIISMethods.MgdPostCompletion(_root.WorkerRequest.RequestContext, RequestNotificationStatus.Continue), TaskContinuationOptions.ExecuteSynchronously);