VsTaskLibraryHelper.GetTaskScheduler(VsTaskRunContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the TaskScheduler that executes tasks on the thread and with the priority specified by the specified VsTaskRunContext.
public:
static System::Threading::Tasks::TaskScheduler ^ GetTaskScheduler(Microsoft::VisualStudio::Shell::VsTaskRunContext context);
public static System.Threading.Tasks.TaskScheduler GetTaskScheduler (Microsoft.VisualStudio.Shell.VsTaskRunContext context);
static member GetTaskScheduler : Microsoft.VisualStudio.Shell.VsTaskRunContext -> System.Threading.Tasks.TaskScheduler
Public Function GetTaskScheduler (context As VsTaskRunContext) As TaskScheduler
Parameters
- context
- VsTaskRunContext
Indicates the thread and priority that tasks should be scheduled on.
Returns
The requested TaskScheduler.