PostSharp 4.3 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / Dispatched­Attribute Class / Dispatched­Attribute Constructor
DispatchedAttribute Constructor
Initializes a new DispatchedAttribute.

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


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.

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

See Also