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

DispatcherFactory Class

Provides implementations of the IDispatcher interface.

Inheritance
System.Object
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 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.