InstanceStore.WaitForEvents(InstanceHandle, TimeSpan) 方法

定义

工作流主机通常会调用此方法来等待事件终止。

public:
 System::Collections::Generic::List<System::Runtime::DurableInstancing::InstancePersistenceEvent ^> ^ WaitForEvents(System::Runtime::DurableInstancing::InstanceHandle ^ handle, TimeSpan timeout);
public System.Collections.Generic.List<System.Runtime.DurableInstancing.InstancePersistenceEvent> WaitForEvents (System.Runtime.DurableInstancing.InstanceHandle handle, TimeSpan timeout);
member this.WaitForEvents : System.Runtime.DurableInstancing.InstanceHandle * TimeSpan -> System.Collections.Generic.List<System.Runtime.DurableInstancing.InstancePersistenceEvent>
Public Function WaitForEvents (handle As InstanceHandle, timeout As TimeSpan) As List(Of InstancePersistenceEvent)

参数

handle
InstanceHandle

绑定到此事件的实例句柄。

timeout
TimeSpan

在等待操作超时之后的时间跨度。

返回

InstancePersistenceEvent 对象的列表。

适用于