VsTaskLibraryHelper VsTaskLibraryHelper VsTaskLibraryHelper VsTaskLibraryHelper VsTaskLibraryHelper VsTaskLibraryHelper Class

Definition

Supplies helper methods for using the Visual Studio task library in managed code.

public ref class VsTaskLibraryHelper abstract sealed
public ref class VsTaskLibraryHelper abstract sealed
class VsTaskLibraryHelper abstract sealed
public static class VsTaskLibraryHelper
type VsTaskLibraryHelper = class
Public Module VsTaskLibraryHelper
Inheritance
VsTaskLibraryHelperVsTaskLibraryHelperVsTaskLibraryHelperVsTaskLibraryHelperVsTaskLibraryHelperVsTaskLibraryHelper

Properties

ServiceInstance ServiceInstance ServiceInstance ServiceInstance ServiceInstance ServiceInstance

Gets the singleton service instance.

Methods

ApplyCancellationToken(IVsTask, CancellationToken) ApplyCancellationToken(IVsTask, CancellationToken) ApplyCancellationToken(IVsTask, CancellationToken) ApplyCancellationToken(IVsTask, CancellationToken) ApplyCancellationToken(IVsTask, CancellationToken) ApplyCancellationToken(IVsTask, CancellationToken)

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

AsVsTask<T>(JoinableTask<T>) AsVsTask<T>(JoinableTask<T>) AsVsTask<T>(JoinableTask<T>) AsVsTask<T>(JoinableTask<T>) AsVsTask<T>(JoinableTask<T>) AsVsTask<T>(JoinableTask<T>)

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

CancelOnShutdown(IVsTask, AsyncPackage) CancelOnShutdown(IVsTask, AsyncPackage) CancelOnShutdown(IVsTask, AsyncPackage) CancelOnShutdown(IVsTask, AsyncPackage) CancelOnShutdown(IVsTask, AsyncPackage) CancelOnShutdown(IVsTask, AsyncPackage)

Ensures that task will be canceled when package is disposed. The package's Dispose method will not return until task completes.

CancelWhenCancellationRequested(IVsTask, JoinableTaskFactory, CancellationToken) CancelWhenCancellationRequested(IVsTask, JoinableTaskFactory, CancellationToken) CancelWhenCancellationRequested(IVsTask, JoinableTaskFactory, CancellationToken) CancelWhenCancellationRequested(IVsTask, JoinableTaskFactory, CancellationToken) CancelWhenCancellationRequested(IVsTask, JoinableTaskFactory, CancellationToken) CancelWhenCancellationRequested(IVsTask, JoinableTaskFactory, CancellationToken)

Ensures that task will be canceled when cancellation is requested for cancellationToken.

CompleteAfterTask<T>(IVsTaskCompletionSource, Task<T>) CompleteAfterTask<T>(IVsTaskCompletionSource, Task<T>) CompleteAfterTask<T>(IVsTaskCompletionSource, Task<T>) CompleteAfterTask<T>(IVsTaskCompletionSource, Task<T>) CompleteAfterTask<T>(IVsTaskCompletionSource, Task<T>) CompleteAfterTask<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.

ContinueWhenAllCompleted(IVsTaskSchedulerService, VsTaskRunContext, IVsTask[], IVsTaskBody) ContinueWhenAllCompleted(IVsTaskSchedulerService, VsTaskRunContext, IVsTask[], IVsTaskBody) ContinueWhenAllCompleted(IVsTaskSchedulerService, VsTaskRunContext, IVsTask[], IVsTaskBody) ContinueWhenAllCompleted(IVsTaskSchedulerService, VsTaskRunContext, IVsTask[], IVsTaskBody) ContinueWhenAllCompleted(IVsTaskSchedulerService, VsTaskRunContext, IVsTask[], IVsTaskBody) ContinueWhenAllCompleted(IVsTaskSchedulerService, VsTaskRunContext, IVsTask[], IVsTaskBody)

Creates a Visual Studio task that's run after the provided tasks have either finished running or been cancelled. Overrides ContinueWhenAllCompleted(UInt32, UInt32, IVsTask[], IVsTaskBody).

ContinueWhenAllCompleted(IVsTaskSchedulerService, VsTaskRunContext, IVsTask[], VsTaskContinuationOptions, IVsTaskBody, Object) ContinueWhenAllCompleted(IVsTaskSchedulerService, VsTaskRunContext, IVsTask[], VsTaskContinuationOptions, IVsTaskBody, Object) ContinueWhenAllCompleted(IVsTaskSchedulerService, VsTaskRunContext, IVsTask[], VsTaskContinuationOptions, IVsTaskBody, Object) ContinueWhenAllCompleted(IVsTaskSchedulerService, VsTaskRunContext, IVsTask[], VsTaskContinuationOptions, IVsTaskBody, Object) ContinueWhenAllCompleted(IVsTaskSchedulerService, VsTaskRunContext, IVsTask[], VsTaskContinuationOptions, IVsTaskBody, Object) ContinueWhenAllCompleted(IVsTaskSchedulerService, VsTaskRunContext, IVsTask[], VsTaskContinuationOptions, IVsTaskBody, Object)

Uses the specified options to create a task that's run after the given tasks are completed. Overrides ContinueWhenAllCompletedEx(UInt32, UInt32, IVsTask[], UInt32, IVsTaskBody, Object).

ContinueWith(IVsTask, VsTaskRunContext, IVsTaskBody) ContinueWith(IVsTask, VsTaskRunContext, IVsTaskBody) ContinueWith(IVsTask, VsTaskRunContext, IVsTaskBody) ContinueWith(IVsTask, VsTaskRunContext, IVsTaskBody) ContinueWith(IVsTask, VsTaskRunContext, IVsTaskBody) ContinueWith(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(UInt32, IVsTaskBody).

ContinueWith(IVsTask, VsTaskRunContext, VsTaskContinuationOptions, IVsTaskBody, Object) ContinueWith(IVsTask, VsTaskRunContext, VsTaskContinuationOptions, IVsTaskBody, Object) ContinueWith(IVsTask, VsTaskRunContext, VsTaskContinuationOptions, IVsTaskBody, Object) ContinueWith(IVsTask, VsTaskRunContext, VsTaskContinuationOptions, IVsTaskBody, Object) ContinueWith(IVsTask, VsTaskRunContext, VsTaskContinuationOptions, IVsTaskBody, Object) ContinueWith(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(UInt32, UInt32, IVsTaskBody, Object).

CreateAndStartTask(IVsTaskSchedulerService, VsTaskRunContext, VsTaskBodyCallback) CreateAndStartTask(IVsTaskSchedulerService, VsTaskRunContext, VsTaskBodyCallback) CreateAndStartTask(IVsTaskSchedulerService, VsTaskRunContext, VsTaskBodyCallback) CreateAndStartTask(IVsTaskSchedulerService, VsTaskRunContext, VsTaskBodyCallback) CreateAndStartTask(IVsTaskSchedulerService, VsTaskRunContext, VsTaskBodyCallback) CreateAndStartTask(IVsTaskSchedulerService, VsTaskRunContext, VsTaskBodyCallback)

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

CreateAndStartTask(IVsTaskSchedulerService, VsTaskRunContext, Action) CreateAndStartTask(IVsTaskSchedulerService, VsTaskRunContext, Action) CreateAndStartTask(IVsTaskSchedulerService, VsTaskRunContext, Action) CreateAndStartTask(IVsTaskSchedulerService, VsTaskRunContext, Action) CreateAndStartTask(IVsTaskSchedulerService, VsTaskRunContext, Action) CreateAndStartTask(IVsTaskSchedulerService, VsTaskRunContext, Action)

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

CreateAndStartTask(IVsTaskSchedulerService, VsTaskRunContext, IVsTaskBody) CreateAndStartTask(IVsTaskSchedulerService, VsTaskRunContext, IVsTaskBody) CreateAndStartTask(IVsTaskSchedulerService, VsTaskRunContext, IVsTaskBody) CreateAndStartTask(IVsTaskSchedulerService, VsTaskRunContext, IVsTaskBody) CreateAndStartTask(IVsTaskSchedulerService, VsTaskRunContext, IVsTaskBody) CreateAndStartTask(IVsTaskSchedulerService, VsTaskRunContext, IVsTaskBody)

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

CreateAndStartTaskEx(IVsTaskSchedulerService, VsTaskRunContext, VsTaskCreationOptions, IVsTaskBody, Object) CreateAndStartTaskEx(IVsTaskSchedulerService, VsTaskRunContext, VsTaskCreationOptions, IVsTaskBody, Object) CreateAndStartTaskEx(IVsTaskSchedulerService, VsTaskRunContext, VsTaskCreationOptions, IVsTaskBody, Object) CreateAndStartTaskEx(IVsTaskSchedulerService, VsTaskRunContext, VsTaskCreationOptions, IVsTaskBody, Object) CreateAndStartTaskEx(IVsTaskSchedulerService, VsTaskRunContext, VsTaskCreationOptions, IVsTaskBody, Object) CreateAndStartTaskEx(IVsTaskSchedulerService, VsTaskRunContext, VsTaskCreationOptions, IVsTaskBody, Object)

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

CreateTask(IVsTaskSchedulerService, VsTaskRunContext, IVsTaskBody) CreateTask(IVsTaskSchedulerService, VsTaskRunContext, IVsTaskBody) CreateTask(IVsTaskSchedulerService, VsTaskRunContext, IVsTaskBody) CreateTask(IVsTaskSchedulerService, VsTaskRunContext, IVsTaskBody) CreateTask(IVsTaskSchedulerService, VsTaskRunContext, IVsTaskBody) CreateTask(IVsTaskSchedulerService, VsTaskRunContext, IVsTaskBody)

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

CreateTask(IVsTaskSchedulerService, VsTaskRunContext, VsTaskCreationOptions, IVsTaskBody, Object) CreateTask(IVsTaskSchedulerService, VsTaskRunContext, VsTaskCreationOptions, IVsTaskBody, Object) CreateTask(IVsTaskSchedulerService, VsTaskRunContext, VsTaskCreationOptions, IVsTaskBody, Object) CreateTask(IVsTaskSchedulerService, VsTaskRunContext, VsTaskCreationOptions, IVsTaskBody, Object) CreateTask(IVsTaskSchedulerService, VsTaskRunContext, VsTaskCreationOptions, IVsTaskBody, Object) CreateTask(IVsTaskSchedulerService, VsTaskRunContext, VsTaskCreationOptions, IVsTaskBody, Object)

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

CreateTaskBody(VsTaskBodyCallback) CreateTaskBody(VsTaskBodyCallback) CreateTaskBody(VsTaskBodyCallback) CreateTaskBody(VsTaskBodyCallback) CreateTaskBody(VsTaskBodyCallback) CreateTaskBody(VsTaskBodyCallback)

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

CreateTaskBody(Action) CreateTaskBody(Action) CreateTaskBody(Action) CreateTaskBody(Action) CreateTaskBody(Action) CreateTaskBody(Action)

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

CreateTaskBody(Func<Object>) CreateTaskBody(Func<Object>) CreateTaskBody(Func<Object>) CreateTaskBody(Func<Object>) CreateTaskBody(Func<Object>) CreateTaskBody(Func<Object>)

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

CreateTaskBody<T>(Action<T>) CreateTaskBody<T>(Action<T>) CreateTaskBody<T>(Action<T>) CreateTaskBody<T>(Action<T>) CreateTaskBody<T>(Action<T>) CreateTaskBody<T>(Action<T>)

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

CreateTaskBody<T>(Func<T,Object>) CreateTaskBody<T>(Func<T,Object>) CreateTaskBody<T>(Func<T,Object>) CreateTaskBody<T>(Func<T,Object>) CreateTaskBody<T>(Func<T,Object>) CreateTaskBody<T>(Func<T,Object>)

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

CreateTaskCompletionSource(IVsTaskSchedulerService, VsTaskCreationOptions, Object) CreateTaskCompletionSource(IVsTaskSchedulerService, VsTaskCreationOptions, Object) CreateTaskCompletionSource(IVsTaskSchedulerService, VsTaskCreationOptions, Object) CreateTaskCompletionSource(IVsTaskSchedulerService, VsTaskCreationOptions, Object) CreateTaskCompletionSource(IVsTaskSchedulerService, VsTaskCreationOptions, Object) CreateTaskCompletionSource(IVsTaskSchedulerService, VsTaskCreationOptions, Object)

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

Delay(IVsTaskSchedulerService, TimeSpan) Delay(IVsTaskSchedulerService, TimeSpan) Delay(IVsTaskSchedulerService, TimeSpan) Delay(IVsTaskSchedulerService, TimeSpan) Delay(IVsTaskSchedulerService, TimeSpan) Delay(IVsTaskSchedulerService, TimeSpan)

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

Delay(IVsTaskSchedulerService, Double) Delay(IVsTaskSchedulerService, Double) Delay(IVsTaskSchedulerService, Double) Delay(IVsTaskSchedulerService, Double) Delay(IVsTaskSchedulerService, Double) Delay(IVsTaskSchedulerService, Double)

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

FileAndForget(Task, String, String, Func<Exception,Boolean>) FileAndForget(Task, String, String, Func<Exception,Boolean>) FileAndForget(Task, String, String, Func<Exception,Boolean>) FileAndForget(Task, String, String, Func<Exception,Boolean>) FileAndForget(Task, String, String, Func<Exception,Boolean>) FileAndForget(Task, String, String, Func<Exception,Boolean>)

Records error information when the given Task faults.

FileAndForget(JoinableTask, String, String, Func<Exception,Boolean>) FileAndForget(JoinableTask, String, String, Func<Exception,Boolean>) FileAndForget(JoinableTask, String, String, Func<Exception,Boolean>) FileAndForget(JoinableTask, String, String, Func<Exception,Boolean>) FileAndForget(JoinableTask, String, String, Func<Exception,Boolean>) FileAndForget(JoinableTask, String, String, Func<Exception,Boolean>)

Records error information when the given JoinableTask faults.

GetAwaiter(VsTaskAwaiter) GetAwaiter(VsTaskAwaiter) GetAwaiter(VsTaskAwaiter) GetAwaiter(VsTaskAwaiter) GetAwaiter(VsTaskAwaiter) GetAwaiter(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(IVsTask, VsTaskRunContext).

GetAwaiter(IVsTask) GetAwaiter(IVsTask) GetAwaiter(IVsTask) GetAwaiter(IVsTask) GetAwaiter(IVsTask) GetAwaiter(IVsTask)

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

GetAwaiter(VsTaskRunContext) GetAwaiter(VsTaskRunContext) GetAwaiter(VsTaskRunContext) GetAwaiter(VsTaskRunContext) GetAwaiter(VsTaskRunContext) GetAwaiter(VsTaskRunContext)
GetTaskScheduler(VsTaskRunContext) GetTaskScheduler(VsTaskRunContext) GetTaskScheduler(VsTaskRunContext) GetTaskScheduler(VsTaskRunContext) GetTaskScheduler(VsTaskRunContext) GetTaskScheduler(VsTaskRunContext)
InvokeAsync<T>(IVsTaskSchedulerService, VsInvokableAsyncFunction<T>) InvokeAsync<T>(IVsTaskSchedulerService, VsInvokableAsyncFunction<T>) InvokeAsync<T>(IVsTaskSchedulerService, VsInvokableAsyncFunction<T>) InvokeAsync<T>(IVsTaskSchedulerService, VsInvokableAsyncFunction<T>) InvokeAsync<T>(IVsTaskSchedulerService, VsInvokableAsyncFunction<T>) InvokeAsync<T>(IVsTaskSchedulerService, VsInvokableAsyncFunction<T>)

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

IsUIThreadContext(VsTaskRunContext) IsUIThreadContext(VsTaskRunContext) IsUIThreadContext(VsTaskRunContext) IsUIThreadContext(VsTaskRunContext) IsUIThreadContext(VsTaskRunContext) IsUIThreadContext(VsTaskRunContext)

Determines whether the specified context represents UI thread work.

ResumeWith(IVsTask, VsTaskRunContext) ResumeWith(IVsTask, VsTaskRunContext) ResumeWith(IVsTask, VsTaskRunContext) ResumeWith(IVsTask, VsTaskRunContext) ResumeWith(IVsTask, VsTaskRunContext) ResumeWith(IVsTask, VsTaskRunContext)

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

Run(JoinableTaskFactory, String, String, Func<IProgress<ThreadedWaitDialogProgressData>,CancellationToken,Task>, Nullable<TimeSpan>) Run(JoinableTaskFactory, String, String, Func<IProgress<ThreadedWaitDialogProgressData>,CancellationToken,Task>, Nullable<TimeSpan>) Run(JoinableTaskFactory, String, String, Func<IProgress<ThreadedWaitDialogProgressData>,CancellationToken,Task>, Nullable<TimeSpan>) Run(JoinableTaskFactory, String, String, Func<IProgress<ThreadedWaitDialogProgressData>,CancellationToken,Task>, Nullable<TimeSpan>) Run(JoinableTaskFactory, String, String, Func<IProgress<ThreadedWaitDialogProgressData>,CancellationToken,Task>, Nullable<TimeSpan>) Run(JoinableTaskFactory, String, String, Func<IProgress<ThreadedWaitDialogProgressData>,CancellationToken,Task>, Nullable<TimeSpan>)

Blocks the calling (UI) thread till an async operation completes. Cancellation is offered to the user.

Run(JoinableTaskFactory, String, String, Func<IProgress<ThreadedWaitDialogProgressData>,Task>, Nullable<TimeSpan>) Run(JoinableTaskFactory, String, String, Func<IProgress<ThreadedWaitDialogProgressData>,Task>, Nullable<TimeSpan>) Run(JoinableTaskFactory, String, String, Func<IProgress<ThreadedWaitDialogProgressData>,Task>, Nullable<TimeSpan>) Run(JoinableTaskFactory, String, String, Func<IProgress<ThreadedWaitDialogProgressData>,Task>, Nullable<TimeSpan>) Run(JoinableTaskFactory, String, String, Func<IProgress<ThreadedWaitDialogProgressData>,Task>, Nullable<TimeSpan>) Run(JoinableTaskFactory, String, String, Func<IProgress<ThreadedWaitDialogProgressData>,Task>, Nullable<TimeSpan>)

Blocks the calling (UI) thread till an async operation completes. No cancellation is offered to the user.

Run(JoinableTaskFactory, String, Func<IProgress<ThreadedWaitDialogProgressData>,CancellationToken,Task>, Nullable<TimeSpan>) Run(JoinableTaskFactory, String, Func<IProgress<ThreadedWaitDialogProgressData>,CancellationToken,Task>, Nullable<TimeSpan>) Run(JoinableTaskFactory, String, Func<IProgress<ThreadedWaitDialogProgressData>,CancellationToken,Task>, Nullable<TimeSpan>) Run(JoinableTaskFactory, String, Func<IProgress<ThreadedWaitDialogProgressData>,CancellationToken,Task>, Nullable<TimeSpan>) Run(JoinableTaskFactory, String, Func<IProgress<ThreadedWaitDialogProgressData>,CancellationToken,Task>, Nullable<TimeSpan>) Run(JoinableTaskFactory, String, Func<IProgress<ThreadedWaitDialogProgressData>,CancellationToken,Task>, Nullable<TimeSpan>)

Blocks the calling (UI) thread till a cancelable, async operation completes. An optionally cancelable wait dialog is displayed if the operation takes too long.

Run(JoinableTaskFactory, String, Func<IProgress<ThreadedWaitDialogProgressData>,Task>, Nullable<TimeSpan>) Run(JoinableTaskFactory, String, Func<IProgress<ThreadedWaitDialogProgressData>,Task>, Nullable<TimeSpan>) Run(JoinableTaskFactory, String, Func<IProgress<ThreadedWaitDialogProgressData>,Task>, Nullable<TimeSpan>) Run(JoinableTaskFactory, String, Func<IProgress<ThreadedWaitDialogProgressData>,Task>, Nullable<TimeSpan>) Run(JoinableTaskFactory, String, Func<IProgress<ThreadedWaitDialogProgressData>,Task>, Nullable<TimeSpan>) Run(JoinableTaskFactory, String, Func<IProgress<ThreadedWaitDialogProgressData>,Task>, Nullable<TimeSpan>)

Blocks the calling (UI) thread till an async operation completes. An optionally cancelable wait dialog is displayed if the operation takes too long.

RunAsync(JoinableTaskFactory, VsTaskRunContext, Func<Task>) RunAsync(JoinableTaskFactory, VsTaskRunContext, Func<Task>) RunAsync(JoinableTaskFactory, VsTaskRunContext, Func<Task>) RunAsync(JoinableTaskFactory, VsTaskRunContext, Func<Task>) RunAsync(JoinableTaskFactory, VsTaskRunContext, Func<Task>) RunAsync(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.

RunAsync<T>(JoinableTaskFactory, VsTaskRunContext, Func<Task<T>>) RunAsync<T>(JoinableTaskFactory, VsTaskRunContext, Func<Task<T>>) RunAsync<T>(JoinableTaskFactory, VsTaskRunContext, Func<Task<T>>) RunAsync<T>(JoinableTaskFactory, VsTaskRunContext, Func<Task<T>>) RunAsync<T>(JoinableTaskFactory, VsTaskRunContext, Func<Task<T>>) RunAsync<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.

RunAsyncAsVsTask<T>(JoinableTaskFactory, VsTaskRunContext, Func<CancellationToken,Task<T>>) RunAsyncAsVsTask<T>(JoinableTaskFactory, VsTaskRunContext, Func<CancellationToken,Task<T>>) RunAsyncAsVsTask<T>(JoinableTaskFactory, VsTaskRunContext, Func<CancellationToken,Task<T>>) RunAsyncAsVsTask<T>(JoinableTaskFactory, VsTaskRunContext, Func<CancellationToken,Task<T>>) RunAsyncAsVsTask<T>(JoinableTaskFactory, VsTaskRunContext, Func<CancellationToken,Task<T>>) RunAsyncAsVsTask<T>(JoinableTaskFactory, VsTaskRunContext, Func<CancellationToken,Task<T>>)

Creates an IVsTask to track a cancelable async operation.

StartOnIdle(JoinableTaskFactory, Action, VsTaskRunContext) StartOnIdle(JoinableTaskFactory, Action, VsTaskRunContext) StartOnIdle(JoinableTaskFactory, Action, VsTaskRunContext) StartOnIdle(JoinableTaskFactory, Action, VsTaskRunContext) StartOnIdle(JoinableTaskFactory, Action, VsTaskRunContext) StartOnIdle(JoinableTaskFactory, Action, VsTaskRunContext)

Schedules a delegate for background execution on the UI thread without inheriting any claim to the UI thread from its caller.

StartOnIdle(JoinableTaskFactory, Func<Task>, VsTaskRunContext) StartOnIdle(JoinableTaskFactory, Func<Task>, VsTaskRunContext) StartOnIdle(JoinableTaskFactory, Func<Task>, VsTaskRunContext) StartOnIdle(JoinableTaskFactory, Func<Task>, VsTaskRunContext) StartOnIdle(JoinableTaskFactory, Func<Task>, VsTaskRunContext) StartOnIdle(JoinableTaskFactory, Func<Task>, VsTaskRunContext)

Schedules a delegate for background execution on the UI thread without inheriting any claim to the UI thread from its caller.

Wait(IVsTask, Int32) Wait(IVsTask, Int32) Wait(IVsTask, Int32) Wait(IVsTask, Int32) Wait(IVsTask, Int32) Wait(IVsTask, Int32)

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

Wait(IVsTask, Int32, VsTaskWaitOptions) Wait(IVsTask, Int32, VsTaskWaitOptions) Wait(IVsTask, Int32, VsTaskWaitOptions) Wait(IVsTask, Int32, VsTaskWaitOptions) Wait(IVsTask, Int32, VsTaskWaitOptions) Wait(IVsTask, Int32, VsTaskWaitOptions)

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

WithPriority(JoinableTaskFactory, VsTaskRunContext) WithPriority(JoinableTaskFactory, VsTaskRunContext) WithPriority(JoinableTaskFactory, VsTaskRunContext) WithPriority(JoinableTaskFactory, VsTaskRunContext) WithPriority(JoinableTaskFactory, VsTaskRunContext) WithPriority(JoinableTaskFactory, VsTaskRunContext)
Yield(VsTaskRunContext, IVsTaskCompletionSource) Yield(VsTaskRunContext, IVsTaskCompletionSource) Yield(VsTaskRunContext, IVsTaskCompletionSource) Yield(VsTaskRunContext, IVsTaskCompletionSource) Yield(VsTaskRunContext, IVsTaskCompletionSource) Yield(VsTaskRunContext, IVsTaskCompletionSource)

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

Yield(IVsTaskSchedulerService, VsTaskRunContext, IVsTaskCompletionSource) Yield(IVsTaskSchedulerService, VsTaskRunContext, IVsTaskCompletionSource) Yield(IVsTaskSchedulerService, VsTaskRunContext, IVsTaskCompletionSource) Yield(IVsTaskSchedulerService, VsTaskRunContext, IVsTaskCompletionSource) Yield(IVsTaskSchedulerService, VsTaskRunContext, IVsTaskCompletionSource) Yield(IVsTaskSchedulerService, VsTaskRunContext, IVsTaskCompletionSource)

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

Extension Methods

FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)
IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

Applies to