JoinableTaskContext Class
A common context within which joinable tasks may be created and interact to avoid deadlocks.
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
| Name | Description | |
|---|---|---|
![]() | JoinableTaskContext(Thread, SynchronizationContext) | Initializes a new instance of the JoinableTaskContext. |
| Name | Description | |
|---|---|---|
![]() | Factory | Gets the factory which creates joinable tasks that do not belong to a joinable task collection. |
![]() | IsWithinJoinableTask | Determines whether the caller is currently running in the context of a joinable task. |
![]() | MainThread | Gets the main thread that can be shared by tasks created by this context. |
| Name | Description | |
|---|---|---|
![]() | CreateCollection() | Creates a collection for in-flight joinable tasks. |
![]() | CreateDefaultFactory() | Creates a factory without a JoinableTaskCollection. |
![]() | CreateFactory(JoinableTaskCollection) | Creates a joinable task factory that automatically adds all created tasks to a collection that can be jointly joined. |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | IsMainThreadBlocked() | Determines whether the main thread is blocked for the caller's completion. |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | OnHangDetected(TimeSpan, Int32, Guid) | Called when a hang is suspected to have occurred involving the main thread. |
![]() | SuppressRelevance() | Conceals any ticket to the Main thread until the returned value is disposed. |
![]() | ToString() | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IHangReportContributor.GetHangReport() | Contributes data for a hang report. |
This type is thread-safe for all members.




