258 references to TaskContinuationOptions
mscorlib (242)
system\io\stream.cs (1)
530
TaskContinuationOptions
.ExecuteSynchronously,
system\threading\Tasks\Future.cs (40)
738
return ContinueWith(continuationAction, TaskScheduler.Current, default(CancellationToken),
TaskContinuationOptions
.None, ref stackMark);
766
return ContinueWith(continuationAction, TaskScheduler.Current, cancellationToken,
TaskContinuationOptions
.None, ref stackMark);
796
return 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>.
828
public 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>.
874
TaskContinuationOptions
continuationOptions, TaskScheduler scheduler)
882
TaskContinuationOptions
continuationOptions, ref StackCrawlMark stackMark)
938
return ContinueWith(continuationAction, state, TaskScheduler.Current, default(CancellationToken),
TaskContinuationOptions
.None, ref stackMark);
967
return ContinueWith(continuationAction, state, TaskScheduler.Current, cancellationToken,
TaskContinuationOptions
.None, ref stackMark);
998
return 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>.
1031
public 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>.
1078
TaskContinuationOptions
continuationOptions, TaskScheduler scheduler)
1086
TaskContinuationOptions
continuationOptions, ref StackCrawlMark stackMark)
1145
return ContinueWith<TNewResult>(continuationFunction, TaskScheduler.Current, default(CancellationToken),
TaskContinuationOptions
.None, ref stackMark);
1176
return ContinueWith<TNewResult>(continuationFunction, TaskScheduler.Current, cancellationToken,
TaskContinuationOptions
.None, ref stackMark);
1208
return 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>.
1249
public 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>.
1305
TaskContinuationOptions
continuationOptions, TaskScheduler scheduler)
1313
CancellationToken cancellationToken,
TaskContinuationOptions
continuationOptions, ref StackCrawlMark stackMark)
1372
return ContinueWith<TNewResult>(continuationFunction, state, TaskScheduler.Current, default(CancellationToken),
TaskContinuationOptions
.None, ref stackMark);
1405
return ContinueWith<TNewResult>(continuationFunction, state, TaskScheduler.Current, cancellationToken,
TaskContinuationOptions
.None, ref stackMark);
1439
return 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>.
1482
TaskContinuationOptions
continuationOptions)
1503
/// cref="System.Threading.Tasks.
TaskContinuationOptions
.OnlyOnCanceled">OnlyOnCanceled</see>, as
1505
/// cref="System.Threading.Tasks.
TaskContinuationOptions
.ExecuteSynchronously">ExecuteSynchronously</see>.
1539
CancellationToken cancellationToken,
TaskContinuationOptions
continuationOptions, TaskScheduler scheduler)
1547
TaskScheduler scheduler, CancellationToken cancellationToken,
TaskContinuationOptions
continuationOptions, ref StackCrawlMark stackMark)
system\threading\Tasks\FutureFactory.cs (50)
55
private
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
168
public TaskFactory(TaskCreationOptions creationOptions,
TaskContinuationOptions
continuationOptions)
184
/// The default <see cref="System.Threading.Tasks.
TaskContinuationOptions
">
201
/// <see cref="
TaskContinuationOptions
"/> property is initialized to <paramref
208
public TaskFactory(CancellationToken cancellationToken, TaskCreationOptions creationOptions,
TaskContinuationOptions
continuationOptions, TaskScheduler scheduler)
262
public
TaskContinuationOptions
ContinuationOptions { get { return m_defaultContinuationOptions; } }
1466
private 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>,
1563
public 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>,
1611
CancellationToken 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>,
1710
TaskContinuationOptions
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>,
1759
CancellationToken cancellationToken,
TaskContinuationOptions
continuationOptions, TaskScheduler scheduler)
1773
TaskContinuationOptions
continuationOptions, CancellationToken cancellationToken, TaskScheduler scheduler, ref StackCrawlMark stackMark)
1788
&& ((continuationOptions &
TaskContinuationOptions
.LazyCancellation) == 0)
1820
TaskContinuationOptions
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>,
1963
public 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>,
2011
CancellationToken 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>,
2110
TaskContinuationOptions
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>,
2159
CancellationToken cancellationToken,
TaskContinuationOptions
continuationOptions, TaskScheduler scheduler)
2172
TaskContinuationOptions
continuationOptions, CancellationToken cancellationToken, TaskScheduler scheduler, ref StackCrawlMark stackMark)
2189
&& ((continuationOptions &
TaskContinuationOptions
.LazyCancellation) == 0)
2220
TaskContinuationOptions
continuationOptions, CancellationToken cancellationToken, TaskScheduler scheduler, ref StackCrawlMark stackMark)
2236
&& ((continuationOptions &
TaskContinuationOptions
.LazyCancellation) == 0)
system\threading\Tasks\Task.cs (64)
3669
if (tc != null && (tc.m_options &
TaskContinuationOptions
.ExecuteSynchronously) == 0)
3755
return ContinueWith(continuationAction, TaskScheduler.Current, default(CancellationToken),
TaskContinuationOptions
.None, ref stackMark);
3782
return ContinueWith(continuationAction, TaskScheduler.Current, cancellationToken,
TaskContinuationOptions
.None, ref stackMark);
3811
return 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>.
3843
public 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>.
3889
TaskContinuationOptions
continuationOptions, TaskScheduler scheduler)
3897
CancellationToken cancellationToken,
TaskContinuationOptions
continuationOptions, ref StackCrawlMark stackMark)
3953
return ContinueWith(continuationAction, state, TaskScheduler.Current, default(CancellationToken),
TaskContinuationOptions
.None, ref stackMark);
3981
return ContinueWith(continuationAction, state, TaskScheduler.Current, cancellationToken,
TaskContinuationOptions
.None, ref stackMark);
4011
return 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>.
4044
public 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>.
4091
TaskContinuationOptions
continuationOptions, TaskScheduler scheduler)
4099
CancellationToken cancellationToken,
TaskContinuationOptions
continuationOptions, ref StackCrawlMark stackMark)
4159
TaskContinuationOptions
.None, ref stackMark);
4190
return ContinueWith<TResult>(continuationFunction, TaskScheduler.Current, cancellationToken,
TaskContinuationOptions
.None, ref stackMark);
4222
return 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>.
4257
public 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>.
4306
TaskContinuationOptions
continuationOptions, TaskScheduler scheduler)
4314
CancellationToken cancellationToken,
TaskContinuationOptions
continuationOptions, ref StackCrawlMark stackMark)
4374
TaskContinuationOptions
.None, ref stackMark);
4406
return ContinueWith<TResult>(continuationFunction, state, TaskScheduler.Current, cancellationToken,
TaskContinuationOptions
.None, ref stackMark);
4439
return 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>.
4475
public 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>.
4525
TaskContinuationOptions
continuationOptions, TaskScheduler scheduler)
4533
CancellationToken cancellationToken,
TaskContinuationOptions
continuationOptions, ref StackCrawlMark stackMark)
4574
TaskContinuationOptions
continuationOptions,
4579
TaskContinuationOptions
NotOnAnything =
4580
TaskContinuationOptions
.NotOnCanceled |
4581
TaskContinuationOptions
.NotOnFaulted |
4582
TaskContinuationOptions
.NotOnRanToCompletion;
4584
TaskContinuationOptions
creationOptionsMask =
4585
TaskContinuationOptions
.PreferFairness |
4586
TaskContinuationOptions
.LongRunning |
4587
TaskContinuationOptions
.DenyChildAttach |
4588
TaskContinuationOptions
.HideScheduler |
4589
TaskContinuationOptions
.AttachedToParent|
4590
TaskContinuationOptions
.RunContinuationsAsynchronously;
4593
TaskContinuationOptions
illegalMask =
TaskContinuationOptions
.ExecuteSynchronously |
TaskContinuationOptions
.LongRunning;
4602
TaskContinuationOptions
.LazyCancellation |
TaskContinuationOptions
.ExecuteSynchronously)) != 0)
4620
if ((continuationOptions &
TaskContinuationOptions
.LazyCancellation) != 0)
4634
TaskContinuationOptions
options)
6557
TaskContinuationOptions
.ExecuteSynchronously |
TaskContinuationOptions
.DenyChildAttach, TaskScheduler.Default);
6586
TaskContinuationOptions
.ExecuteSynchronously |
TaskContinuationOptions
.DenyChildAttach, TaskScheduler.Default);
system\threading\Tasks\TaskContinuation.cs (7)
295
internal readonly
TaskContinuationOptions
m_options;
303
internal StandardTaskContinuation(Task task,
TaskContinuationOptions
options, TaskScheduler scheduler)
329
TaskContinuationOptions
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)
50
private
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
168
public TaskFactory(TaskCreationOptions creationOptions,
TaskContinuationOptions
continuationOptions)
184
/// The default <see cref="System.Threading.Tasks.
TaskContinuationOptions
">
201
/// <see cref="
TaskContinuationOptions
"/> property is initialized to <paramref
208
public TaskFactory(CancellationToken cancellationToken, TaskCreationOptions creationOptions,
TaskContinuationOptions
continuationOptions, TaskScheduler scheduler)
279
public
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>,
1870
public 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>,
1918
TaskContinuationOptions
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>,
2018
TaskContinuationOptions
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>,
2067
CancellationToken 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>,
2174
public 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>,
2226
TaskContinuationOptions
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>,
2338
TaskContinuationOptions
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>,
2391
CancellationToken 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>,
2613
public 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>,
2661
TaskContinuationOptions
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>,
2768
public 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>,
2820
TaskContinuationOptions
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>,
2929
TaskContinuationOptions
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>,
2982
CancellationToken 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>,
3082
TaskContinuationOptions
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>,
3131
CancellationToken cancellationToken,
TaskContinuationOptions
continuationOptions, TaskScheduler scheduler)
3184
internal static void CheckMultiTaskContinuationOptions(
TaskContinuationOptions
continuationOptions)
3187
const
TaskContinuationOptions
NotOnAny =
TaskContinuationOptions
.NotOnCanceled |
3188
TaskContinuationOptions
.NotOnFaulted |
3189
TaskContinuationOptions
.NotOnRanToCompletion;
3192
const
TaskContinuationOptions
illegalMask =
TaskContinuationOptions
.ExecuteSynchronously |
TaskContinuationOptions
.LongRunning;
3200
TaskContinuationOptions
.LongRunning |
3201
TaskContinuationOptions
.PreferFairness |
3202
TaskContinuationOptions
.AttachedToParent |
3203
TaskContinuationOptions
.DenyChildAttach |
3204
TaskContinuationOptions
.HideScheduler |
3205
TaskContinuationOptions
.LazyCancellation |
3207
TaskContinuationOptions
.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)
1528
TaskContinuationOptions
.ExecuteSynchronously);
System\ServiceModel\Channels\HttpPipeline.cs (2)
627
TaskContinuationOptions
.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)
50
TaskContinuationOptions
.ExecuteSynchronously);
92
TaskContinuationOptions
.ExecuteSynchronously);
System.Web (5)
HttpApplicationFactory.cs (1)
368
app.ApplicationInstanceConsumersCounter.Task.ContinueWith((_, o) => RecycleApplicationInstance((HttpApplication)o), app,
TaskContinuationOptions
.ExecuteSynchronously);
Util\SynchronizationHelper.cs (2)
91
if (!lastTask.IsCompleted) { lastTask.ContinueWith(_ => { },
TaskContinuationOptions
.ExecuteSynchronously).Wait(); }
194
},
TaskContinuationOptions
.ExecuteSynchronously);
WebSocketPipeline.cs (2)
47
Task abortTask = webSocketTask.ContinueWith(task => (task.Result != null) ? ((AspNetWebSocket)task.Result).AbortAsync() : (Task)null,
TaskContinuationOptions
.ExecuteSynchronously).Unwrap();
51
abortTask.ContinueWith(_ => UnsafeIISMethods.MgdPostCompletion(_root.WorkerRequest.RequestContext, RequestNotificationStatus.Continue),
TaskContinuationOptions
.ExecuteSynchronously);