InstanceStore.BeginExecute Méthode

Définition

Exécute de façon asynchrone des commandes de persistance telles que LoadWorkflowCommand et 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

Paramètres

handle
InstanceHandle

Handle d'instance.

command
InstancePersistenceCommand

Commande à exécuter.

timeout
TimeSpan

Valeur de délai d'attente pour l'exécution de la commande.

callback
AsyncCallback

Délégué de rappel asynchrone qui reçoit la notification de la fin de l'opération asynchrone.

state
Object

Informations d'état.

Retours

État de l'opération asynchrone.

Remarques

Un hôte appelle la méthode BeginExecute pour exécuter de façon asynchrone une commande de persistance sur un handle d'instance. L'hôte obtient le handle d'instance en appelant la méthode CreateInstanceHandle. Le handle d'instance peut être lié à des entités qui représentent le contexte et l' objet de la commande, notamment une instance, un propriétaire d'instance ou un verrou d'instance. Une seule commande à la fois peut être émise sur un handle d'instance.

S’applique à