PostSharpAPI ReferencePost­Sharp.​Patterns.​ThreadingDispatched­AttributeExecution­Mode
Open sandboxFocus

DispatchedAttribute.ExecutionMode Property

ExecutionMode

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.

Declaration
public DispatchedExecutionMode ExecutionMode { get; set; }
Property Value
Type Description
DispatchedExecutionMode
Remarks

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