InstanceStore.BeginExecute(InstanceHandle, InstancePersistenceCommand, TimeSpan, AsyncCallback, Object) Método
Definição
Executa de forma assíncrona comandos de persistência como LoadWorkflowCommand e SaveWorkflowCommand.Asynchronously executes persistence commands such as LoadWorkflowCommand and 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
Parâmetros
- handle
- InstanceHandle
Um identificador de instância.An instance handle.
- command
- InstancePersistenceCommand
O comando a ser executado.The command to be executed.
- timeout
- TimeSpan
O valor de tempo limite para a execução do comando.The timeout value for the command execution.
- callback
- AsyncCallback
O representante de retorno de chamada assíncrono que recebe a notificação da conclusão da operação assíncrona.The asynchronous callback delegate that receives notification of the completion of the asynchronous operation.
- state
- Object
As informações de estado.The state information.
Retornos
O status da operação assíncrona.The state of the asynchronous operation.
Comentários
Um host chama o BeginExecute método para executar um comando de persistência em um identificador de instância de forma assíncrona.A host calls the BeginExecute method to execute a persistence command against an instance handle asynchronously. O host obtém o identificador de instância invocando o CreateInstanceHandle método.The host obtains the instance handle by invoking the CreateInstanceHandle method. O identificador de instância pode ser associado a entidades que representam o contexto e o assunto do comando, como uma instância, um proprietário da instância ou um bloqueio de instância.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. Somente um comando pode ser emitido em um identificador de instância por vez.Only one command may be issued against an instance handle at a time.