Open sandboxFocus

Constructor DispatchedAttribute

DispatchedAttribute(bool)

Initializes a new DispatchedAttribute.

Declaration
public DispatchedAttribute(bool fireAndForget)
Parameters
Type Name Description
bool fireAndForget

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

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