VsTaskLibraryHelper Methods

 

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticApplyCancellationToken(IVsTask^, CancellationToken)

Signals a Visual Studio task to cancel operations as soon as possible when the specified token is canceled.

System_CAPS_pubmethodSystem_CAPS_staticAsVsTask<T>(JoinableTask<T>^)

Wraps a JoinableTask<T> instance in an IVsTask that can be returned to COM clients.

System_CAPS_pubmethodSystem_CAPS_staticCompleteAfterTask<T>(IVsTaskCompletionSource^, Task<T>^)

Sets a continuation on the task passed in so that task completion source is set to correct state after the task is completed, faulted or canceled.

System_CAPS_pubmethodSystem_CAPS_staticContinueWhenAllCompleted(IVsTaskSchedulerService^, VsTaskRunContext, array<IVsTask^>^, IVsTaskBody^)

Creates a Visual Studio task that's run after the provided tasks have either finished running or been cancelled. Overrides ContinueWhenAllCompleted.

System_CAPS_pubmethodSystem_CAPS_staticContinueWhenAllCompleted(IVsTaskSchedulerService^, VsTaskRunContext, array<IVsTask^>^, VsTaskContinuationOptions, IVsTaskBody^, Object^)

Uses the specified options to create a task that's run after the given tasks are completed. Overrides ContinueWhenAllCompletedEx.

System_CAPS_pubmethodSystem_CAPS_staticContinueWith(IVsTask^, VsTaskRunContext, IVsTaskBody^)

Appends to this task the provided action, to be run after the task is run to completion. The action is invoked on the provided context. Overrides ContinueWith.

System_CAPS_pubmethodSystem_CAPS_staticContinueWith(IVsTask^, VsTaskRunContext, VsTaskContinuationOptions, IVsTaskBody^, Object^)

Uses the specified options to append to this task the provided action, to be run after the task is run to completion. The action is invoked on the provided context. Overrides ContinueWithEx.

System_CAPS_pubmethodSystem_CAPS_staticCreateAndStartTask(IVsTaskSchedulerService^, VsTaskRunContext, Action^)

Creates a Visual Studio task that will be executed in the specified context.

System_CAPS_pubmethodSystem_CAPS_staticCreateAndStartTask(IVsTaskSchedulerService^, VsTaskRunContext, IVsTaskBody^)

Creates a Visual Studio task that's executed with the specified context.

System_CAPS_pubmethodSystem_CAPS_staticCreateAndStartTask(IVsTaskSchedulerService^, VsTaskRunContext, VsTaskBodyCallback^)

Creates a Visual Studio task that will be executed in the specified context.

System_CAPS_pubmethodSystem_CAPS_staticCreateAndStartTaskEx(IVsTaskSchedulerService^, VsTaskRunContext, VsTaskCreationOptions, IVsTaskBody^, Object^)

Creates a Visual Studio task that's executed with the specified context.

System_CAPS_pubmethodSystem_CAPS_staticCreateTask(IVsTaskSchedulerService^, VsTaskRunContext, IVsTaskBody^)

Creates a task that's run on the given context.

System_CAPS_pubmethodSystem_CAPS_staticCreateTask(IVsTaskSchedulerService^, VsTaskRunContext, VsTaskCreationOptions, IVsTaskBody^, Object^)

Creates a task with the specified options that is run on the given context.

System_CAPS_pubmethodSystem_CAPS_staticCreateTaskBody(Action^)

Creates a task body that can be consumed by the task scheduler service.

System_CAPS_pubmethodSystem_CAPS_staticCreateTaskBody(Func<Object^>^)

Creates a task body that can be consumed by the task scheduler service.

System_CAPS_pubmethodSystem_CAPS_staticCreateTaskBody(VsTaskBodyCallback^)

Creates a task body that can be consumed by the task scheduler service.

System_CAPS_pubmethodSystem_CAPS_staticCreateTaskBody<T>(Action<T>^)

Creates a task body that can be consumed by the task scheduler service.

System_CAPS_pubmethodSystem_CAPS_staticCreateTaskBody<T>(Func<T, Object^>^)

Creates a task body that can be consumed by the task scheduler service.

System_CAPS_pubmethodSystem_CAPS_staticCreateTaskCompletionSource(IVsTaskSchedulerService^, VsTaskCreationOptions, Object^)

Creates a task-completion source instance with the specified options.

System_CAPS_pubmethodSystem_CAPS_staticDelay(IVsTaskSchedulerService^, Double)

Retrieves a task that delays execution of the subsequent task by a given period of time.

System_CAPS_pubmethodSystem_CAPS_staticDelay(IVsTaskSchedulerService^, TimeSpan)

Returns a task that delays execution of the subsequent task by a given period of time.

System_CAPS_pubmethodSystem_CAPS_staticGetAwaiter(IVsTask^)

Internal use only. Gets the task to be used for scheduling continuations.

System_CAPS_pubmethodSystem_CAPS_staticGetAwaiter(VsTaskAwaiter^)

Internal use only. Gets the awaiter instance that contains the task that will be used to schedule continuations. Adds await support for an awaiter instance that can be returned from a call to ResumeWith.

System_CAPS_pubmethodSystem_CAPS_staticInvokeAsync<T>(IVsTaskSchedulerService^, VsInvokableAsyncFunction<T>^)

Transforms a task parallel library (TPL) task from an asynchronous function into an IVsTask.

System_CAPS_pubmethodSystem_CAPS_staticIsUIThreadContext(VsTaskRunContext)

Determines whether the specified context represents UI thread work.

System_CAPS_pubmethodSystem_CAPS_staticResumeWith(IVsTask^, VsTaskRunContext)

Extension method for task awaiter to support awaits with a specific context.

System_CAPS_pubmethodSystem_CAPS_staticRunAsync(JoinableTaskFactory^, VsTaskRunContext, Func<Task^>^)

Wraps the invocation of an async method so that it may execute asynchronously, but may potentially be synchronously completed (waited on) in the future.

System_CAPS_pubmethodSystem_CAPS_staticRunAsync<T>(JoinableTaskFactory^, VsTaskRunContext, Func<Task<T>^>^)

Wraps the invocation of an async method so that it may execute asynchronously, but may potentially be synchronously completed (waited on) in the future.

System_CAPS_pubmethodSystem_CAPS_staticRunAsyncAsVsTask<T>(JoinableTaskFactory^, VsTaskRunContext, Func<CancellationToken, Task<T>^>^)

Creates an IVsTask to track a cancelable async operation.

System_CAPS_pubmethodSystem_CAPS_staticWait(IVsTask^, Int32)

Waits for the task to complete (not including any continuations). Override for WaitEx with default options.

System_CAPS_pubmethodSystem_CAPS_staticWait(IVsTask^, Int32, VsTaskWaitOptions)

Waits for the task to complete (not including any continuations). Override for WaitEx to use correct enumeration types.

System_CAPS_pubmethodSystem_CAPS_staticYield(IVsTaskSchedulerService^, VsTaskRunContext, IVsTaskCompletionSource^)

Yields the current operation on the thread. The rest of the asynchronous method will be scheduled as a continuation.

System_CAPS_pubmethodSystem_CAPS_staticYield(VsTaskRunContext, IVsTaskCompletionSource^)

Yields the current operation on the thread, so that the rest of the async method is scheduled as a continuation.

Return to top
Show: