13 types derived from Task
mscorlib (13)
system\io\filestream.cs (1)
2706private sealed class FileStreamReadWriteTask<T> : Task<T>
system\io\stream.cs (1)
612private sealed class ReadWriteTask : Task<int>, ITaskCompletionAction
system\threading\SemaphoreSlim.cs (1)
87private sealed class TaskNode : Task<bool>, IThreadPoolWorkItem
system\threading\Tasks\FutureFactory.cs (1)
1364private sealed class FromAsyncTrimPromise<TInstance> : Task<TResult> where TInstance : class
system\threading\Tasks\Task.cs (4)
5905private sealed class DelayPromise : Task<VoidTaskResult> 6089private sealed class WhenAllPromise : Task<VoidTaskResult>, ITaskCompletionAction 6333private sealed class WhenAllPromise<T> : Task<T[]>, ITaskCompletionAction 7135internal sealed class UnwrapPromise<TResult> : Task<TResult>, ITaskCompletionAction
system\threading\Tasks\TaskContinuation.cs (2)
77internal sealed class ContinuationResultTaskFromTask<TResult> : Task<TResult> 173internal sealed class ContinuationResultTaskFromResultTask<TAntecedentResult, TResult> : Task<TResult>
system\threading\Tasks\TaskFactory.cs (3)
1634private sealed class CompleteOnCountdownPromise : Task<Task[]>, ITaskCompletionAction 1712private sealed class CompleteOnCountdownPromise<T> : Task<Task<T>[]>, ITaskCompletionAction 2415internal sealed class CompleteOnInvokePromise : Task<Task>, ITaskCompletionAction
21 instantiations of Task
mscorlib (21)
system\io\stream.cs (1)
950s_nullReadTask = nullReadTask = new Task<int>(false, 0, (TaskCreationOptions)InternalTaskOptions.DoNotDispose, CancellationToken.None); // benign ----
system\runtime\compilerservices\AsyncMethodBuilder.cs (3)
575if (task == null) { m_task = task = new Task<TResult>(); } 795return new Task<TResult>(result); 833return new Task<TResult>(false, result, (TaskCreationOptions)InternalTaskOptions.DoNotDispose, default(CancellationToken));
system\threading\SemaphoreSlim.cs (1)
81new Task<bool>(false, true, (TaskCreationOptions)InternalTaskOptions.DoNotDispose, default(CancellationToken));
system\threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (1)
626var t = new Task<bool>(s_tryExecuteTaskShim, Tuple.Create(this, task));
system\threading\Tasks\Future.cs (2)
410Task<TResult> f = new Task<TResult>(function, parent, cancellationToken, creationOptions, internalOptions | InternalTaskOptions.QueuedByRuntime, scheduler, ref stackMark); 434Task<TResult> f = new Task<TResult>(function, state, parent, cancellationToken, creationOptions, internalOptions | InternalTaskOptions.QueuedByRuntime, scheduler, ref stackMark);
system\threading\Tasks\FutureFactory.cs (6)
707Task<TResult> promise = new Task<TResult>((object)null, creationOptions); 826Task<TResult> promise = new Task<TResult>(state, creationOptions); 963Task<TResult> promise = new Task<TResult>(state, creationOptions); 1108Task<TResult> promise = new Task<TResult>(state, creationOptions); 1260Task<TResult> promise = new Task<TResult>(state, creationOptions); 1471return new Task<TResult>(true, default(TResult), tco, ct);
system\threading\Tasks\Task.cs (5)
5519return new Task<TResult>(result); 5540var task = new Task<TResult>(); 5574return new Task<TResult>(true, default(TResult), TaskCreationOptions.None, cancellationToken); 5595var task = new Task<TResult>(); 6324new Task<TResult[]>(false, new TResult[0], TaskCreationOptions.None, default(CancellationToken)) :
system\threading\Tasks\TaskCompletionSource.cs (2)
63m_task = new Task<TResult>(); 111m_task = new Task<TResult>(state, creationOptions);
1095 references to Task
mscorlib (574)
system\io\bufferedstream.cs (6)
84private Task<Int32> _lastSyncCompletedReadTask; // The last successful Task returned from ReadAsync 631Task<Int32> readOp = ReadFromUnderlyingStreamAsync(buffer, offset, count, CancellationToken.None, 651private Task<Int32> LastSyncCompletedReadTask(Int32 val) { 653Task<Int32> t = _lastSyncCompletedReadTask; 665public override Task<Int32> ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken) { 731private async Task<Int32> ReadFromUnderlyingStreamAsync(Byte[] array, Int32 offset, Int32 count,
system\io\filestream.cs (1)
2603public override Task<int> ReadAsync(Byte[] buffer, int offset, int count, CancellationToken cancellationToken)
system\io\memorystream.cs (3)
59private Task<int> _lastReadTask; // The last successful task returned from ReadAsync 375public override Task<int> ReadAsync(Byte[] buffer, int offset, int count, CancellationToken cancellationToken) 394var t = _lastReadTask;
system\io\stream.cs (6)
410public Task<int> ReadAsync(Byte[] buffer, int offset, int count) 417public virtual Task<int> ReadAsync(Byte[] buffer, int offset, int count, CancellationToken cancellationToken) 426private Task<Int32> BeginEndReadAsync(Byte[] buffer, Int32 offset, Int32 count) 946public override Task<int> ReadAsync(Byte[] buffer, int offset, int count, CancellationToken cancellationToken) 948var nullReadTask = s_nullReadTask; 953private static Task<int> s_nullReadTask;
system\io\streamreader.cs (12)
786public override Task<String> ReadLineAsync() 800Task<String> task = ReadLineAsyncInternal(); 806private async Task<String> ReadLineAsyncInternal() 867public override Task<String> ReadToEndAsync() 881Task<String> task = ReadToEndAsyncInternal(); 887private async Task<String> ReadToEndAsyncInternal() 904public override Task<int> ReadAsync(char[] buffer, int index, int count) 926Task<int> task = ReadAsyncInternal(buffer, index, count); 932internal override async Task<int> ReadAsyncInternal(char[] buffer, int index, int count) 1092public override Task<int> ReadBlockAsync(char[] buffer, int index, int count) 1114Task<int> task = base.ReadBlockAsync(buffer, index, count); 1185private async Task<int> ReadBufferAsync()
system\io\stringreader.cs (4)
151public override Task<String> ReadLineAsync() 157public override Task<String> ReadToEndAsync() 163public override Task<int> ReadBlockAsync(char[] buffer, int index, int count) 178public override Task<int> ReadAsync(char[] buffer, int index, int count)
system\io\textreader.cs (12)
198public virtual Task<String> ReadLineAsync() 200return Task<String>.Factory.StartNew(_ReadLineDelegate, this, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default); 205public async virtual Task<String> ReadToEndAsync() 219public virtual Task<int> ReadAsync(char[] buffer, int index, int count) 232internal virtual Task<int> ReadAsyncInternal(char[] buffer, int index, int count) 240return Task<int>.Factory.StartNew(_ReadDelegate, tuple, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default); 245public virtual Task<int> ReadBlockAsync(char[] buffer, int index, int count) 260private async Task<int> ReadBlockAsyncInternal(char[] buffer, int index, int count) 379public override Task<String> ReadLineAsync() 386public override Task<String> ReadToEndAsync() 393public override Task<int> ReadBlockAsync(char[] buffer, int index, int count) 409public override Task<int> ReadAsync(char[] buffer, int index, int count)
system\io\unmanagedmemorystream.cs (3)
107private Task<Int32> _lastReadTask; // The last successful task returned from ReadAsync 448public override Task<Int32> ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken) { 465Task<Int32> t = _lastReadTask;
system\io\unmanagedmemorystreamwrapper.cs (1)
186public override Task<Int32> ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken) {
system\runtime\compilerservices\AsyncMethodBuilder.cs (28)
280private readonly static Task<VoidTaskResult> s_cachedCompleted = AsyncTaskMethodBuilder<VoidTaskResult>.s_defaultResultTask; 415/// Provides a builder for asynchronous methods that return <see cref="System.Threading.Tasks.Task{TResult}"/>. 427internal readonly static Task<TResult> s_defaultResultTask = AsyncTaskCache.CreateCacheableTask(default(TResult)); 438private Task<TResult> m_task; // lazily-initialized: must not be readonly 511var builtTask = this.Task; 551var builtTask = this.Task; 567/// <summary>Gets the <see cref="System.Threading.Tasks.Task{TResult}"/> for this builder.</summary> 568/// <returns>The <see cref="System.Threading.Tasks.Task{TResult}"/> representing the builder's asynchronous operation.</returns> 569public Task<TResult> Task 574var task = m_task; 581/// Completes the <see cref="System.Threading.Tasks.Task{TResult}"/> in the 590var task = m_task; 621internal void SetResult(Task<TResult> completedTask) 628var task = m_task; 641/// Completes the <see cref="System.Threading.Tasks.Task{TResult}"/> in the 653var task = m_task; 713private Task<TResult> GetTaskForResult(TResult result) 716EqualityComparer<TResult>.Default.Equals(result, Contract.Result<Task<TResult>>().Result), 755Task<Boolean> task = value ? AsyncTaskCache.TrueTask : AsyncTaskCache.FalseTask; 756return JitHelpers.UnsafeCast<Task<TResult>>(task); // UnsafeCast avoids type check we know will succeed 768Task<Int32> task = AsyncTaskCache.Int32Tasks[value - AsyncTaskCache.INCLUSIVE_INT32_MIN]; 769return JitHelpers.UnsafeCast<Task<TResult>>(task); // UnsafeCast avoids a type check we know will succeed 805internal readonly static Task<Boolean> TrueTask = CreateCacheableTask(true); 807internal readonly static Task<Boolean> FalseTask = CreateCacheableTask(false); 810internal readonly static Task<Int32>[] Int32Tasks = CreateInt32Tasks(); 816private static Task<Int32>[] CreateInt32Tasks() 819var tasks = new Task<Int32>[EXCLUSIVE_INT32_MAX - INCLUSIVE_INT32_MIN]; 831internal static Task<TResult> CreateCacheableTask<TResult>(TResult result)
system\runtime\compilerservices\TaskAwaiter.cs (15)
298/// <summary>Provides an awaiter for awaiting a <see cref="System.Threading.Tasks.Task{TResult}"/>.</summary> 304private readonly Task<TResult> m_task; 307/// <param name="task">The <see cref="System.Threading.Tasks.Task{TResult}"/> to be awaited.</param> 308internal TaskAwaiter(Task<TResult> task) 344/// <summary>Ends the await on the completed <see cref="System.Threading.Tasks.Task{TResult}"/>.</summary> 345/// <returns>The result of the completed <see cref="System.Threading.Tasks.Task{TResult}"/>.</returns> 435/// <returns>The result of the completed <see cref="System.Threading.Tasks.Task{TResult}"/>.</returns> 446/// <summary>Provides an awaitable object that allows for configured awaits on <see cref="System.Threading.Tasks.Task{TResult}"/>.</summary> 454/// <param name="task">The awaitable <see cref="System.Threading.Tasks.Task{TResult}"/>.</param> 458internal ConfiguredTaskAwaitable(Task<TResult> task, bool continueOnCapturedContext) 476private readonly Task<TResult> m_task; 481/// <param name="task">The awaitable <see cref="System.Threading.Tasks.Task{TResult}"/>.</param> 485internal ConfiguredTaskAwaiter(Task<TResult> task, bool continueOnCapturedContext) 522/// <summary>Ends the await on the completed <see cref="System.Threading.Tasks.Task{TResult}"/>.</summary> 523/// <returns>The result of the completed <see cref="System.Threading.Tasks.Task{TResult}"/>.</returns>
system\security\cryptography\cryptostream.cs (2)
306public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) 342private async Task<int> ReadAsyncInternal(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
system\threading\SemaphoreSlim.cs (8)
80private readonly static Task<bool> s_trueTask = 333Task<bool> asyncWaitTask = null; 519public Task<bool> WaitAsync(int millisecondsTimeout) 547public Task<bool> WaitAsync(TimeSpan timeout) 568public Task<bool> WaitAsync(TimeSpan timeout, CancellationToken cancellationToken) 600public Task<bool> WaitAsync(int millisecondsTimeout, CancellationToken cancellationToken) 695private async Task<bool> WaitUntilCountOrTimeoutAsync(TaskNode asyncWaiter, int millisecondsTimeout, CancellationToken cancellationToken) 708var waitCompleted = Task.WhenAny(asyncWaiter, Task.Delay(millisecondsTimeout, cts.Token));
system\threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (1)
626var t = new Task<bool>(s_tryExecuteTaskShim, Tuple.Create(this, task));
system\threading\Tasks\Future.cs (137)
36/// The type of the result produced by this <see cref="Task{TResult}"/>. 40/// <see cref="Task{TResult}"/> instances may be created in a variety of ways. The most common approach is by 43/// purposes. For example, to create a <see cref="Task{TResult}"/> that runs a function, the factory's StartNew 58/// The <see cref="Task{TResult}"/> class also provides constructors that initialize the task but that do not 66/// All members of <see cref="Task{TResult}"/>, except for 87internal static readonly Func<Task<Task>, Task<TResult>> TaskWhenAnyCast = completed => (Task<TResult>)completed.Result; 126/// Initializes a new <see cref="Task{TResult}"/> with the specified function. 146/// Initializes a new <see cref="Task{TResult}"/> with the specified function. 169/// Initializes a new <see cref="Task{TResult}"/> with the specified function and creation options. 195/// Initializes a new <see cref="Task{TResult}"/> with the specified function and creation options. 225/// Initializes a new <see cref="Task{TResult}"/> with the specified function and state. 245/// Initializes a new <see cref="Task{TResult}"/> with the specified action, state, and options. 269/// Initializes a new <see cref="Task{TResult}"/> with the specified action, state, and options. 298/// Initializes a new <see cref="Task{TResult}"/> with the specified action, state, and options. 349/// a SelfReplicating <see cref="Task{TResult}"/>, which is illegal."/>.</exception> 379/// a SelfReplicating <see cref="Task{TResult}"/>, which is illegal."/>.</exception> 392internal static Task<TResult> StartNew(Task parent, Func<TResult> function, CancellationToken cancellationToken, 410Task<TResult> f = new Task<TResult>(function, parent, cancellationToken, creationOptions, internalOptions | InternalTaskOptions.QueuedByRuntime, scheduler, ref stackMark); 417internal static Task<TResult> StartNew(Task parent, Func<object, TResult> function, object state, CancellationToken cancellationToken, 434Task<TResult> f = new Task<TResult>(function, state, parent, cancellationToken, creationOptions, internalOptions | InternalTaskOptions.QueuedByRuntime, scheduler, ref stackMark); 522/// Gets the result value of this <see cref="Task{TResult}"/>. 536/// Gets the result value of this <see cref="Task{TResult}"/> once the task has completed successfully. 648if (AtomicStateUpdate(Task<object>.TASK_STATE_COMPLETION_RESERVED, 649Task<object>.TASK_STATE_COMPLETION_RESERVED | Task<object>.TASK_STATE_CANCELED | 650Task<object>.TASK_STATE_FAULTED | Task<object>.TASK_STATE_RAN_TO_COMPLETION)) 661/// Provides access to factory methods for creating <see cref="Task{TResult}"/> instances. 694/// <summary>Gets an awaiter used to await this <see cref="System.Threading.Tasks.Task{TResult}"/>.</summary> 702/// <summary>Configures an awaiter used to await this <see cref="System.Threading.Tasks.Task{TResult}"/>.</summary> 719/// Creates a continuation that executes when the target <see cref="Task{TResult}"/> completes. 722/// An action to run when the <see cref="Task{TResult}"/> completes. When run, the delegate will be 735public Task ContinueWith(Action<Task<TResult>> continuationAction) 743/// Creates a continuation that executes when the target <see cref="Task{TResult}"/> completes. 746/// An action to run when the <see cref="Task{TResult}"/> completes. When run, the delegate will be 763public Task ContinueWith(Action<Task<TResult>> continuationAction, CancellationToken cancellationToken) 771/// Creates a continuation that executes when the target <see cref="Task{TResult}"/> completes. 774/// An action to run when the <see cref="Task{TResult}"/> completes. When run, the delegate will be 793public Task ContinueWith(Action<Task<TResult>> continuationAction, TaskScheduler scheduler) 800/// Creates a continuation that executes when the target <see cref="Task{TResult}"/> completes. 803/// An action to run when the <see cref="Task{TResult}"/> completes. When run, the delegate will be 828public Task ContinueWith(Action<Task<TResult>> continuationAction, TaskContinuationOptions continuationOptions) 835/// Creates a continuation that executes when the target <see cref="Task{TResult}"/> completes. 838/// An action to run when the <see cref="Task{TResult}"/> completes. When run, the delegate will be 873public Task ContinueWith(Action<Task<TResult>> continuationAction, CancellationToken cancellationToken, 881internal Task ContinueWith(Action<Task<TResult>> continuationAction, TaskScheduler scheduler, CancellationToken cancellationToken, 918/// Creates a continuation that executes when the target <see cref="Task{TResult}"/> completes. 921/// An action to run when the <see cref="Task{TResult}"/> completes. When run, the delegate will be 935public Task ContinueWith(Action<Task<TResult>, Object> continuationAction, Object state) 943/// Creates a continuation that executes when the target <see cref="Task{TResult}"/> completes. 946/// An action to run when the <see cref="Task{TResult}"/> completes. When run, the delegate will be 964public Task ContinueWith(Action<Task<TResult>, Object> continuationAction, Object state,CancellationToken cancellationToken) 972/// Creates a continuation that executes when the target <see cref="Task{TResult}"/> completes. 975/// An action to run when the <see cref="Task{TResult}"/> completes. When run, the delegate will be 995public Task ContinueWith(Action<Task<TResult>, Object> continuationAction, Object state, TaskScheduler scheduler) 1002/// Creates a continuation that executes when the target <see cref="Task{TResult}"/> completes. 1005/// An action to run when the <see cref="Task{TResult}"/> completes. When run, the delegate will be 1031public Task ContinueWith(Action<Task<TResult>, Object> continuationAction, Object state,TaskContinuationOptions continuationOptions) 1038/// Creates a continuation that executes when the target <see cref="Task{TResult}"/> completes. 1041/// An action to run when the <see cref="Task{TResult}"/> completes. When run, the delegate will be 1077public Task ContinueWith(Action<Task<TResult>, Object> continuationAction, Object state, CancellationToken cancellationToken, 1085internal Task ContinueWith(Action<Task<TResult>, Object> continuationAction, Object state, TaskScheduler scheduler, CancellationToken cancellationToken, 1123/// Creates a continuation that executes when the target <see cref="Task{TResult}"/> completes. 1129/// A function to run when the <see cref="Task{TResult}"/> completes. When run, the delegate will be 1132/// <returns>A new continuation <see cref="Task{TNewResult}"/>.</returns> 1134/// The returned <see cref="Task{TNewResult}"/> will not be scheduled for execution until the current 1142public Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult> continuationFunction) 1150/// Creates a continuation that executes when the target <see cref="Task{TResult}"/> completes. 1156/// A function to run when the <see cref="Task{TResult}"/> completes. When run, the delegate will be 1160/// <returns>A new continuation <see cref="Task{TNewResult}"/>.</returns> 1162/// The returned <see cref="Task{TNewResult}"/> will not be scheduled for execution until the current 1173public Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult> continuationFunction, CancellationToken cancellationToken) 1180/// Creates a continuation that executes when the target <see cref="Task{TResult}"/> completes. 1186/// A function to run when the <see cref="Task{TResult}"/> completes. When run, the delegate will be 1192/// <returns>A new continuation <see cref="Task{TNewResult}"/>.</returns> 1194/// The returned <see cref="Task{TNewResult}"/> will not be scheduled for execution until the current task has 1205public Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult> continuationFunction, TaskScheduler scheduler) 1212/// Creates a continuation that executes when the target <see cref="Task{TResult}"/> completes. 1218/// A function to run when the <see cref="Task{TResult}"/> completes. When run, the delegate will be 1228/// <returns>A new continuation <see cref="Task{TNewResult}"/>.</returns> 1231/// The returned <see cref="Task{TNewResult}"/> will not be scheduled for execution until the current 1237/// cref="Task{TNewResult}"/>. This task's completion state will be transferred to the task returned 1249public Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult> continuationFunction, TaskContinuationOptions continuationOptions) 1256/// Creates a continuation that executes when the target <see cref="Task{TResult}"/> completes. 1262/// A function to run when the <see cref="Task{TResult}"/> completes. When run, the delegate will be passed as 1277/// <returns>A new continuation <see cref="Task{TNewResult}"/>.</returns> 1280/// The returned <see cref="Task{TNewResult}"/> will not be scheduled for execution until the current task has 1285/// The <paramref name="continuationFunction"/>, when executed, should return a <see cref="Task{TNewResult}"/>. 1304public Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult> continuationFunction, CancellationToken cancellationToken, 1312internal Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult> continuationFunction, TaskScheduler scheduler, 1332Task<TNewResult> continuationFuture = new ContinuationResultTaskFromResultTask<TResult,TNewResult>( 1349/// Creates a continuation that executes when the target <see cref="Task{TResult}"/> completes. 1355/// A function to run when the <see cref="Task{TResult}"/> completes. When run, the delegate will be 1359/// <returns>A new continuation <see cref="Task{TNewResult}"/>.</returns> 1361/// The returned <see cref="Task{TNewResult}"/> will not be scheduled for execution until the current 1369public Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, Object, TNewResult> continuationFunction, Object state) 1377/// Creates a continuation that executes when the target <see cref="Task{TResult}"/> completes. 1383/// A function to run when the <see cref="Task{TResult}"/> completes. When run, the delegate will be 1388/// <returns>A new continuation <see cref="Task{TNewResult}"/>.</returns> 1390/// The returned <see cref="Task{TNewResult}"/> will not be scheduled for execution until the current 1401public Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, Object, TNewResult> continuationFunction, Object state, 1409/// Creates a continuation that executes when the target <see cref="Task{TResult}"/> completes. 1415/// A function to run when the <see cref="Task{TResult}"/> completes. When run, the delegate will be 1422/// <returns>A new continuation <see cref="Task{TNewResult}"/>.</returns> 1424/// The returned <see cref="Task{TNewResult}"/> will not be scheduled for execution until the current task has 1435public Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, Object, TNewResult> continuationFunction, Object state, 1443/// Creates a continuation that executes when the target <see cref="Task{TResult}"/> completes. 1449/// A function to run when the <see cref="Task{TResult}"/> completes. When run, the delegate will be 1460/// <returns>A new continuation <see cref="Task{TNewResult}"/>.</returns> 1463/// The returned <see cref="Task{TNewResult}"/> will not be scheduled for execution until the current 1469/// cref="Task{TNewResult}"/>. This task's completion state will be transferred to the task returned 1481public Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, Object, TNewResult> continuationFunction, Object state, 1489/// Creates a continuation that executes when the target <see cref="Task{TResult}"/> completes. 1495/// A function to run when the <see cref="Task{TResult}"/> completes. When run, the delegate will be 1511/// <returns>A new continuation <see cref="Task{TNewResult}"/>.</returns> 1514/// The returned <see cref="Task{TNewResult}"/> will not be scheduled for execution until the current task has 1519/// The <paramref name="continuationFunction"/>, when executed, should return a <see cref="Task{TNewResult}"/>. 1538public Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, Object, TNewResult> continuationFunction, Object state, 1546internal Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, Object, TNewResult> continuationFunction, Object state, 1566Task<TNewResult> continuationFuture = new ContinuationResultTaskFromResultTask<TResult,TNewResult>( 1584/// Subscribes an <see cref="IObserver{TResult}"/> to receive notification of the final state of this <see cref="Task{TResult}"/>. 1654private Task<TResult> m_task; 1656public SystemThreadingTasks_FutureDebugView(Task<TResult> task)
system\threading\Tasks\FutureFactory.cs (116)
41/// <see cref="System.Threading.Tasks.Task{TResult}.Factory">Task{TResult}.Factory</see> property. 277/// Calling StartNew is functionally equivalent to creating a <see cref="Task{TResult}"/> using one 284public Task<TResult> StartNew(Func<TResult> function) 288return Task<TResult>.StartNew(currTask, function, m_defaultCancellationToken, 306/// Calling StartNew is functionally equivalent to creating a <see cref="Task{TResult}"/> using one 313public Task<TResult> StartNew(Func<TResult> function, CancellationToken cancellationToken) 317return Task<TResult>.StartNew(currTask, function, cancellationToken, 337/// Calling StartNew is functionally equivalent to creating a <see cref="Task{TResult}"/> using one 344public Task<TResult> StartNew(Func<TResult> function, TaskCreationOptions creationOptions) 348return Task<TResult>.StartNew(currTask, function, m_defaultCancellationToken, 379/// Calling StartNew is functionally equivalent to creating a <see cref="Task{TResult}"/> using one 386public Task<TResult> StartNew(Func<TResult> function, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler) 389return Task<TResult>.StartNew( 406/// Calling StartNew is functionally equivalent to creating a <see cref="Task{TResult}"/> using one 413public Task<TResult> StartNew(Func<Object, TResult> function, Object state) 417return Task<TResult>.StartNew(currTask, function, state, m_defaultCancellationToken, 437/// Calling StartNew is functionally equivalent to creating a <see cref="Task{TResult}"/> using one 444public Task<TResult> StartNew(Func<Object, TResult> function, Object state, CancellationToken cancellationToken) 448return Task<TResult>.StartNew(currTask, function, state, cancellationToken, 470/// Calling StartNew is functionally equivalent to creating a <see cref="Task{TResult}"/> using one 477public Task<TResult> StartNew(Func<Object, TResult> function, Object state, TaskCreationOptions creationOptions) 481return Task<TResult>.StartNew(currTask, function, state, m_defaultCancellationToken, 514/// Calling StartNew is functionally equivalent to creating a <see cref="Task{TResult}"/> using one 521public Task<TResult> StartNew(Func<Object, TResult> function, Object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler) 524return Task<TResult>.StartNew(Task.InternalCurrentIfAttached(creationOptions), function, state, cancellationToken, 537Task<TResult> promise, 611public Task<TResult> FromAsync(IAsyncResult asyncResult, Func<IAsyncResult, TResult> endMethod) 637public Task<TResult> FromAsync( 672public Task<TResult> FromAsync( 685internal static Task<TResult> FromAsyncImpl( 707Task<TResult> promise = new Task<TResult>((object)null, creationOptions); 774public Task<TResult> FromAsync( 803public Task<TResult> FromAsync( 812internal static Task<TResult> FromAsyncImpl(Func<AsyncCallback, object, IAsyncResult> beginMethod, 826Task<TResult> promise = new Task<TResult>(state, creationOptions); 905public Task<TResult> FromAsync<TArg1>( 939public Task<TResult> FromAsync<TArg1>( 949internal static Task<TResult> FromAsyncImpl<TArg1>(Func<TArg1, AsyncCallback, object, IAsyncResult> beginMethod, 963Task<TResult> promise = new Task<TResult>(state, creationOptions); 1046public Task<TResult> FromAsync<TArg1, TArg2>( 1084public Task<TResult> FromAsync<TArg1, TArg2>( 1094internal static Task<TResult> FromAsyncImpl<TArg1, TArg2>(Func<TArg1, TArg2, AsyncCallback, object, IAsyncResult> beginMethod, 1108Task<TResult> promise = new Task<TResult>(state, creationOptions); 1194public Task<TResult> FromAsync<TArg1, TArg2, TArg3>( 1236public Task<TResult> FromAsync<TArg1, TArg2, TArg3>( 1246internal static Task<TResult> FromAsyncImpl<TArg1, TArg2, TArg3>(Func<TArg1, TArg2, TArg3, AsyncCallback, object, IAsyncResult> beginMethod, 1260Task<TResult> promise = new Task<TResult>(state, creationOptions); 1329internal static Task<TResult> FromAsyncTrim<TInstance, TArgs>( 1466private static Task<TResult> CreateCanceledTask(TaskContinuationOptions continuationOptions, CancellationToken ct) 1495public Task<TResult> ContinueWhenAll(Task[] tasks, Func<Task[], TResult> continuationFunction) 1526public Task<TResult> ContinueWhenAll(Task[] tasks, Func<Task[], TResult> continuationFunction, CancellationToken cancellationToken) 1563public Task<TResult> ContinueWhenAll(Task[] tasks, Func<Task[], TResult> continuationFunction, TaskContinuationOptions continuationOptions) 1610public Task<TResult> ContinueWhenAll(Task[] tasks, Func<Task[], TResult> continuationFunction, 1638public Task<TResult> ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>[], TResult> continuationFunction) 1670public Task<TResult> ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>[], TResult> continuationFunction, 1709public Task<TResult> ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>[], TResult> continuationFunction, 1758public Task<TResult> ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>[], TResult> continuationFunction, 1771internal static Task<TResult> ContinueWhenAllImpl<TAntecedentResult>(Task<TAntecedentResult>[] tasks, 1772Func<Task<TAntecedentResult>[], TResult> continuationFunction, Action<Task<TAntecedentResult>[]> continuationAction, 1784Task<TAntecedentResult>[] tasksCopy = TaskFactory.CheckMultiContinuationTasksAndCopy<TAntecedentResult>(tasks); 1795var starter = TaskFactory.CommonCWAllLogic(tasksCopy); 1818internal static Task<TResult> ContinueWhenAllImpl(Task[] tasks, 1842var starter = TaskFactory.CommonCWAllLogic(tasksCopy); 1895public Task<TResult> ContinueWhenAny(Task[] tasks, Func<Task, TResult> continuationFunction) 1926public Task<TResult> ContinueWhenAny(Task[] tasks, Func<Task, TResult> continuationFunction, CancellationToken cancellationToken) 1963public Task<TResult> ContinueWhenAny(Task[] tasks, Func<Task, TResult> continuationFunction, TaskContinuationOptions continuationOptions) 2010public Task<TResult> ContinueWhenAny(Task[] tasks, Func<Task, TResult> continuationFunction, 2038public Task<TResult> ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>, TResult> continuationFunction) 2070public Task<TResult> ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>, TResult> continuationFunction, 2109public Task<TResult> ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>, TResult> continuationFunction, 2158public Task<TResult> ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>, TResult> continuationFunction, 2170internal static Task<TResult> ContinueWhenAnyImpl(Task[] tasks, 2185Task<Task> starter = TaskFactory.CommonCWAnyLogic(tasks); 2218internal static Task<TResult> ContinueWhenAnyImpl<TAntecedentResult>(Task<TAntecedentResult>[] tasks, 2219Func<Task<TAntecedentResult>, TResult> continuationFunction, Action<Task<TAntecedentResult>> continuationAction, 2232var starter = TaskFactory.CommonCWAnyLogic(tasks); 2267internal static Func<Task<Task>, object, TResult> CWAnyFuncDelegate = 2268(Task<Task> wrappedWinner, object state) => 2270var func = (Func<Task<TAntecedentResult>, TResult>)state; 2271var arg = (Task<TAntecedentResult>)wrappedWinner.Result; 2276internal static Func<Task<Task>, object, TResult> CWAnyActionDelegate = 2277(Task<Task> wrappedWinner, object state) => 2279var action = (Action<Task<TAntecedentResult>>)state; 2280var arg = (Task<TAntecedentResult>)wrappedWinner.Result; 2286internal static Func<Task<Task<TAntecedentResult>[]>, object, TResult> CWAllFuncDelegate = 2287(Task<Task<TAntecedentResult>[]> wrappedAntecedents, object state) => 2290var func = (Func<Task<TAntecedentResult>[], TResult>)state; 2295internal static Func<Task<Task<TAntecedentResult>[]>, object, TResult> CWAllActionDelegate = 2296(Task<Task<TAntecedentResult>[]> wrappedAntecedents, object state) => 2299var action = (Action<Task<TAntecedentResult>[]>)state;
system\threading\Tasks\Task.cs (105)
127/// For operations that return values, the <see cref="System.Threading.Tasks.Task{TResult}"/> class 1636/// Provides access to factory methods for creating <see cref="Task"/> and <see cref="Task{TResult}"/> instances. 4145/// <returns>A new continuation <see cref="Task{TResult}"/>.</returns> 4147/// The returned <see cref="Task{TResult}"/> will not be scheduled for execution until the current task has 4155public Task<TResult> ContinueWith<TResult>(Func<Task, TResult> continuationFunction) 4174/// <returns>A new continuation <see cref="Task{TResult}"/>.</returns> 4176/// The returned <see cref="Task{TResult}"/> will not be scheduled for execution until the current task has 4187public Task<TResult> ContinueWith<TResult>(Func<Task, TResult> continuationFunction, CancellationToken cancellationToken) 4206/// <returns>A new continuation <see cref="Task{TResult}"/>.</returns> 4208/// The returned <see cref="Task{TResult}"/> will not be scheduled for execution until the current task has 4219public Task<TResult> ContinueWith<TResult>(Func<Task, TResult> continuationFunction, TaskScheduler scheduler) 4242/// <returns>A new continuation <see cref="Task{TResult}"/>.</returns> 4244/// The returned <see cref="Task{TResult}"/> will not be scheduled for execution until the current task has 4257public Task<TResult> ContinueWith<TResult>(Func<Task, TResult> continuationFunction, TaskContinuationOptions continuationOptions) 4285/// <returns>A new continuation <see cref="Task{TResult}"/>.</returns> 4287/// The returned <see cref="Task{TResult}"/> will not be scheduled for execution until the current task has 4305public Task<TResult> ContinueWith<TResult>(Func<Task, TResult> continuationFunction, CancellationToken cancellationToken, 4313private Task<TResult> ContinueWith<TResult>(Func<Task, TResult> continuationFunction, TaskScheduler scheduler, 4333Task<TResult> continuationTask = new ContinuationResultTaskFromTask<TResult>( 4360/// <returns>A new continuation <see cref="Task{TResult}"/>.</returns> 4362/// The returned <see cref="Task{TResult}"/> will not be scheduled for execution until the current task has 4370public Task<TResult> ContinueWith<TResult>(Func<Task, Object, TResult> continuationFunction, Object state) 4390/// <returns>A new continuation <see cref="Task{TResult}"/>.</returns> 4392/// The returned <see cref="Task{TResult}"/> will not be scheduled for execution until the current task has 4403public Task<TResult> ContinueWith<TResult>(Func<Task, Object, TResult> continuationFunction, Object state, CancellationToken cancellationToken) 4423/// <returns>A new continuation <see cref="Task{TResult}"/>.</returns> 4425/// The returned <see cref="Task{TResult}"/> will not be scheduled for execution until the current task has 4436public Task<TResult> ContinueWith<TResult>(Func<Task, Object, TResult> continuationFunction, Object state, TaskScheduler scheduler) 4460/// <returns>A new continuation <see cref="Task{TResult}"/>.</returns> 4462/// The returned <see cref="Task{TResult}"/> will not be scheduled for execution until the current task has 4475public Task<TResult> ContinueWith<TResult>(Func<Task, Object, TResult> continuationFunction, Object state, TaskContinuationOptions continuationOptions) 4504/// <returns>A new continuation <see cref="Task{TResult}"/>.</returns> 4506/// The returned <see cref="Task{TResult}"/> will not be scheduled for execution until the current task has 4524public Task<TResult> ContinueWith<TResult>(Func<Task, Object, TResult> continuationFunction, Object state, CancellationToken cancellationToken, 4532private Task<TResult> ContinueWith<TResult>(Func<Task, Object, TResult> continuationFunction, Object state, TaskScheduler scheduler, 4552Task<TResult> continuationTask = new ContinuationResultTaskFromTask<TResult>( 5492Task<Task> firstCompleted = TaskFactory.CommonCWAnyLogic(tasks); 5513/// <summary>Creates a <see cref="Task{TResult}"/> that's completed successfully with the specified result.</summary> 5517public static Task<TResult> FromResult<TResult>(TResult result) 5522/// <summary>Creates a <see cref="Task{TResult}"/> that's completed exceptionally with the specified exception.</summary> 5531/// <summary>Creates a <see cref="Task{TResult}"/> that's completed exceptionally with the specified exception.</summary> 5535public static Task<TResult> FromException<TResult>(Exception exception) 5540var task = new Task<TResult>(); 5565/// <summary>Creates a <see cref="Task{TResult}"/> that's completed due to cancellation with the specified token.</summary> 5570internal static Task<TResult> FromCancellation<TResult>(CancellationToken cancellationToken) 5577/// <summary>Creates a <see cref="Task{TResult}"/> that's completed due to cancellation with the specified token.</summary> 5581public static Task<TResult> FromCanceled<TResult>(CancellationToken cancellationToken) 5586/// <summary>Creates a <see cref="Task{TResult}"/> that's completed due to cancellation with the specified exception.</summary> 5590internal static Task<TResult> FromCancellation<TResult>(OperationCanceledException exception) 5595var task = new Task<TResult>(); 5650public static Task<TResult> Run<TResult>(Func<TResult> function) 5653return Task<TResult>.StartNew(null, function, default(CancellationToken), 5670public static Task<TResult> Run<TResult>(Func<TResult> function, CancellationToken cancellationToken) 5673return Task<TResult>.StartNew(null, function, cancellationToken, 5721Task<Task> task1 = Task<Task>.Factory.StartNew(function, cancellationToken, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default); 5740public static Task<TResult> Run<TResult>(Func<Task<TResult>> function) 5756public static Task<TResult> Run<TResult>(Func<Task<TResult>> function, CancellationToken cancellationToken) 5772Task<Task<TResult>> task1 = Task<Task<TResult>>.Factory.StartNew(function, cancellationToken, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default); 6232public static Task<TResult[]> WhenAll<TResult>(IEnumerable<Task<TResult>> tasks) 6235Task<TResult>[] taskArray = tasks as Task<TResult>[]; 6242ICollection<Task<TResult>> taskCollection = tasks as ICollection<Task<TResult>>; 6246taskArray = new Task<TResult>[taskCollection.Count]; 6247foreach (var task in tasks) 6257List<Task<TResult>> taskList = new List<Task<TResult>>(); 6258foreach (Task<TResult> task in tasks) 6298public static Task<TResult[]> WhenAll<TResult>(params Task<TResult>[] tasks) 6307Task<TResult>[] tasksCopy = new Task<TResult>[taskCount]; 6310Task<TResult> task = tasks[i]; 6320private static Task<TResult[]> InternalWhenAll<TResult>(Task<TResult>[] tasks) 6339private readonly Task<T>[] m_tasks; 6343internal WhenAllPromise(Task<T>[] tasks) : 6360foreach (var task in tasks) 6386Task<T> task = m_tasks[i]; 6469public static Task<Task> WhenAny(params Task[] tasks) 6508public static Task<Task> WhenAny(IEnumerable<Task> tasks) 6546public static Task<Task<TResult>> WhenAny<TResult>(params Task<TResult>[] tasks) 6553Task<Task> intermediate = WhenAny((Task[])tasks); 6556return intermediate.ContinueWith(Task<TResult>.TaskWhenAnyCast, default(CancellationToken), 6575public static Task<Task<TResult>> WhenAny<TResult>(IEnumerable<Task<TResult>> tasks) 6582Task<Task> intermediate = WhenAny((IEnumerable<Task>)tasks); 6585return intermediate.ContinueWith(Task<TResult>.TaskWhenAnyCast, default(CancellationToken), 6591internal static Task<TResult> CreateUnwrapPromise<TResult>(Task outerTask, bool lookForOce) 7256var taskOfTaskOfTResult = task as Task<Task<TResult>>; // it's either a Task<Task> or Task<Task<TResult>> 7258taskOfTaskOfTResult.Result : ((Task<Task>)task).Result); 7298var taskTResult = task as Task<TResult>;
system\threading\Tasks\TaskCompletionSource.cs (2)
56private readonly Task<TResult> m_task; 127public Task<TResult> Task
system\threading\Tasks\TaskContinuation.cs (14)
127private Task<TAntecedentResult> m_antecedent; 130Task<TAntecedentResult> antecedent, Delegate action, object state, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, ref StackCrawlMark stackMark) : 133Contract.Requires(action is Action<Task<TAntecedentResult>> || action is Action<Task<TAntecedentResult>, object>, 146var antecedent = m_antecedent; 156var action = m_action as Action<Task<TAntecedentResult>>; 162var actionWithState = m_action as Action<Task<TAntecedentResult>, object>; 175private Task<TAntecedentResult> m_antecedent; 178Task<TAntecedentResult> antecedent, Delegate function, object state, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, ref StackCrawlMark stackMark) : 181Contract.Requires(function is Func<Task<TAntecedentResult>, TResult> || function is Func<Task<TAntecedentResult>, object, TResult>, 194var antecedent = m_antecedent; 204var func = m_action as Func<Task<TAntecedentResult>, TResult>; 210var funcWithState = m_action as Func<Task<TAntecedentResult>, object, TResult>;
system\threading\Tasks\TaskFactory.cs (95)
562/// Calling StartNew is functionally equivalent to creating a <see cref="Task{TResult}"/> using one 569public Task<TResult> StartNew<TResult>(Func<TResult> function) 573return Task<TResult>.StartNew(currTask, function, m_defaultCancellationToken, 595/// Calling StartNew is functionally equivalent to creating a <see cref="Task{TResult}"/> using one 602public Task<TResult> StartNew<TResult>(Func<TResult> function, CancellationToken cancellationToken) 606return Task<TResult>.StartNew(currTask, function, cancellationToken, 629/// Calling StartNew is functionally equivalent to creating a <see cref="Task{TResult}"/> using one 636public Task<TResult> StartNew<TResult>(Func<TResult> function, TaskCreationOptions creationOptions) 640return Task<TResult>.StartNew(currTask, function, m_defaultCancellationToken, 674/// Calling StartNew is functionally equivalent to creating a <see cref="Task{TResult}"/> using one 681public Task<TResult> StartNew<TResult>(Func<TResult> function, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler) 684return Task<TResult>.StartNew( 704/// Calling StartNew is functionally equivalent to creating a <see cref="Task{TResult}"/> using one 711public Task<TResult> StartNew<TResult>(Func<Object, TResult> function, Object state) 715return Task<TResult>.StartNew(currTask, function, state, m_defaultCancellationToken, 739/// Calling StartNew is functionally equivalent to creating a <see cref="Task{TResult}"/> using one 746public Task<TResult> StartNew<TResult>(Func<Object, TResult> function, Object state, CancellationToken cancellationToken) 750return Task<TResult>.StartNew(currTask, function, state, cancellationToken, 775/// Calling StartNew is functionally equivalent to creating a <see cref="Task{TResult}"/> using one 782public Task<TResult> StartNew<TResult>(Func<Object, TResult> function, Object state, TaskCreationOptions creationOptions) 786return Task<TResult>.StartNew(currTask, function, state, m_defaultCancellationToken, 822/// Calling StartNew is functionally equivalent to creating a <see cref="Task{TResult}"/> using one 829public Task<TResult> StartNew<TResult>(Func<Object, TResult> function, Object state, CancellationToken cancellationToken, 833return Task<TResult>.StartNew( 1235public Task<TResult> FromAsync<TResult>( 1265public Task<TResult> FromAsync<TResult>( 1299public Task<TResult> FromAsync<TResult>( 1326public Task<TResult> FromAsync<TResult>( 1358public Task<TResult> FromAsync<TResult>( 1389public Task<TResult> FromAsync<TArg1, TResult>( 1425public Task<TResult> FromAsync<TArg1, TResult>(Func<TArg1, AsyncCallback, object, IAsyncResult> beginMethod, 1459public Task<TResult> FromAsync<TArg1, TArg2, TResult>(Func<TArg1, TArg2, AsyncCallback, object, IAsyncResult> beginMethod, 1498public Task<TResult> FromAsync<TArg1, TArg2, TResult>( 1537public Task<TResult> FromAsync<TArg1, TArg2, TArg3, TResult>( 1581public Task<TResult> FromAsync<TArg1, TArg2, TArg3, TResult>( 1691internal static Task<Task[]> CommonCWAllLogic(Task[] tasksCopy) 1712private sealed class CompleteOnCountdownPromise<T> : Task<Task<T>[]>, ITaskCompletionAction 1714private readonly Task<T>[] _tasks; 1717internal CompleteOnCountdownPromise(Task<T>[] tasksCopy) : base() 1769internal static Task<Task<T>[]> CommonCWAllLogic<T>(Task<T>[] tasksCopy) 1945public Task ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>[]> continuationAction) 1978public Task ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>[]> continuationAction, 2017public Task ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>[]> continuationAction, 2066public Task ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>[]> continuationAction, 2097public Task<TResult> ContinueWhenAll<TResult>(Task[] tasks, Func<Task[], TResult> continuationFunction) 2133public Task<TResult> ContinueWhenAll<TResult>(Task[] tasks, Func<Task[], TResult> continuationFunction, CancellationToken cancellationToken) 2174public Task<TResult> ContinueWhenAll<TResult>(Task[] tasks, Func<Task[], TResult> continuationFunction, TaskContinuationOptions continuationOptions) 2225public Task<TResult> ContinueWhenAll<TResult>(Task[] tasks, Func<Task[], TResult> continuationFunction, CancellationToken cancellationToken, 2258public Task<TResult> ContinueWhenAll<TAntecedentResult, TResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>[], TResult> continuationFunction) 2294public Task<TResult> ContinueWhenAll<TAntecedentResult, TResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>[], TResult> continuationFunction, 2337public Task<TResult> ContinueWhenAll<TAntecedentResult, TResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>[], TResult> continuationFunction, 2390public Task<TResult> ContinueWhenAll<TAntecedentResult, TResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>[], TResult> continuationFunction, 2475internal static Task<Task> CommonCWAnyLogic(IList<Task> tasks) 2692public Task<TResult> ContinueWhenAny<TResult>(Task[] tasks, Func<Task, TResult> continuationFunction) 2727public Task<TResult> ContinueWhenAny<TResult>(Task[] tasks, Func<Task, TResult> continuationFunction, CancellationToken cancellationToken) 2768public Task<TResult> ContinueWhenAny<TResult>(Task[] tasks, Func<Task, TResult> continuationFunction, TaskContinuationOptions continuationOptions) 2819public Task<TResult> ContinueWhenAny<TResult>(Task[] tasks, Func<Task, TResult> continuationFunction, CancellationToken cancellationToken, 2851public Task<TResult> ContinueWhenAny<TAntecedentResult, TResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>, TResult> continuationFunction) 2885public Task<TResult> ContinueWhenAny<TAntecedentResult, TResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>, TResult> continuationFunction, 2928public Task<TResult> ContinueWhenAny<TAntecedentResult, TResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>, TResult> continuationFunction, 2981public Task<TResult> ContinueWhenAny<TAntecedentResult, TResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>, TResult> continuationFunction, 3010public Task ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>> continuationAction) 3042public Task ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>> continuationAction, 3081public Task ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>> continuationAction, 3130public Task ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>> continuationAction, 3162internal static Task<TResult>[] CheckMultiContinuationTasksAndCopy<TResult>(Task<TResult>[] tasks) 3170Task<TResult>[] tasksCopy = new Task<TResult>[tasks.Length];
system\threading\Tasks\TaskToApm.cs (3)
100Task<TResult> task; 106task = twar.Task as Task<TResult>; 112task = asyncResult as Task<TResult>;
System (88)
net\System\Net\DNS.cs (6)
1056public static Task<IPAddress[]> GetHostAddressesAsync(string hostNameOrAddress) 1058return Task<IPAddress[]>.Factory.FromAsync(BeginGetHostAddresses, EndGetHostAddresses, hostNameOrAddress, null); 1062public static Task<IPHostEntry> GetHostEntryAsync(IPAddress address) 1064return Task<IPHostEntry>.Factory.FromAsync(BeginGetHostEntry, EndGetHostEntry, address, null); 1068public static Task<IPHostEntry> GetHostEntryAsync(string hostNameOrAddress) 1070return Task<IPHostEntry>.Factory.FromAsync(BeginGetHostEntry, EndGetHostEntry, hostNameOrAddress, null);
net\System\Net\HttpListener.cs (2)
1313public Task<HttpListenerContext> GetContextAsync() 1315return Task<HttpListenerContext>.Factory.FromAsync(BeginGetContext, EndGetContext, null);
net\System\Net\HttpListenerContext.cs (4)
153public Task<HttpListenerWebSocketContext> AcceptWebSocketAsync(string subProtocol) 160public Task<HttpListenerWebSocketContext> AcceptWebSocketAsync(string subProtocol, TimeSpan keepAliveInterval) 167public Task<HttpListenerWebSocketContext> AcceptWebSocketAsync(string subProtocol, 181public Task<HttpListenerWebSocketContext> AcceptWebSocketAsync(string subProtocol,
net\System\Net\HttpListenerRequest.cs (2)
646public Task<X509Certificate2> GetClientCertificateAsync() 648return Task<X509Certificate2>.Factory.FromAsync(BeginGetClientCertificate, EndGetClientCertificate, null);
net\System\Net\mail\BufferedReadStream.cs (2)
77public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) 98private async Task<int> ReadMoreAsync(int bytesAlreadyRead, byte[] buffer, int offset, int count, CancellationToken cancellationToken)
net\System\Net\mail\DelegatedStream.cs (1)
167public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
net\System\Net\NetworkInformation\IPGlobalProperties.cs (2)
93public virtual Task<UnicastIPAddressInformationCollection> GetUnicastAddressesAsync() 95return Task<UnicastIPAddressInformationCollection>.Factory.FromAsync(BeginGetUnicastAddresses, EndGetUnicastAddresses, null);
net\System\Net\NetworkInformation\ping.cs (9)
495public Task<PingReply> SendPingAsync(IPAddress address) 501public Task<PingReply> SendPingAsync(string hostNameOrAddress) 507public Task<PingReply> SendPingAsync(IPAddress address, int timeout) 513public Task<PingReply> SendPingAsync(string hostNameOrAddress, int timeout) 519public Task<PingReply> SendPingAsync(IPAddress address, int timeout, byte[] buffer) 525public Task<PingReply> SendPingAsync(string hostNameOrAddress, int timeout, byte[] buffer) 531public Task<PingReply> SendPingAsync(IPAddress address, int timeout, byte[] buffer, PingOptions options) 537public Task<PingReply> SendPingAsync(string hostNameOrAddress, int timeout, byte[] buffer, PingOptions options) 542private Task<PingReply> SendPingAsyncCore(Action<TaskCompletionSource<PingReply>> sendAsync)
net\System\Net\Sockets\TCPListener.cs (4)
337public Task<Socket> AcceptSocketAsync() 339return Task<Socket>.Factory.FromAsync(BeginAcceptSocket, EndAcceptSocket, null); 343public Task<TcpClient> AcceptTcpClientAsync() 345return Task<TcpClient>.Factory.FromAsync(BeginAcceptTcpClient, EndAcceptTcpClient, null);
net\System\Net\Sockets\UDPClient.cs (8)
1006public Task<int> SendAsync(byte[] datagram, int bytes) 1008return Task<int>.Factory.FromAsync(BeginSend, EndSend, datagram, bytes, null); 1012public Task<int> SendAsync(byte[] datagram, int bytes, IPEndPoint endPoint) 1014return Task<int>.Factory.FromAsync(BeginSend, EndSend, datagram, bytes, endPoint, null); 1020public Task<int> SendAsync(byte[] datagram, int bytes, string hostname, int port) 1022return Task<int>.Factory.FromAsync((callback, state) => BeginSend(datagram, bytes, hostname, port, callback, state), EndSend, null); 1026public Task<UdpReceiveResult> ReceiveAsync() 1028return Task<UdpReceiveResult>.Factory.FromAsync((callback, state) => BeginReceive(callback, state), (ar)=>
net\System\Net\webclient.cs (26)
2542public Task<string> DownloadStringTaskAsync(string address) 2549public Task<string> DownloadStringTaskAsync(Uri address) 2572public Task<Stream> OpenReadTaskAsync(string address) 2579public Task<Stream> OpenReadTaskAsync(Uri address) 2603public Task<Stream> OpenWriteTaskAsync(string address) 2610public Task<Stream> OpenWriteTaskAsync(Uri address) 2617public Task<Stream> OpenWriteTaskAsync(string address, string method) 2624public Task<Stream> OpenWriteTaskAsync(Uri address, string method) 2650public Task<string> UploadStringTaskAsync(string address, string data) 2657public Task<string> UploadStringTaskAsync(Uri address, string data) 2666public Task<string> UploadStringTaskAsync(string address, string method, string data) 2673public Task<string> UploadStringTaskAsync(Uri address, string method, string data) 2697public Task<byte[]> DownloadDataTaskAsync(string address) 2704public Task<byte[]> DownloadDataTaskAsync(Uri address) 2761public Task<byte[]> UploadDataTaskAsync(string address, byte[] data) 2768public Task<byte[]> UploadDataTaskAsync(Uri address, byte[] data) 2777public Task<byte[]> UploadDataTaskAsync(string address, string method, byte[] data) 2784public Task<byte[]> UploadDataTaskAsync(Uri address, string method, byte[] data) 2810public Task<byte[]> UploadFileTaskAsync(string address, string fileName) 2817public Task<byte[]> UploadFileTaskAsync(Uri address, string fileName) 2826public Task<byte[]> UploadFileTaskAsync(string address, string method, string fileName) 2833public Task<byte[]> UploadFileTaskAsync(Uri address, string method, string fileName) 2860public Task<byte[]> UploadValuesTaskAsync(string address, NameValueCollection data) 2869public Task<byte[]> UploadValuesTaskAsync(string address, string method, NameValueCollection data) 2877public Task<byte[]> UploadValuesTaskAsync(Uri address, NameValueCollection data) 2885public Task<byte[]> UploadValuesTaskAsync(Uri address, string method, NameValueCollection data)
net\System\Net\WebRequest.cs (6)
861public virtual Task<Stream> GetRequestStreamAsync() 883return Task<Stream>.Factory.FromAsync(this.BeginGetRequestStream, 891return Task.Run(() => Task<Stream>.Factory.FromAsync(this.BeginGetRequestStream, 898public virtual Task<WebResponse> GetResponseAsync() 920return Task<WebResponse>.Factory.FromAsync(this.BeginGetResponse, 928return Task.Run(() => Task<WebResponse>.Factory.FromAsync(this.BeginGetResponse,
net\System\Net\WebSockets\ClientWebSocket.cs (1)
328public override Task<WebSocketReceiveResult> ReceiveAsync(ArraySegment<byte> buffer,
net\System\Net\WebSockets\WebSocket.cs (1)
135public abstract Task<WebSocketReceiveResult> ReceiveAsync(ArraySegment<byte> buffer,
net\System\Net\WebSockets\WebSocketBase.cs (6)
197public override Task<WebSocketReceiveResult> ReceiveAsync(ArraySegment<byte> buffer, 204private async Task<WebSocketReceiveResult> ReceiveAsyncCore(ArraySegment<byte> buffer, 687private async Task<bool> StartOnCloseCompleted(bool thisLockTakenSnapshot, 893Task<WebSocketReceiveResult> receiveAsyncTask = m_ReceiveOperation.Process(closeMessageBuffer, 1645internal async Task<WebSocketReceiveResult> Process(Nullable<ArraySegment<byte>> buffer, 1751Task<int> readTask = m_WebSocket.m_InnerStream.ReadAsync(payload.Array,
net\System\Net\WebSockets\WebSocketConnectionStream.cs (3)
197public async override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) 733public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) 745internal Task<int> ReadAsyncCore(byte[] buffer, int offset, int count, CancellationToken cancellationToken,
net\System\Net\WebSockets\WebSocketHelpers.cs (3)
54internal static Task<HttpListenerWebSocketContext> AcceptWebSocketAsync(HttpListenerContext context, 67private static async Task<HttpListenerWebSocketContext> AcceptWebSocketAsyncCore(HttpListenerContext context, 281internal static ConfiguredTaskAwaitable<T> SuppressContextFlow<T>(this Task<T> task)
net\System\Net\WebSockets\WebSocketHttpListenerDuplexStream.cs (2)
129public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) 136private async Task<int> ReadAsyncCore(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
System.Core (7)
System\Threading\Tasks\TaskExtensions.cs (7)
38/// It is often useful to be able to return a Task from a <see cref="System.Threading.Tasks.Task{TResult}"> 47public static Task Unwrap(this Task<Task> task) 110/// Creates a proxy <see cref="System.Threading.Tasks.Task{TResult}">Task{TResult}</see> that represents the 123public static Task<TResult> Unwrap<TResult>(this Task<Task<TResult>> task) 180Task<TResult> promise = Task.CreateUnwrapPromise<TResult>(task, lookForOce : false);
System.Data (82)
fx\src\data\System\Data\Common\AdapterUtil.cs (6)
54static internal Task<T> CreatedTaskWithException<T>(Exception ex) { 60static internal Task<T> CreatedTaskWithCancellation<T>() { 78static private Task<bool> _trueTask = null; 79static internal Task<bool> TrueTask { 88static private Task<bool> _falseTask = null; 89static internal Task<bool> FalseTask {
fx\src\data\System\Data\Common\DBCommand.cs (9)
204public Task<int> ExecuteNonQueryAsync() { 208public virtual Task<int> ExecuteNonQueryAsync(CancellationToken cancellationToken) { 228public Task<DbDataReader> ExecuteReaderAsync() { 232public Task<DbDataReader> ExecuteReaderAsync(CancellationToken cancellationToken) { 236public Task<DbDataReader> ExecuteReaderAsync(CommandBehavior behavior) { 240public Task<DbDataReader> ExecuteReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken) { 244protected virtual Task<DbDataReader> ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken) { 264public Task<object> ExecuteScalarAsync() { 268public virtual Task<object> ExecuteScalarAsync(CancellationToken cancellationToken) {
fx\src\data\System\Data\Common\DbDataReader.cs (8)
198public Task<T> GetFieldValueAsync<T>(int ordinal) { 202virtual public Task<T> GetFieldValueAsync<T>(int ordinal, CancellationToken cancellationToken) { 220public Task<bool> IsDBNullAsync(int ordinal) { 224virtual public Task<bool> IsDBNullAsync(int ordinal, CancellationToken cancellationToken) { 242public Task<bool> ReadAsync() { 246virtual public Task<bool> ReadAsync(CancellationToken cancellationToken) { 260public Task<bool> NextResultAsync() { 264virtual public Task<bool> NextResultAsync(CancellationToken cancellationToken) {
fx\src\data\System\Data\ProviderBase\DbConnectionFactory.cs (5)
35static Task<DbConnectionInternal>[] s_pendingOpenNonPooled = new Task<DbConnectionInternal>[Environment.ProcessorCount]; 36static Task<DbConnectionInternal> s_completedTask; 176static Task<DbConnectionInternal> GetCompletedTask() 217Task<DbConnectionInternal> newTask;
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (4)
502private Task<BulkCopySimpleResultSet> CreateAndExecuteInitialQueryAsync(out BulkCopySimpleResultSet result) { 2004private void RegisterForConnectionCloseNotification<T>(ref Task<T> outterTask) { 2557Task<BulkCopySimpleResultSet> internalResultsTask = null; 2663Task<object> resultTask = null;
fx\src\data\System\Data\SqlClient\SqlCommand.cs (18)
2272Task<object> retryTask = (Task<object>)retryFunc(behavior, null, stateObject, TdsParserStaticMethods.GetRemainingTimeout(timeout, firstAttemptStart), true/*inRetry*/, asyncWrite); 2405public override Task<int> ExecuteNonQueryAsync(CancellationToken cancellationToken) { 2421Task<int> returnedTask = source.Task; 2425Task<int>.Factory.FromAsync(BeginExecuteNonQueryAsync, EndExecuteNonQueryAsync, null).ContinueWith((t) => { 2448protected override Task<DbDataReader> ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken) { 2457new public Task<SqlDataReader> ExecuteReaderAsync() { 2461new public Task<SqlDataReader> ExecuteReaderAsync(CommandBehavior behavior) { 2465new public Task<SqlDataReader> ExecuteReaderAsync(CancellationToken cancellationToken) { 2469new public Task<SqlDataReader> ExecuteReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken) { 2485Task<SqlDataReader> returnedTask = source.Task; 2489Task<SqlDataReader>.Factory.FromAsync(BeginExecuteReaderAsync, EndExecuteReaderAsync, behavior, null).ContinueWith((t) => { 2512public override Task<object> ExecuteScalarAsync(CancellationToken cancellationToken) 2569public Task<XmlReader> ExecuteXmlReaderAsync() { 2573public Task<XmlReader> ExecuteXmlReaderAsync(CancellationToken cancellationToken) { 2589Task<XmlReader> returnedTask = source.Task; 2593Task<XmlReader>.Factory.FromAsync(BeginExecuteXmlReaderAsync, EndExecuteXmlReaderAsync, null).ContinueWith((t) => { 4790private void RegisterForConnectionCloseNotification<T>(ref Task<T> outterTask) {
fx\src\data\System\Data\SqlClient\SqlConnection.cs (2)
1466internal void Retry(Task<DbConnectionInternal> retryTask) { 2140internal void RegisterForConnectionCloseNotification<T>(ref Task<T> outterTask, object value, int tag) {
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (20)
3932public override Task<bool> NextResultAsync(CancellationToken cancellationToken) { 3968Func<Task, Task<bool>> moreFunc = null; 3994internal Task<int> GetBytesAsync(int i, byte[] buffer, int index, int length, int timeout, CancellationToken cancellationToken, out int bytesRead) { 4029Func<Task, Task<int>> moreFunc = null; 4064var readTask = GetBytesAsyncReadDataStage(i, buffer, index, length, timeout, true, cancellationToken, timeoutToken, out totalBytesRead); 4097private Task<int> GetBytesAsyncReadDataStage(int i, byte[] buffer, int index, int length, int timeout, bool isContinuation, CancellationToken cancellationToken, CancellationToken timeoutToken, out int bytesRead) { 4135Func<Task, Task<int>> moreFunc = null; 4165Task<int> retryTask = ContinueRetryable(moreFunc); 4185public override Task<bool> ReadAsync(CancellationToken cancellationToken) { 4284Func<Task, Task<bool>> moreFunc = null; 4324override public Task<bool> IsDBNullAsync(int i, CancellationToken cancellationToken) { 4407Func<Task, Task<bool>> moreFunc = null; 4426override public Task<T> GetFieldValueAsync<T>(int i, CancellationToken cancellationToken) { 4508Func<Task, Task<T>> moreFunc = null; 4564private Task<T> ContinueRetryable<T>(Func<Task, Task<T>> moreFunc) { 4620private Task<T> InvokeRetryable<T>(Func<Task, Task<T>> moreFunc, TaskCompletionSource<T> source, IDisposable objectToDispose = null) { 4622Task<T> task; 4648private void CompleteRetryable<T>(Task<T> task, TaskCompletionSource<T> source, IDisposable objectToDispose) {
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (4)
139public override Task<T> GetFieldValueAsync<T>(int ordinal, CancellationToken cancellationToken) { 199public override Task<bool> IsDBNullAsync(int ordinal, CancellationToken cancellationToken) { 359public override Task<bool> NextResultAsync(CancellationToken cancellationToken) 411public override Task<bool> ReadAsync(CancellationToken cancellationToken)
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (4)
140Task<int> readTask = (Task<int>)asyncResult; 153public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) 187Task<int> getBytesTask = null;
fx\src\data\System\Data\SqlClient\SqlSequentialTextReader.cs (2)
127public override Task<int> ReadAsync(char[] buffer, int index, int count) 178Task<int> getBytesTask = reader.GetBytesAsync(_columnIndex, byteBuffer, byteBufferUsed, byteBuffer.Length - byteBufferUsed, Timeout.Infinite, _disposalTokenSource.Token, out bytesRead);
System.ServiceModel (34)
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
1576protected override Task<Stream> CreateContentReadStreamAsync()
System\ServiceModel\Channels\HttpChannelListener.cs (4)
1487/// <returns>A <see cref="Task&lt;T&gt;"/> representing the operation.</returns> 1488public Task<HttpResponseMessage> ProcessPipelineAsync(HttpRequestMessage request, CancellationToken cancellationToken) 1557/// <returns>A <see cref="Task&lt;T&gt;"/> representing the operation.</returns> 1558protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
System\ServiceModel\Channels\HttpPipeline.cs (4)
116public abstract Task<HttpResponseMessage> Dispatch(HttpRequestMessage httpRequestMessage); 235public override Task<HttpResponseMessage> Dispatch(HttpRequestMessage httpRequestMessage) 394Task<HttpResponseMessage> transportIntegrationHandlerTask; 486public override Task<HttpResponseMessage> Dispatch(HttpRequestMessage httpRequestMessage)
System\ServiceModel\Channels\HttpRequestContext.cs (5)
485Task<WebSocketContext> acceptTask; 521protected abstract Task<WebSocketContext> AcceptWebSocketCore(HttpResponseMessage response, string protocol); 795protected override Task<WebSocketContext> AcceptWebSocketCore(HttpResponseMessage response, string protocol) 1123Task<WebSocketContext> acceptTask = result as Task<WebSocketContext>;
System\ServiceModel\Channels\ServiceChannelProxy.cs (2)
272public static Task<T> CreateGenericTask<T>(ServiceChannel channel, ProxyOperationRuntime operation, object[] inputParameters) 288return Task<T>.Factory.FromAsync<ServiceChannel, ProxyOperationRuntime, object[]>(beginCallDelegate, endCallDelegate, channel, operation, inputParameters, OperationContext.Current);
System\ServiceModel\Channels\WebSocketConnectionHandler.cs (1)
56protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (7)
663Task<WebSocketReceiveResult> receiveTask = this.webSocket.ReceiveAsync( 876Task<WebSocketReceiveResult> receiveTask = this.webSocket.ReceiveAsync( 1191Task<int> task = this.webSocket.ReceiveAsync(new ArraySegment<byte>(buffer, offset, count), cancellationTokenSource.Token).ContinueWith(t => 1221Task<int> task = (Task<int>)asyncResult; 1261Task<WebSocketReceiveResult> task = this.webSocket.ReceiveAsync(new ArraySegment<byte>(buffer, offset, count), CancellationToken.None); 1468Task<WebSocketReceiveResult> receiveTask = this.webSocket.ReceiveAsync(new ArraySegment<byte>(this.initialReadBuffer.Array), CancellationToken.None);
System\ServiceModel\Description\MetadataExchangeClient.cs (4)
296public Task<MetadataSet> GetMetadataAsync() 306public Task<MetadataSet> GetMetadataAsync(Uri address, MetadataExchangeClientMode mode) 317public Task<MetadataSet> GetMetadataAsync(EndpointAddress address) 327public Task<MetadataSet> GetMetadataAsync(EndpointAddress address, Uri via)
System\ServiceModel\Description\ServiceReflector.cs (1)
342internal static readonly Type taskTResultType = typeof(Task<>);
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (5)
90Task<Tuple<object, object[]>> invokeTask = result as Task<Tuple<object, object[]>>; 174private async Task<Tuple<object, object[]>> InvokeAsync(object instance, object[] inputs) 262private static Task<TResult> ToApm<TResult>(Task<TResult> task, AsyncCallback callback, object state)
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\HostedHttpContext.cs (1)
86protected override Task<WebSocketContext> AcceptWebSocketCore(HttpResponseMessage response, string protocol)
System.ServiceModel.Discovery (6)
System\ServiceModel\Discovery\DiscoveryClient.cs (6)
425public Task<FindResponse> FindTaskAsync(FindCriteria criteria) 431public Task<FindResponse> FindTaskAsync(FindCriteria criteria, CancellationToken cancellationToken) 440Task<FindResponse> task = taskCompletionSource.Task; 446public Task<ResolveResponse> ResolveTaskAsync(ResolveCriteria criteria) 452public Task<ResolveResponse> ResolveTaskAsync(ResolveCriteria criteria, CancellationToken cancellationToken) 461Task<ResolveResponse> task = taskCompletionSource.Task;
System.ServiceModel.Internals (7)
System\Runtime\TaskExtensions.cs (7)
13public static IAsyncResult AsAsyncResult<T>(this Task<T> task, AsyncCallback callback, object state) 102public static ConfiguredTaskAwaitable<T> SuppressContextFlow<T>(this Task<T> task) 112public static ConfiguredTaskAwaitable<T> ContinueOnCapturedContextFlow<T>(this Task<T> task) 191public static Task<TBase> Upcast<TDerived, TBase>(this Task<TDerived> task) where TDerived : TBase 198private static async Task<TBase> UpcastPrivate<TDerived, TBase>(this Task<TDerived> task) where TDerived : TBase
System.Web (18)
Hosting\ApplicationManager.cs (2)
627private static Task<ApplicationResumeStateContainer> _dummyCompletedSuspendTask = Task.FromResult<ApplicationResumeStateContainer>(null); 628private static Task<ApplicationResumeStateContainer> CreateSuspendTask(LockableAppDomainContext appDomainContext) {
Hosting\HostingEnvironment.cs (1)
143private static readonly Task<object> _completedTask = Task.FromResult<object>(null);
UI\Page.cs (1)
3234private async Task<bool> LoadPostDataAsync(IPostBackDataHandler consumer, string postKey, NameValueCollection postCollection) {
UI\WebControls\ModelDataSourceView.cs (3)
433if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Task<>)) { 835var operationTaskInt = operationTask as Task<int>;
WebSocketPipeline.cs (2)
42Task<AspNetWebSocket> webSocketTask = ProcessRequestImplAsync(); 68private async Task<AspNetWebSocket> ProcessRequestImplAsync() {
WebSockets\AspNetWebSocket.cs (7)
227Func<Task<WebSocketReceiveResult>> receiveCloseTaskFunc = null; 270Task<WebSocketReceiveResult> receiveCloseTask = (receiveCloseTaskFunc != null) ? receiveCloseTaskFunc() : null; 368public override Task<WebSocketReceiveResult> ReceiveAsync(ArraySegment<byte> buffer, CancellationToken cancellationToken) { 372private Func<Task<WebSocketReceiveResult>> ReceiveAsyncImpl(ArraySegment<byte> buffer, CancellationToken cancellationToken, bool performValidation = true) { 562private async Task<T> DoWork<T>(Func<Task<T>> taskDelegate, CancellationToken cancellationToken) { 575Task<T> task = taskDelegate();
WebSockets\IWebSocketPipe.cs (1)
23Task<WebSocketReceiveResult> ReadFragmentAsync(ArraySegment<byte> buffer);
WebSockets\WebSocketPipe.cs (1)
118public Task<WebSocketReceiveResult> ReadFragmentAsync(ArraySegment<byte> buffer) {
System.Xml (276)
System\Xml\AsyncHelper.cs (15)
11public static readonly Task<bool> DoneTaskTrue = Task.FromResult(true); 13public static readonly Task<bool> DoneTaskFalse = Task.FromResult(false); 15public static readonly Task<int> DoneTaskZero = Task.FromResult(0); 36public static Task<bool> ReturnTaskBoolWhenFinish(this Task task, bool ret) { 48public static async Task<bool> _ReturnTaskBoolWhenFinish(this Task task, bool ret) { 67public static Task<bool> CallBoolTaskFuncWhenFinish(this Task task, Func<Task<bool>> func) { 76private static async Task<bool> _CallBoolTaskFuncWhenFinish(this Task task, Func<Task<bool>> func) { 81public static Task<bool> ContinueBoolTaskFuncWhenFalse(this Task<bool> task, Func<Task<bool>> func) { 93private static async Task<bool> _ContinueBoolTaskFuncWhenFalse(Task<bool> task, Func<Task<bool>> func) {
System\Xml\BinaryXml\XmlBinaryReaderAsync.cs (14)
22public override Task<string> GetValueAsync() { 26public override Task<bool> ReadAsync() { 30public override Task<object> ReadContentAsObjectAsync() { 34public override Task<object> ReadContentAsAsync(Type returnType, IXmlNamespaceResolver namespaceResolver) { 38public override Task<XmlNodeType> MoveToContentAsync() { 42public override Task<string> ReadContentAsStringAsync() { 46public override Task<int> ReadContentAsBase64Async(byte[] buffer, int index, int count) { 50public override Task<object> ReadElementContentAsAsync(Type returnType, IXmlNamespaceResolver namespaceResolver) { 54public override Task<object> ReadElementContentAsObjectAsync() { 58public override Task<int> ReadElementContentAsBinHexAsync(byte[] buffer, int index, int count) { 62public override Task<string> ReadInnerXmlAsync() { 66public override Task<string> ReadOuterXmlAsync() { 70public override Task<int> ReadValueChunkAsync(char[] buffer, int index, int count) { 78public override Task<string> ReadElementContentAsStringAsync() {
System\Xml\Core\IDtdParserAdapterAsync.cs (5)
20Task< int > ReadDataAsync(); 22Task< int > ParseNumericCharRefAsync( BufferBuilder internalSubsetBuilder ); 23Task< int > ParseNamedCharRefAsync( bool expand, BufferBuilder internalSubsetBuilder ); 27Task< Tuple<int,bool> > PushEntityAsync( IDtdEntityInfo entity); 29Task< bool > PushExternalSubsetAsync( string systemId, string publicId );
System\Xml\Core\IDtdParserAsync.cs (2)
18Task<IDtdInfo> ParseInternalDtdAsync(IDtdParserAdapter adapter, bool saveInternalSubset); 20Task<IDtdInfo> ParseFreeFloatingDtdAsync(string baseUri, string docTypeName, string publicId, string systemId, string internalSubset, IDtdParserAdapter adapter);
System\Xml\Core\ReadContentAsBinaryHelperAsync.cs (9)
12internal async Task< int > ReadContentAsBase64Async( byte[] buffer, int index, int count ) { 59internal async Task< int > ReadContentAsBinHexAsync( byte[] buffer, int index, int count ) { 106internal async Task< int > ReadElementContentAsBase64Async( byte[] buffer, int index, int count ) { 153internal async Task< int > ReadElementContentAsBinHexAsync( byte[] buffer, int index, int count ) { 216private async Task< bool > InitAsync() { 227private async Task< bool > InitOnElementAsync() { 251private async Task< int > ReadContentAsBinaryAsync( byte[] buffer, int index, int count ) { 299private async Task< int > ReadElementContentAsBinaryAsync( byte[] buffer, int index, int count ) { 320async Task< bool > MoveToNextContentNodeAsync( bool moveIfOnContentNode ) {
System\Xml\Core\XmlAsyncCheckReader.cs (32)
660public override Task<string> GetValueAsync() { 662var task = coreReader.GetValueAsync(); 667public override Task<object> ReadContentAsObjectAsync() { 669var task = coreReader.ReadContentAsObjectAsync(); 674public override Task<string> ReadContentAsStringAsync() { 676var task = coreReader.ReadContentAsStringAsync(); 681public override Task<object> ReadContentAsAsync(Type returnType, IXmlNamespaceResolver namespaceResolver) { 683var task = coreReader.ReadContentAsAsync(returnType, namespaceResolver); 688public override Task<object> ReadElementContentAsObjectAsync() { 690var task = coreReader.ReadElementContentAsObjectAsync(); 695public override Task<string> ReadElementContentAsStringAsync() { 697var task = coreReader.ReadElementContentAsStringAsync(); 702public override Task<object> ReadElementContentAsAsync(Type returnType, IXmlNamespaceResolver namespaceResolver) { 704var task = coreReader.ReadElementContentAsAsync(returnType, namespaceResolver); 709public override Task<bool> ReadAsync() { 711var task = coreReader.ReadAsync(); 723public override Task<int> ReadContentAsBase64Async(byte[] buffer, int index, int count) { 725var task = coreReader.ReadContentAsBase64Async(buffer, index, count); 730public override Task<int> ReadElementContentAsBase64Async(byte[] buffer, int index, int count) { 732var task = coreReader.ReadElementContentAsBase64Async(buffer, index, count); 737public override Task<int> ReadContentAsBinHexAsync(byte[] buffer, int index, int count) { 739var task = coreReader.ReadContentAsBinHexAsync(buffer, index, count); 744public override Task<int> ReadElementContentAsBinHexAsync(byte[] buffer, int index, int count) { 746var task = coreReader.ReadElementContentAsBinHexAsync(buffer, index, count); 751public override Task<int> ReadValueChunkAsync(char[] buffer, int index, int count) { 753var task = coreReader.ReadValueChunkAsync(buffer, index, count); 758public override Task<XmlNodeType> MoveToContentAsync() { 760var task = coreReader.MoveToContentAsync(); 765public override Task<string> ReadInnerXmlAsync() { 767var task = coreReader.ReadInnerXmlAsync(); 772public override Task<string> ReadOuterXmlAsync() { 774var task = coreReader.ReadOuterXmlAsync();
System\Xml\Core\XmlCharCheckingReaderAsync.cs (5)
17public override async Task< bool > ReadAsync() { 183public override async Task< int > ReadContentAsBase64Async( byte[] buffer, int index, int count ) { 219public override async Task< int > ReadContentAsBinHexAsync( byte[] buffer, int index, int count ) { 255public override async Task< int > ReadElementContentAsBase64Async( byte[] buffer, int index, int count ) { 305public override async Task< int > ReadElementContentAsBinHexAsync( byte[] buffer, int index, int count ) {
System\Xml\Core\XmlReaderAsync.cs (19)
28public virtual Task<string> GetValueAsync() { 34public virtual async Task< object > ReadContentAsObjectAsync() { 43public virtual Task< string > ReadContentAsStringAsync() { 52public virtual async Task< object > ReadContentAsAsync(Type returnType, IXmlNamespaceResolver namespaceResolver) { 79public virtual async Task< object > ReadElementContentAsObjectAsync() { 89public virtual async Task< string > ReadElementContentAsStringAsync() { 99public virtual async Task< object > ReadElementContentAsAsync(Type returnType, IXmlNamespaceResolver namespaceResolver) { 115public virtual Task< bool > ReadAsync() { 130public virtual Task< int > ReadContentAsBase64Async(byte[] buffer, int index, int count) { 135public virtual Task< int > ReadElementContentAsBase64Async(byte[] buffer, int index, int count) { 140public virtual Task< int > ReadContentAsBinHexAsync(byte[] buffer, int index, int count) { 145public virtual Task< int > ReadElementContentAsBinHexAsync(byte[] buffer, int index, int count) { 151public virtual Task< int > ReadValueChunkAsync(char[] buffer, int index, int count) { 158public virtual async Task< XmlNodeType > MoveToContentAsync() { 177public virtual async Task< string > ReadInnerXmlAsync() { 258public virtual async Task< string > ReadOuterXmlAsync() { 290private async Task< bool > SkipSubtreeAsync() { 310internal async Task< string > InternalReadContentAsStringAsync() { 354private async Task< bool > SetupReadElementContentAsXxxAsync(string methodName) {
System\Xml\Core\XmlSubtreeReaderAsync.cs (13)
15public override Task<string> GetValueAsync() { 24public override async Task< bool > ReadAsync() { 162public override async Task< object > ReadContentAsObjectAsync() { 175public override async Task< string > ReadContentAsStringAsync() { 188public override async Task< object > ReadContentAsAsync( Type returnType, IXmlNamespaceResolver namespaceResolver ) { 201public override async Task< int > ReadContentAsBase64Async( byte[] buffer, int index, int count ) { 270public override async Task< int > ReadElementContentAsBase64Async( byte[] buffer, int index, int count ) { 320public override async Task< int > ReadContentAsBinHexAsync( byte[] buffer, int index, int count ) { 388public override async Task< int > ReadElementContentAsBinHexAsync( byte[] buffer, int index, int count ) { 437public override Task< int > ReadValueChunkAsync( char[] buffer, int index, int count ) { 483private async Task< bool > InitReadElementContentAsBinaryAsync( State binaryState ) { 510private async Task< bool > FinishReadElementContentAsBinaryAsync() { 539private async Task< bool > FinishReadContentAsBinaryAsync() {
System\Xml\Core\XmlTextReaderImpl.cs (1)
669System.Threading.Tasks.Task<object> t = laterInitParam.inputUriResolver.GetEntityAsync(laterInitParam.inputbaseUri, string.Empty, typeof(Stream));
System\Xml\Core\XmlTextReaderImplAsync.cs (80)
37public override Task<string> GetValueAsync() { 45private async Task<string> _GetValueAsync() { 145public override Task<bool> ReadAsync() { 259private Task<bool> ReadAsync_SwitchToInteractiveXmlDecl() { 262Task<bool> task = ParseXmlDeclarationAsync(false); 271private async Task<bool> _ReadAsync_SwitchToInteractiveXmlDecl(Task<bool> task) { 276private Task<bool> ReadAsync_SwitchToInteractiveXmlDecl_Helper(bool finish) { 346private async Task<int> ReadContentAsBase64_AsyncHelper(Task<bool> task, byte[] buffer, int index, int count) { 361public override Task< int > ReadContentAsBase64Async( byte[] buffer, int index, int count ) { 397Task<bool> task = InitReadContentAsBinaryAsync(); 416public override async Task< int > ReadContentAsBinHexAsync( byte[] buffer, int index, int count ) { 464private async Task<int> ReadElementContentAsBase64Async_Helper(Task<bool> task, byte[] buffer, int index, int count) { 479public override Task< int > ReadElementContentAsBase64Async( byte[] buffer, int index, int count ) { 515Task<bool> task = InitReadElementContentAsBinaryAsync(); 534public override async Task< int > ReadElementContentAsBinHexAsync( byte[] buffer, int index, int count ) { 583public override async Task< int > ReadValueChunkAsync( char[] buffer, int index, int count ) { 690internal Task< int > DtdParserProxy_ReadDataAsync() { 695internal async Task< int > DtdParserProxy_ParseNumericCharRefAsync( BufferBuilder internalSubsetBuilder ) { 703internal Task< int > DtdParserProxy_ParseNamedCharRefAsync( bool expand, BufferBuilder internalSubsetBuilder ) { 756internal async Task< Tuple<int, bool> > DtdParserProxy_PushEntityAsync(IDtdEntityInfo entity) { 786internal async Task< bool > DtdParserProxy_PushExternalSubsetAsync( string systemId, string publicId ) { 981async Task< int > ReadDataAsync() { 1104private async Task< bool > ParseXmlDeclarationAsync( bool isTextDecl ) { 1379private Task<bool> ParseDocumentContentAsync() { 1485private Task<bool> ParseDocumentContentAsync_CData() { 1492private async Task<bool> ParseDocumentContentAsync_ParseEntity() { 1531private Task<bool> ParseDocumentContentAsync_WhiteSpace() { 1532Task<bool> task = ParseTextAsync(); 1549private async Task<bool> _ParseDocumentContentAsync_WhiteSpace(Task<bool> task) { 1559private async Task<bool> ParseDocumentContentAsync_ReadData(bool needMoreChars) { 1595private Task<bool> ParseElementContentAsync() { 1677private async Task<bool> ParseElementContent_ReadData() { 1778Task< Tuple<int,int> > parseQNameTask = ParseQNameAsync(); 1785private Task ParseElementAsync_ContinueWithSetElement(Task<Tuple<int,int>> task) { 1797private async Task _ParseElementAsync_ContinueWithSetElement(Task<Tuple<int, int>> task) { 2696private Task<bool> ParseTextAsync() { 2711Task<Tuple<int,int,int,bool>> parseTextTask = ParseTextAsync(orChars); 2747private async Task< bool > _ParseTextAsync(Task<Tuple<int,int,int,bool>> parseTask) { 2896private Task<bool> ParseTextAsync_IgnoreNode() { 2955private Task<Tuple<int, int, int, bool>> parseText_dummyTask = Task.FromResult(new Tuple<int, int, int, bool>(0,0,0,false)); 2958private Task<Tuple<int, int, int, bool>> ParseTextAsync(int outOrChars) { 2959Task<Tuple<int, int, int, bool>> task = ParseTextAsync(outOrChars, ps.chars, ps.charPos, 0, -1, outOrChars, (char)0); 2996private async Task<Tuple<int, int, int, bool>> ParseTextAsync_AsyncFunc(Task<Tuple<int, int, int, bool>> task) { 3031private Task<Tuple<int, int, int, bool>> ParseTextAsync(int outOrChars, char[] chars, int pos, int rcount, int rpos, int orChars, char c) { 3129private async Task<Tuple<int, int, int, bool>> ParseTextAsync_ParseEntity(int outOrChars, char[] chars, int pos, int rcount, int rpos, int orChars, char c) { 3192private async Task<Tuple<int, int, int, bool>> ParseTextAsync_Surrogate(int outOrChars, char[] chars, int pos, int rcount, int rpos, int orChars, char c) { 3224private async Task<Tuple<int, int, int, bool>> ParseTextAsync_ReadData(int outOrChars, char[] chars, int pos, int rcount, int rpos, int orChars, char c) 3268private Task<Tuple<int, int, int, bool>> ParseTextAsync_NoValue(int outOrChars, int pos) { 3272private Task<Tuple<int, int, int, bool>> ParseTextAsync_PartialValue(int pos, int rcount, int rpos, int orChars, char c) { 3423private async Task< bool > ParseRootLevelWhitespaceAsync() { 3466private async Task< Tuple<int, EntityType> > HandleEntityReferenceAsync(bool isInAttributeValue, EntityExpandType expandType) { 3548private async Task< EntityType > HandleGeneralEntityReferenceAsync( string name, bool isInAttributeValue, bool pushFakeEntityIfNullResolver, int entityStartLinePos ) { 3628private Task< bool > ParsePIAsync() { 3634private async Task< bool > ParsePIAsync( BufferBuilder piInDtdStringBuilder ) { 3735private async Task< Tuple<int, int, bool> > ParsePIValueAsync() { 3877private async Task< bool > ParseCommentAsync() { 3944private async Task< Tuple<int, int, bool> > ParseCDataOrCommentTupleAsync(XmlNodeType type) { 4094private async Task< bool > ParseDoctypeDeclAsync() { 4437private async Task< int > EatWhitespacesAsync( BufferBuilder sb ) { 4525private async Task< Tuple<EntityType, int> > ParseNumericCharRefAsync(bool expand, BufferBuilder internalSubsetBuilder) { 4556private async Task< int > ParseNamedCharRefAsync( bool expand, BufferBuilder internalSubsetBuilder ) { 4578private async Task< int > ParseNameAsync() { 4585private Task< Tuple<int, int> > ParseQNameAsync() { 4591private async Task< Tuple<int, int> > ParseQNameAsync(bool isQName, int startOffset) { 4700private async Task< Tuple<int, bool> > ReadDataInNameAsync(int pos) { 4711private async Task< string > ParseEntityNameAsync() { 4797private async Task< bool > OpenAndPushAsync( Uri uri ) { 4832private async Task< bool > PushExternalEntityAsync( IDtdEntityInfo entity ) { 4875private async Task< bool > ZeroEndingStreamAsync( int pos ) { 4902async Task< bool > InitReadContentAsBinaryAsync() { 4923async Task< bool > InitReadElementContentAsBinaryAsync() { 4949async Task< bool > MoveToNextContentNodeAsync( bool moveIfOnContentNode ) { 4978async Task< int > ReadContentAsBinaryAsync( byte[] buffer, int index, int count ) { 5062async Task< int > ReadElementContentAsBinaryAsync( byte[] buffer, int index, int count ) {
System\Xml\Core\XmlTextReaderImplHelpersAsync.cs (5)
36 Task< int > IDtdParserAdapter.ReadDataAsync() { 40Task< int > IDtdParserAdapter.ParseNumericCharRefAsync( BufferBuilder internalSubsetBuilder ) { 44Task< int > IDtdParserAdapter.ParseNamedCharRefAsync( bool expand, BufferBuilder internalSubsetBuilder ) { 56Task< Tuple<int,bool> > IDtdParserAdapter.PushEntityAsync( IDtdEntityInfo entity ) { 62Task< bool > IDtdParserAdapter.PushExternalSubsetAsync( string systemId, string publicId ) {
System\Xml\Core\XmlValidatingReaderImplAsync.cs (7)
21public override Task<string> GetValueAsync() { 26public override async Task< bool > ReadAsync() { 67public override async Task< int > ReadContentAsBase64Async( byte[] buffer, int index, int count ) { 88public override async Task< int > ReadContentAsBinHexAsync( byte[] buffer, int index, int count ) { 109public override async Task< int > ReadElementContentAsBase64Async( byte[] buffer, int index, int count ) { 130public override async Task< int > ReadElementContentAsBinHexAsync( byte[] buffer, int index, int count ) { 160public async Task< object > ReadTypedValueAsync() {
System\Xml\Core\XmlWrappingReaderAsync.cs (2)
14public override Task<string> GetValueAsync() { 18public override Task< bool > ReadAsync() {
System\Xml\Core\XsdCachingReaderAsync.cs (2)
18public override Task<string> GetValueAsync() { 28public override async Task< bool > ReadAsync() {
System\Xml\Core\XsdValidatingReaderAsync.cs (26)
20public override Task<string> GetValueAsync() { 27public override Task< object > ReadContentAsObjectAsync() { 36public override async Task< string > ReadContentAsStringAsync() { 61public override async Task< object > ReadContentAsAsync(Type returnType, IXmlNamespaceResolver namespaceResolver) { 97public override async Task< object > ReadElementContentAsObjectAsync() { 108public override async Task< string > ReadElementContentAsStringAsync() { 138public override async Task< object > ReadElementContentAsAsync(Type returnType, IXmlNamespaceResolver namespaceResolver) { 175private Task<bool> ReadAsync_Read(Task<bool> task) { 193private async Task<bool> _ReadAsync_Read(Task<bool> task) { 208private Task<bool> ReadAsync_ReadAhead(Task task) { 218private async Task<bool> _ReadAsync_ReadAhead(Task task) { 225public override Task< bool > ReadAsync() { 228Task<bool> readTask = coreReader.ReadAsync(); 305public override async Task< int > ReadContentAsBase64Async(byte[] buffer, int index, int count) { 328public override async Task< int > ReadContentAsBinHexAsync(byte[] buffer, int index, int count) { 351public override async Task< int > ReadElementContentAsBase64Async(byte[] buffer, int index, int count) { 374public override async Task< int > ReadElementContentAsBinHexAsync(byte[] buffer, int index, int count) { 547private Task< object > InternalReadContentAsObjectAsync() { 551private async Task< object > InternalReadContentAsObjectAsync(bool unwrapTypedValue) { 559private async Task< Tuple<string, object> > InternalReadContentAsObjectTupleAsync(bool unwrapTypedValue) { 624private Task< Tuple<XmlSchemaType, object> > InternalReadElementContentAsObjectAsync() { 630private async Task< Tuple<XmlSchemaType, object> > InternalReadElementContentAsObjectAsync(bool unwrapTypedValue) { 638private async Task< Tuple<XmlSchemaType, string, object> > InternalReadElementContentAsObjectTupleAsync(bool unwrapTypedValue) { 705private async Task< object > ReadTillEndElementAsync() {
System\Xml\Resolvers\XmlPreloadedResolverAsync.cs (1)
21public override Task<Object> GetEntityAsync(Uri absoluteUri,
System\Xml\Schema\DtdParserAsync.cs (31)
28async Task< IDtdInfo > IDtdParser.ParseInternalDtdAsync(IDtdParserAdapter adapter, bool saveInternalSubset) { 34async Task< IDtdInfo > IDtdParser.ParseFreeFloatingDtdAsync(string baseUri, string docTypeName, string publicId, string systemId, string internalSubset, IDtdParserAdapter adapter) { 1121private async Task< Tuple<string, string> > ParseExternalIdAsync(Token idTokenType, Token declType) { 1192private async Task< Token > GetTokenAsync( bool needWhiteSpace ) { 1308private async Task< Token > ScanSubsetContentAsync() { 1445private async Task< Token > ScanNameExpectedAsync() { 1451private async Task< Token > ScanQNameExpectedAsync() { 1457private async Task< Token > ScanNmtokenExpectedAsync() { 1463private async Task< Token > ScanDoctype1Async() { 1493private async Task< Token > ScanElement1Async() { 1532private async Task< Token > ScanElement2Async() { 1555private async Task< Token > ScanElement3Async() { 1571private async Task< Token > ScanAttlist1Async() { 1587private async Task< Token > ScanAttlist2Async() { 1700private async Task< Token > ScanAttlist6Async() { 1759private async Task< Token > ScanLiteralAsync( LiteralType literalType ) { 1969private async Task< Token > ScanNotation1Async() { 1991private async Task< Token > ScanSystemIdAsync() { 2002private async Task< Token > ScanEntity1Async() { 2016private async Task< Token > ScanEntity2Async() { 2044private async Task< Token > ScanEntity3Async() { 2064private async Task< Token > ScanPublicId1Async() { 2075private async Task< Token > ScanPublicId2Async() { 2087private async Task< Token > ScanCondSection1Async() { 2140private async Task< Token > ScanCondSection3Async() { 2347private async Task< bool > ReadDataInNameAsync() { 2407private async Task< bool > EatPublicKeywordAsync() { 2423private async Task< bool > EatSystemKeywordAsync() { 2442async Task< int > ReadDataAsync() { 2452private Task< bool > HandleEntityReferenceAsync( bool paramEntity, bool inLiteral, bool inAttribute ) { 2460private async Task< bool > HandleEntityReferenceAsync( XmlQualifiedName entityName, bool paramEntity, bool inLiteral, bool inAttribute ) {
System\Xml\Schema\ParserAsync.cs (1)
15public async Task< SchemaType > ParseAsync(XmlReader reader, string targetNamespace) {
System\Xml\XmlDownloadManagerAsync.cs (3)
20internal Task<Stream> GetStreamAsync(Uri uri, ICredentials credentials, IWebProxy proxy, 30private async Task<Stream> GetNonFileStreamAsync(Uri uri, ICredentials credentials, IWebProxy proxy, 43WebResponse resp = await Task<WebResponse>.Factory.FromAsync(req.BeginGetResponse, req.EndGetResponse, null).ConfigureAwait(false);
System\Xml\XmlResolverAsync.cs (1)
8public virtual Task<Object> GetEntityAsync(Uri absoluteUri,
System\Xml\XmlSecureResolverAsync.cs (1)
9public override Task<object> GetEntityAsync(Uri absoluteUri, string role, Type ofObjectToReturn) {
System\Xml\XmlUrlResolverAsync.cs (1)
12public override async Task<Object> GetEntityAsync(Uri absoluteUri, string role, Type ofObjectToReturn) {
WindowsBase (2)
Base\System\Windows\Threading\DispatcherOperation.cs (2)
790public new Task<TResult> Task 795return (Task<TResult>)((DispatcherOperation)this).Task;