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

ActorDispatcher.Invoke Method

Executes an action synchronously.

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public void Invoke(
	SendOrPostCallback action,
	Object state
)

Parameters

action
Type: System.Threading.SendOrPostCallback
Action to be executed.
state
Type: System.Object
Parameter passed to action.

Implements

IDispatcher.Invoke(SendOrPostCallback, Object)
See Also