Open sandboxFocus

Class DispatcherFactory

Provides implementations of the IDispatcher interface.

Inheritance
DispatcherFactory
Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Threading.dll
Syntax
public static class DispatcherFactory

Methods

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(SynchronizationContext)

Gets an implementation of the IDispatcher interface for a given SynchronizationContext.

GetDispatcherForWindowsDispatcher(object)

Gets an implementation of the IDispatcher interface for a given instance of the System.Windows.Threading.Dispatcher class.