IVsTaskSchedulerService Interface

Creates and interacts with Asynchrous task blocks.

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

Syntax

'Declaration
<GuidAttribute("83CFBAAF-0DF9-403D-AE42-E738F0AC9735")> _
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
Public Interface IVsTaskSchedulerService
[GuidAttribute("83CFBAAF-0DF9-403D-AE42-E738F0AC9735")]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsTaskSchedulerService
[GuidAttribute(L"83CFBAAF-0DF9-403D-AE42-E738F0AC9735")]
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown)]
public interface class IVsTaskSchedulerService
[<GuidAttribute("83CFBAAF-0DF9-403D-AE42-E738F0AC9735")>]
[<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)>]
type IVsTaskSchedulerService =  interface end
public interface IVsTaskSchedulerService

The IVsTaskSchedulerService type exposes the following members.

Methods

  Name Description
Public method ContinueWhenAllCompleted Creates an asynchrous task that is run after all the provided tasks have either finished running or have been cancelled.
Public method ContinueWhenAllCompletedEx Creates a task (using the specified options) that is run after all the given tasks are completed.
Public method CreateTask Creates a task that is run on the given context.
Public method CreateTaskCompletionSource Creates a task completion source instance that can be used to start a task, or can cancel or append continuations.
Public method CreateTaskCompletionSourceEx Creates a task completion source instance with the specified options.
Public method CreateTaskEx Creates a task with the specified options that is run on the given context.

Top

Extension Methods

  Name Description
Public Extension Method ContinueWhenAllCompleted(VsTaskRunContext, array<IVsTask[], IVsTaskBody) Overloaded. Creates a Visual Studio task that is run after all the provided tasks have either finished running or have been cancelled. Overrides ContinueWhenAllCompleted. (Defined by VsTaskLibraryHelper.)
Public Extension Method ContinueWhenAllCompleted(VsTaskRunContext, array<IVsTask[], VsTaskContinuationOptions, IVsTaskBody, Object) Overloaded. Creates a task (using the specified options) that is run after all the given tasks are completed. Overrides ContinueWhenAllCompletedEx. (Defined by VsTaskLibraryHelper.)
Public Extension Method CreateTask(VsTaskRunContext, IVsTaskBody) Overloaded. Creates a task that is run on the given context. (Defined by VsTaskLibraryHelper.)
Public Extension Method CreateTask(VsTaskRunContext, VsTaskCreationOptions, IVsTaskBody, Object) Overloaded. Creates a task with the specified options that is run on the given context. (Defined by VsTaskLibraryHelper.)
Public Extension Method CreateTaskCompletionSource Creates a task completion source instance with the specified options. (Defined by VsTaskLibraryHelper.)
Public Extension Method InvokeAsync<T> transforms a task parallel library (TPL) task from an asynchronous function into an IVsTask. (Defined by VsTaskLibraryHelper.)
Public Extension Method Yield Yields the current operation on the thread. The rest of the asynchronous method will be scheduled as a continuation. (Defined by VsTaskLibraryHelper.)

Top

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace