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

适用于