JoinableTaskContext Constructor (Thread^, SynchronizationContext^)

 

Initializes a new instance of the JoinableTaskContext.

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

public:
JoinableTaskContext(
	Thread^ mainThread = null,
	SynchronizationContext^ synchronizationContext = null
)

Parameters

mainThread
Type: System.Threading::Thread^

The thread to switch to in SwitchToMainThreadAsync.

synchronizationContext
Type: System.Threading::SynchronizationContext^

The synchronization context to use to switch to the main thread.

Return to top
Show: