DispatchedAttribute(bool)
Initializes a new DispatchedAttribute.
Declaration
public DispatchedAttribute(bool fireAndForget)Parameters
| Type | Name | Description |
|---|---|---|
| bool | fireAndForget |
|
Remarks
Method that have a non-void return type or ref or out parameters
cannot be dispatched asynchronously.
DispatchedAttribute()
Initializes a new DispatchedAttribute in blocking mode.
Declaration
public DispatchedAttribute()DispatchedAttribute(DispatchedExecutionMode)
Initializes a new DispatchedAttribute and specifies whether the execution mode should be blocking or non-blocking.
Declaration
public DispatchedAttribute(DispatchedExecutionMode executionMode)Parameters
| Type | Name | Description |
|---|---|---|
| DispatchedExecutionMode | executionMode | A value determining whether and when the caller should wait for the called method to complete. |
Remarks
Methods that have a non-void return type or ref or out parameters
cannot be dispatched in non-blocking mode.
DispatchedAttribute(PortableFormatterConstructorContext)
Declaration
protected DispatchedAttribute(PortableFormatterConstructorContext context)Parameters
| Type | Name | Description |
|---|---|---|
| PortableFormatterConstructorContext | context |