IDispatcher Interface |
Defines the semantics of a facility that executes actions synchronously or asynchronously,
possibly on a different thread.
Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 5.0.55.0 (5.0.55.0)

C#
public interface IDispatcher
The IDispatcher type exposes the following members.

Name | Description | |
---|---|---|
![]() | IsInvokeSupported |
Determines whether the Invoke(SendOrPostCallback, Object) method is supported.
|
![]() | SynchronizationContext |
Gets the SynchronizationContext associated with the current dispatcher.
|

Name | Description | |
---|---|---|
![]() | BeginInvoke |
Queues an action for asynchronous execution.
|
![]() | CheckAccess |
Determines whether the current thread has access to the current dispatcher.
|
![]() | Invoke |
Executes an action synchronously.
|

Use the DispatcherFactory class to get implementations of this interface. You can also create a custom implementation.
