PostSharpAPI ReferencePost­Sharp.​Patterns.​ThreadingDispatcher­FactoryGet­Dispatcher­For­Windows­Dispatcher
Open sandboxFocus

DispatcherFactory.GetDispatcherForWindowsDispatcher Method

GetDispatcherForWindowsDispatcher(Object)

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

Declaration
public static IDispatcher GetDispatcherForWindowsDispatcher(object dispatcher)
Parameters
Type Name Description
System.Object dispatcher

An instance of the System.Windows.Threading.Dispatcher class.

Returns
Type Description
IDispatcher

An implementation of IDispatcher wrapping the functionality of dispatcher.

Remarks

Throws PlatformNotSupportedException on platforms that don't support WPF.