This is the online documentation for PostSharp 5.0.
Download PDF or CHM. Go to v4.3 or v5.0

IActorDispatcher Interface

Augments the IDispatcher interface with an Initialize() method, which is invoked after the actor constructor has been invoked.

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 5.0.33.0 (5.0.33.0)
Syntax
C#
public interface IActorDispatcher : IDispatcher

The IActorDispatcher type exposes the following members.

Properties
  NameDescription
Public propertyIsInvokeSupported
Determines whether the Invoke(SendOrPostCallback, Object) method is supported.
(Inherited from IDispatcher.)
Public propertySynchronizationContext
Gets the SynchronizationContext associated with the current dispatcher.
(Inherited from IDispatcher.)
Top
Methods
  NameDescription
Public methodBeginInvoke
Queues an action for asynchronous execution.
(Inherited from IDispatcher.)
Public methodCheckAccess
Determines whether the current thread has access to the current dispatcher.
(Inherited from IDispatcher.)
Public methodInitialize
Indicates that the controller should start enforcing access. Before this method is invoked, the CheckAccess() method should always return true, allowing any access to the object. This mechanism allows the actor constructor to have full access on itself.
Public methodInvoke
Executes an action synchronously.
(Inherited from IDispatcher.)
Top
See Also