你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DurableOrchestrationContext.WaitForExternalEvent 方法

定义

重载

WaitForExternalEvent<T>(String)
WaitForExternalEvent<T>(String, TimeSpan)
WaitForExternalEvent<T>(String, TimeSpan, T)

WaitForExternalEvent<T>(String)

Source:
DurableOrchestrationContext.cs
public override System.Threading.Tasks.Task<T> WaitForExternalEvent<T> (string name);
override this.WaitForExternalEvent : string -> System.Threading.Tasks.Task<'T>
Public Overrides Function WaitForExternalEvent(Of T) (name As String) As Task(Of T)

类型参数

T

参数

name
String

返回

Task<T>

适用于

WaitForExternalEvent<T>(String, TimeSpan)

Source:
DurableOrchestrationContext.cs
public override System.Threading.Tasks.Task<T> WaitForExternalEvent<T> (string name, TimeSpan timeout);
override this.WaitForExternalEvent : string * TimeSpan -> System.Threading.Tasks.Task<'T>
Public Overrides Function WaitForExternalEvent(Of T) (name As String, timeout As TimeSpan) As Task(Of T)

类型参数

T

参数

name
String
timeout
TimeSpan

返回

Task<T>

适用于

WaitForExternalEvent<T>(String, TimeSpan, T)

Source:
DurableOrchestrationContext.cs
public override System.Threading.Tasks.Task<T> WaitForExternalEvent<T> (string name, TimeSpan timeout, T defaultValue);
override this.WaitForExternalEvent : string * TimeSpan * 'T -> System.Threading.Tasks.Task<'T>
Public Overrides Function WaitForExternalEvent(Of T) (name As String, timeout As TimeSpan, defaultValue As T) As Task(Of T)

类型参数

T

参数

name
String
timeout
TimeSpan
defaultValue
T

返回

Task<T>

适用于