Επεξεργασία

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


InstanceStore.BeginExecute Method

Definition

Asynchronously executes persistence commands such as LoadWorkflowCommand and SaveWorkflowCommand.

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

Parameters

handle
InstanceHandle

An instance handle.

command
InstancePersistenceCommand

The command to be executed.

timeout
TimeSpan

The timeout value for the command execution.

callback
AsyncCallback

The asynchronous callback delegate that receives notification of the completion of the asynchronous operation.

state
Object

The state information.

Returns

The state of the asynchronous operation.

Remarks

A host calls the BeginExecute method to execute a persistence command against an instance handle asynchronously. The host obtains the instance handle by invoking the CreateInstanceHandle method. The instance handle may be bound to entities that represent the context and subject of the command, such as an instance, instance owner, or instance lock. Only one command may be issued against an instance handle at a time.

Applies to