PostSharpAPI ReferencePost­Sharp.​Patterns.​ThreadingIDispatcher
Open sandboxFocus

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.dll
Syntax
public interface IDispatcher
Remarks

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

Properties

Name Description
IsInvokeSupported

Determines whether the Invoke(SendOrPostCallback, Object) method is supported.

SynchronizationContext

Gets the System.Threading.SynchronizationContext associated with the current dispatcher.

Methods

Name Description
BeginInvoke(SendOrPostCallback, Object)

Queues an action for asynchronous execution.

CheckAccess()

Determines whether the current thread has access to the current dispatcher.

Invoke(SendOrPostCallback, Object)

Executes an action synchronously.

See Also