IVsTaskSchedulerService Interface

Creates and interacts with Asynchrous task blocks.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assemblies:   Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)
  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
[GuidAttribute("83CFBAAF-0DF9-403D-AE42-E738F0AC9735")]
public interface IVsTaskSchedulerService

The IVsTaskSchedulerService type exposes the following members.

  NameDescription
Public methodContinueWhenAllCompletedCreates an asynchrous task that is run after all the provided tasks have either finished running or have been cancelled.
Public methodContinueWhenAllCompletedExCreates a task (using the specified options) that is run after all the given tasks are completed.
Public methodCreateTaskCreates a task that is run on the given context.
Public methodCreateTaskCompletionSourceCreates a task completion source instance that can be used to start a task, or can cancel or append continuations.
Public methodCreateTaskCompletionSourceExCreates a task completion source instance with the specified options.
Public methodCreateTaskExCreates a task with the specified options that is run on the given context.
Top

  NameDescription
Public Extension MethodContinueWhenAllCompleted(VsTaskRunContext, IVsTask[], IVsTaskBody)Overloaded. Creates a Visual Studio task that's run after the provided tasks have either finished running or been cancelled. Overrides ContinueWhenAllCompleted. (Defined by VsTaskLibraryHelper.)
Public Extension MethodContinueWhenAllCompleted(VsTaskRunContext, IVsTask[], VsTaskContinuationOptions, IVsTaskBody, Object)Overloaded. Uses the specified options to create a task that's run after the given tasks are completed. Overrides ContinueWhenAllCompletedEx. (Defined by VsTaskLibraryHelper.)
Public Extension MethodCreateTask(VsTaskRunContext, IVsTaskBody)Overloaded. Creates a task that's run on the given context. (Defined by VsTaskLibraryHelper.)
Public Extension MethodCreateTask(VsTaskRunContext, VsTaskCreationOptions, IVsTaskBody, Object)Overloaded. Creates a task with the specified options that is run on the given context. (Defined by VsTaskLibraryHelper.)
Public Extension MethodCreateTaskCompletionSourceCreates a task-completion source instance with the specified options. (Defined by VsTaskLibraryHelper.)
Public Extension MethodInvokeAsync<T>Transforms a task parallel library (TPL) task from an asynchronous function into an IVsTask. (Defined by VsTaskLibraryHelper.)
Public Extension MethodYieldYields the current operation on the thread. The rest of the asynchronous method will be scheduled as a continuation. (Defined by VsTaskLibraryHelper.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft