PostSharp6.7//API Reference/Post­Sharp.​Patterns.​Threading Namespace/Dispatched­Attribute Class/Dispatched­Attribute Constructor/Dispatched­Attribute Constructor (Boolean)

DispatchedAttribute Constructor (Boolean)

Initializes a new DispatchedAttribute.

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 6.7.10.0 (6.7.10.0)
Syntax
C#
public DispatchedAttribute(
	bool fireAndForget
)

Parameters

fireAndForget
Type: System.Boolean
true if the target method must be invoked in non-blocking mode (equivalent to NonBlocking), or false if the target method must be invoked in blocking mode, that is, if the caller must wait for the dispatched method to complete (equivalent to Blocking).
Remarks

Method that have a non-void return type or ref or out parameters cannot be dispatched asynchronously.

See Also