Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
A JoinableTaskFactory base class for derived types that delegate some of their work to an existing instance.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Threading.JoinableTaskFactory
Microsoft.VisualStudio.Threading.DelegatingJoinableTaskFactory
Namespace: Microsoft.VisualStudio.Threading
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
Syntax
'Declaration
Public Class DelegatingJoinableTaskFactory _
Inherits JoinableTaskFactory
public class DelegatingJoinableTaskFactory : JoinableTaskFactory
public ref class DelegatingJoinableTaskFactory : public JoinableTaskFactory
type DelegatingJoinableTaskFactory =
class
inherit JoinableTaskFactory
end
public class DelegatingJoinableTaskFactory extends JoinableTaskFactory
The DelegatingJoinableTaskFactory type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
![]() |
DelegatingJoinableTaskFactory | Initializes an instance of the DelegatingJoinableTaskFactory. |
Top
Properties
| Name | Description | |
|---|---|---|
![]() |
Context | Gets the joinable task context to which this factory belongs. (Inherited from JoinableTaskFactory.) |
![]() |
HangDetectionTimeout | 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.) |
![]() |
UnderlyingSynchronizationContext | Gets the underlying SynchronizationContext that controls the main thread in the host. (Inherited from JoinableTaskFactory.) |
Top
Methods
| Name | Description | |
|---|---|---|
![]() |
Add | Adds the specified joinable task to the applicable collection. (Inherited from JoinableTaskFactory.) |
![]() |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() |
GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
OnTransitionedToMainThread | Occurs whenever a joinable task has completed a transition to the main thread. (Overrides JoinableTaskFactory.OnTransitionedToMainThread(JoinableTask, Boolean).) |
![]() |
OnTransitioningToMainThread | Occurs when a joinable task has requested a transition to the main thread. (Overrides JoinableTaskFactory.OnTransitioningToMainThread(JoinableTask).) |
![]() |
PostToUnderlyingSynchronizationContext | Posts a message to the specified underlying SynchronizationContext for processing when the main thread is freely available. (Overrides JoinableTaskFactory.PostToUnderlyingSynchronizationContext(SendOrPostCallback, Object).) |
![]() |
Run(Func<Task>) | Runs the specified asynchronous method. (Inherited from JoinableTaskFactory.) |
![]() |
Run<T>(Func<Task<T>>) | Runs the specified asynchronous method. (Inherited from JoinableTaskFactory.) |
![]() |
RunAsync(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.) |
![]() |
RunAsync<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.) |
![]() |
SwitchToMainThreadAsync | 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.) |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() |
WaitSynchronously | Synchronously blocks the calling thread for the completion of the specified task. (Overrides JoinableTaskFactory.WaitSynchronously(Task).) |
![]() |
WaitSynchronouslyCore | Synchronously blocks the calling thread for the completion of the specified task. (Inherited from JoinableTaskFactory.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
.gif)
.gif)
.gif)
.gif)