PostSharpAPI ReferencePost­Sharp.​Patterns.​ThreadingDispatcher­Factory
Open sandboxFocus

DispatcherFactory Class

Provides implementations of the IDispatcher interface.

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

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 System.Threading.SynchronizationContext or a WPF Dispatcher.

GetDispatcherForSynchronizationContext(SynchronizationContext)

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

GetDispatcherForWindowsDispatcher(Object)

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