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

Interface IDispatcher

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

Properties

Name Description
IsInvokeSupported

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

SynchronizationContext

Gets the 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.