InstanceStore::BeginExecute Method (InstanceHandle^, InstancePersistenceCommand^, TimeSpan, AsyncCallback^, Object^)
Asynchronously executes persistence commands such as LoadWorkflowCommand and SaveWorkflowCommand.
Assembly: System.Runtime.DurableInstancing (in System.Runtime.DurableInstancing.dll)
public:
IAsyncResult^ BeginExecute(
InstanceHandle^ handle,
InstancePersistenceCommand^ command,
TimeSpan timeout,
AsyncCallback^ callback,
Object^ state
)
Parameters
- handle
-
Type:
System.Runtime.DurableInstancing::InstanceHandle^
An instance handle.
- command
-
Type:
System.Runtime.DurableInstancing::InstancePersistenceCommand^
The command to be executed.
- timeout
-
Type:
System::TimeSpan
The timeout value for the command execution.
- callback
-
Type:
System::AsyncCallback^
The asynchronous callback delegate that receives notification of the completion of the asynchronous operation.
- state
-
Type:
System::Object^
The state information.
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.
Available since 4.0