Επεξεργασία

Κοινή χρήση μέσω


InstancePersistenceContext.BeginExecute Method

Definition

Begins executing a persistence command asynchronously.

public:
 IAsyncResult ^ BeginExecute(System::Runtime::DurableInstancing::InstancePersistenceCommand ^ command, TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginExecute (System.Runtime.DurableInstancing.InstancePersistenceCommand command, TimeSpan timeout, AsyncCallback callback, object state);
member this.BeginExecute : System.Runtime.DurableInstancing.InstancePersistenceCommand * TimeSpan * AsyncCallback * obj -> IAsyncResult
Public Function BeginExecute (command As InstancePersistenceCommand, timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

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