DispatcherFactory Class |
Provides implementations of the IDispatcher interface.
Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 6.5.21.0 (6.5.21.0)
C#
public static class DispatcherFactory
The DispatcherFactory type exposes the following members.
Name | Description | |
---|---|---|
GetDispatcherForCurrentContext |
Gets an implementation of the IDispatcher interface that is suitable for dispatching
to the current context. This method requires that the current thread is associated to
a SynchronizationContext or a WPF Dispatcher.
| |
GetDispatcherForSynchronizationContext |
Gets an implementation of the IDispatcher interface for a given SynchronizationContext.
| |
GetDispatcherForWindowsDispatcher |
Gets an implementation of the IDispatcher interface for a given
instance of the System.Windows.Threading.Dispatcher class.
|