DelegatingJoinableTaskFactory Class

 

A JoinableTaskFactory base class for derived types that delegate some of their work to an existing instance.

Namespace:   Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

System.Object
  Microsoft.VisualStudio.Threading.JoinableTaskFactory
    Microsoft.VisualStudio.Threading.DelegatingJoinableTaskFactory

public class DelegatingJoinableTaskFactory : JoinableTaskFactory

NameDescription
System_CAPS_protmethodDelegatingJoinableTaskFactory(JoinableTaskFactory)

Initializes an instance of the DelegatingJoinableTaskFactory.

NameDescription
System_CAPS_pubpropertyContext

Gets the joinable task context to which this factory belongs.(Inherited from JoinableTaskFactory.)

System_CAPS_protpropertyHangDetectionTimeout

Gets or sets the time between the last activity on a synchronously-blocking thread and the beginning of data collection about a possible hang.(Inherited from JoinableTaskFactory.)

System_CAPS_protpropertyUnderlyingSynchronizationContext

Gets the underlying SynchronizationContext that controls the main thread in the host.(Inherited from JoinableTaskFactory.)

NameDescription
System_CAPS_protmethodAdd(JoinableTask)

Adds the specified joinable task to the applicable collection.(Inherited from JoinableTaskFactory.)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodOnTransitionedToMainThread(JoinableTask, Boolean)

Occurs whenever a joinable task has completed a transition to the main thread.(Overrides JoinableTaskFactory.OnTransitionedToMainThread(JoinableTask, Boolean).)

System_CAPS_protmethodOnTransitioningToMainThread(JoinableTask)

Occurs when a joinable task has requested a transition to the main thread.(Overrides JoinableTaskFactory.OnTransitioningToMainThread(JoinableTask).)

System_CAPS_protmethodPostToUnderlyingSynchronizationContext(SendOrPostCallback, Object)

Posts a message to the specified underlying SynchronizationContext for processing when the main thread is freely available.(Overrides JoinableTaskFactory.PostToUnderlyingSynchronizationContext(SendOrPostCallback, Object).)

System_CAPS_pubmethodRun(Func<Task>)

Runs the specified asynchronous method.(Inherited from JoinableTaskFactory.)

System_CAPS_pubmethodRun<T>(Func<Task<T>>)

Runs the specified asynchronous method.(Inherited from JoinableTaskFactory.)

System_CAPS_pubmethodRunAsync(Func<Task>)

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

System_CAPS_pubmethodRunAsync<T>(Func<Task<T>>)

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

System_CAPS_pubmethodSwitchToMainThreadAsync(CancellationToken)

Gets an awaitable whose continuations execute on the synchronization context with which this instance was initialized, so that both deadlocks and reentrancy are mitigated.(Inherited from JoinableTaskFactory.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_protmethodWaitSynchronously(Task)

Synchronously blocks the calling thread for the completion of the specified task.(Overrides JoinableTaskFactory.WaitSynchronously(Task).)

System_CAPS_protmethodWaitSynchronouslyCore(Task)

Synchronously blocks the calling thread for the completion of the specified task.(Inherited from JoinableTaskFactory.)

This type is thread-safe for all members.

Return to top
Show: