InstanceStore.BeginExecute Method (InstanceHandle, InstancePersistenceCommand, TimeSpan, AsyncCallback, Object)

.NET Framework (current version)

Asynchronously executes persistence commands such as LoadWorkflowCommand and SaveWorkflowCommand.

Namespace:   System.Runtime.DurableInstancing
Assembly:  System.Runtime.DurableInstancing (in System.Runtime.DurableInstancing.dll)

public IAsyncResult BeginExecute(
	InstanceHandle handle,
	InstancePersistenceCommand command,
	TimeSpan timeout,
	AsyncCallback callback,
	object state


Type: System.Runtime.DurableInstancing.InstanceHandle

An instance handle.

Type: System.Runtime.DurableInstancing.InstancePersistenceCommand

The command to be executed.

Type: System.TimeSpan

The timeout value for the command execution.

Type: System.AsyncCallback

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

Type: System.Object

The state information.

Return Value

Type: System.IAsyncResult

The state of the asynchronous operation.

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.

.NET Framework
Available since 4.0
Return to top