InstanceStore.BeginExecute 메서드

정의

LoadWorkflowCommandSaveWorkflowCommand와 같은 지속성 명령을 비동기적으로 실행합니다.

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

매개 변수

handle
InstanceHandle

인스턴스 핸들입니다.

command
InstancePersistenceCommand

실행할 명령입니다.

timeout
TimeSpan

명령 실행에 대한 시간 제한 값입니다.

callback
AsyncCallback

비동기 작업의 완료에 대한 알림을 수신하는 비동기 콜백 대리자입니다.

state
Object

상태 정보입니다.

반환

비동기 작업의 상태입니다.

설명

호스트는 메서드를 BeginExecute 호출하여 instance 핸들에 대해 지속성 명령을 비동기적으로 실행합니다. 호스트는 메서드를 호출하여 instance 핸들을 CreateInstanceHandle 가져옵니다. instance 핸들은 명령의 컨텍스트 및 제목(예: instance, instance 소유자 또는 instance 잠금)을 나타내는 엔터티에 바인딩될 수 있습니다. instance 핸들에 대해 한 번에 하나의 명령만 실행할 수 있습니다.

적용 대상