PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / Dispatched­Attribute Class / Dispatched­Attribute Properties / Dispatched­Attribute.​Fire­And­Forget Property

DispatchedAttribute.FireAndForget Property

Note: This API is now obsolete.

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 false.

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: (
[ObsoleteAttribute("Set ExecutionMode to NonBlocking instead.")]
public bool FireAndForget { 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.

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

See Also