PostSharp 6.8 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / Dispatched­Attribute Class / Dispatched­Attribute Properties / Dispatched­Attribute.​Execution­Mode Property

DispatchedAttribute.ExecutionMode Property

When the aspect is applied to a void non-async method, this property determines whether the caller will continue immediately after enqueuing the call to the target method, without waiting for the method to complete. The default value is Blocking.

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 6.8.6.0 (6.8.6.0)
Syntax
C#
public DispatchedExecutionMode ExecutionMode { get; set; }

Property Value

Type: DispatchedExecutionMode
Remarks

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

See Also