This is the online documentation for PostSharp 5.0.
Download PDF or CHM. Go to v4.3 or v5.0

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.33.0 (5.0.33.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.
Top
See Also