InstancePersistenceContext.Execute Method

Definition

Executes a persistence command.

public:
 void Execute(System::Runtime::DurableInstancing::InstancePersistenceCommand ^ command, TimeSpan timeout);
public void Execute (System.Runtime.DurableInstancing.InstancePersistenceCommand command, TimeSpan timeout);
member this.Execute : System.Runtime.DurableInstancing.InstancePersistenceCommand * TimeSpan -> unit
Public Sub Execute (command As InstancePersistenceCommand, timeout As TimeSpan)

Parameters

command
InstancePersistenceCommand

The persistence command to be executed.

timeout
TimeSpan

The time-out value for the 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 TryCommand, similar to commands passed to InstanceStore.Execute. Commands can be nested, but a command must not execute more than one sub-command at a time.

Applies to