Open sandboxFocus

Property FireAndForget

FireAndForget

Gets or sets a value indicating whether the caller continues immediately after enqueuing the call to the target method, without waiting for the method to complete. This property applies when the aspect is applied to a void non-async method. The default value is false.

Declaration
[Obsolete("Set ExecutionMode to NonBlocking instead.")]
public bool FireAndForget { get; set; }
Property Value
Type Description
bool

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

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