InstancePersistenceContext.BeginExecute 方法

定義

開始非同步執行持久化指令。

public:
 IAsyncResult ^ BeginExecute(System::Runtime::DurableInstancing::InstancePersistenceCommand ^ command, TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginExecute(System.Runtime.DurableInstancing.InstancePersistenceCommand command, TimeSpan timeout, AsyncCallback callback, object state);
member this.BeginExecute : System.Runtime.DurableInstancing.InstancePersistenceCommand * TimeSpan * AsyncCallback * obj -> IAsyncResult
Public Function BeginExecute (command As InstancePersistenceCommand, timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

參數

command
InstancePersistenceCommand

執行的是持久性指令。

timeout
TimeSpan

操作的逾時值。

callback
AsyncCallback

接收非同步指令通知的代理,該代理接收請求操作完成。

state
Object

州政府資訊。

傳回

非同步操作的狀態。

備註

持久化提供者可以使用此方法作為指令的一部分執行子指令。 子指令將使用 BeginTryCommand 執行,類似傳給 InstanceStore.BeginExecute 的指令。 指令可以巢狀,但一個指令一次不能執行超過一個子指令。

適用於