Execute Method

InstanceStore.Execute Method

Executes a persistence command synchronously. Examples of persistence commands are: LoadWorkflowCommand and SaveWorkflowCommand.

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

public InstanceView Execute(
	InstanceHandle handle,
	InstancePersistenceCommand command,
	TimeSpan timeout


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 operation.

Return Value

Type: System.Runtime.DurableInstancing.InstanceView
An InstanceView object representing the known state of the instance after the successful completion of the command. If Execute was called under a transaction, this state may include uncommitted data. Once the transaction is committed successfully, the data in the InstanceView object can be considered committed

A host calls the Execute(InstanceHandle, InstancePersistenceCommand, TimeSpan) method to execute a persistence command against an instance handle, which the host obtains 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

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

© 2016 Microsoft