InstanceStore.BeginExecute Methode

Definitie

Asynchroon voert persistentieopdrachten zoals LoadWorkflowCommand en 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

Parameters

handle
InstanceHandle

Een exemplaarhandgreep.

command
InstancePersistenceCommand

De opdracht die moet worden uitgevoerd.

timeout
TimeSpan

De time-outwaarde voor de uitvoering van de opdracht.

callback
AsyncCallback

De asynchrone callback-gemachtigde die een melding ontvangt van de voltooiing van de asynchrone bewerking.

state
Object

De statusinformatie.

Retouren

De status van de asynchrone bewerking.

Opmerkingen

Een host roept de BeginExecute methode aan om een persistentieopdracht uit te voeren op basis van een exemplaar asynchroon. De host verkrijgt de instantiehandler door de CreateInstanceHandle methode aan te roepen. De instantiehandgreep kan zijn gebonden aan entiteiten die de context en het onderwerp van de opdracht vertegenwoordigen, zoals een exemplaar, exemplaareigenaar of exemplaarvergrendeling. Er kan slechts één opdracht tegelijk worden uitgegeven aan de hand van een exemplaarhandgreep.

Van toepassing op