PostSharp6.6//API Reference/Post­Sharp.​Patterns.​Threading Namespace/Dispatcher­Factory Class/Dispatcher­Factory Methods

DispatcherFactory Methods

The DispatcherFactory type exposes the following members.

Methods
  NameDescription
Public methodStatic memberGetDispatcherForCurrentContext
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.
Public methodStatic memberGetDispatcherForSynchronizationContext
Gets an implementation of the IDispatcher interface for a given SynchronizationContext.
Public methodStatic memberGetDispatcherForWindowsDispatcher
Gets an implementation of the IDispatcher interface for a given instance of the System.Windows.Threading.Dispatcher class.
See Also