PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / Dispatched­Attribute Class / Dispatched­Attribute Constructor / Dispatched­Attribute Constructor (Dispatched­Execution­Mode)

DispatchedAttribute Constructor (DispatchedExecutionMode)

Initializes a new DispatchedAttribute and specifies whether the execution mode should be blocking or non-blocking.

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 6.9.7.0 (6.9.7.0)
Syntax
C#
public DispatchedAttribute(
	DispatchedExecutionMode executionMode
)

Parameters

executionMode
Type: PostSharp.Patterns.Threading.DispatchedExecutionMode
A value determining whether and when the caller should wait for the called method to complete.
Remarks

Methods that have a non-void return type or ref or out parameters cannot be dispatched in non-blocking mode.

See Also