DispatchedAttribute Constructor (Boolean) |
Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 2023.0.3.0 (2023.0.3.0)
public DispatchedAttribute( bool fireAndForget )
Parameters
- fireAndForget
- Type: System.Boolean
true if the target method must be invoked in non-blocking mode (equivalent to NonBlocking), or false if the target method must be invoked in blocking mode, that is, if the caller must wait for the dispatched method to complete (equivalent to Blocking).
Method that have a non-void return type or ref or out parameters cannot be dispatched asynchronously.