Open sandboxFocus

Class WpfDispatcherFactory

Provides access to WPF Dispatcher without direct dependency on WindowsBase.dll. Dispatcher will only be found if WindowsBase.dll is already loaded into the AppModel by another assembly.

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

Methods

Name Description
GetDispatcher(Dispatcher)

Returns the IDispatcher wrapper for a given WPF Dispatcher.

TryGetWpfDispatcher()

Returns the current WPF Dispatcher, or null if there is no current dispatcher.