DispatchedAttribute Constructor (DispatchedExecutionMode) |
Initializes a new DispatchedAttribute and specifies whether the execution
mode should be blocking or non-blocking.
Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public DispatchedAttribute( DispatchedExecutionMode executionMode )
Parameters
- executionMode
- Type: PostSharp.Patterns.Threading.DispatchedExecutionMode
A value determining whether and when the caller should wait for the called method to complete.
Methods that have a non-void return type or ref or out parameters cannot be dispatched in non-blocking mode.