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

DispatchedAttribute Constructor

Initializes a new DispatchedAttribute.

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 5.0.29.0 (5.0.29.0)
Syntax
C#
public DispatchedAttribute(
	bool isAsync = false
)

Parameters

isAsync (Optional)
Type: System.Boolean
true if the target method must be invoked asynchronously, or false if the target method must be invoked synchronously, that is, if the caller must wait for the dispatched method to complete.
Remarks

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

See Also