PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / Actor­Dispatcher Class / Actor­Dispatcher Methods

ActorDispatcher Methods

The ActorDispatcher type exposes the following members.

Methods
  NameDescription
Public methodBeginInvoke
Queues an action for asynchronous execution.
Public methodCheckAccess
Determines whether the current thread has access to the current dispatcher.
Public methodInvoke
Executes an action synchronously.
Protected methodMustYield
Determines whether the ProcessQueue() method should interrupt the processing of the message queue before the queue is empty.
Protected methodOnQueueEmpty
Method invoked when the queue becomes empty. The default implementation does not do anything.
Protected methodProcessQueue
Processes the message queue synchronously.
Protected methodScheduleProcessQueue
Schedules the execution of the ProcessQueue(), typically on a worker thread or in the ThreadPool. The default implementation uses the ThreadPool on platforms that have a thread pool, otherwise it schedules a new Task.
See Also