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.

Применяется к