InstancePersistenceContext.BeginExecute Method

Definition

Begins executing a persistence command asynchronously.

C#
public IAsyncResult BeginExecute(System.Runtime.DurableInstancing.InstancePersistenceCommand command, TimeSpan timeout, AsyncCallback callback, object state);

Parameters

command
InstancePersistenceCommand

The persistence command to be executed.

timeout
TimeSpan

The time-out value for the operation.

callback
AsyncCallback

The delegate that receives the notification of the asynchronous receive that a request operation completes.

state
Object

The state information.

Returns

The status of an asynchronous operation.

Remarks

A persistence provider can use this method to execute sub-commands as part of a command. The sub-command will be executed using BeginTryCommand, similar to commands passed to InstanceStore.BeginExecute. Commands can be nested, but a command must not execute more than one sub-command at a time.

Applies to

Táirge Leaganacha
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1