Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / Dispatcher­Factory Class

DispatcherFactory Class

Provides implementations of the IDispatcher interface.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Threading.DispatcherFactory

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 5.0.38.0 (5.0.38.0)
Syntax
C#
public static class DispatcherFactory

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