InstanceStore.BeginExecute Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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’expiration de l’exécution de la commande.
- callback
- AsyncCallback
Délégué de rappel asynchrone qui reçoit la notification de l’achèvement de l’opération asynchrone.
- state
- Object
Informations d’état.
Retours
État de l’opération asynchrone.
Remarques
Un hôte appelle la BeginExecute méthode pour exécuter une commande de persistance sur un handle d’instance de manière asynchrone. L’hôte obtient le handle d’instance en appelant la CreateInstanceHandle méthode. Le handle d’instance peut être lié à des entités qui représentent le contexte et l’objet de la commande, comme une instance, un propriétaire d’instance ou un verrou d’instance. Une seule commande peut être émise sur un handle d’instance à la fois.