Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / Dispatched­Attribute Class / Dispatched­Attribute Properties / Dispatched­Attribute.​Is­Async Property

DispatchedAttribute.IsAsync Property

Determines whether the target method is invoked asynchronously or asynchronously.

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 5.0.38.0 (5.0.38.0)
Syntax
C#
public bool IsAsync { get; set; }

Property Value

Type: 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