DiscoveryClient.ResolveTaskAsync 方法

定义

开始异步解析任务操作。

重载

ResolveTaskAsync(ResolveCriteria)

使用指定标准开始异步解析任务操作。

ResolveTaskAsync(ResolveCriteria, CancellationToken)

使用指定的标准和取消令牌,开始异步解析任务操作。

ResolveTaskAsync(ResolveCriteria)

使用指定标准开始异步解析任务操作。

public:
 System::Threading::Tasks::Task<System::ServiceModel::Discovery::ResolveResponse ^> ^ ResolveTaskAsync(System::ServiceModel::Discovery::ResolveCriteria ^ criteria);
public System.Threading.Tasks.Task<System.ServiceModel.Discovery.ResolveResponse> ResolveTaskAsync (System.ServiceModel.Discovery.ResolveCriteria criteria);
member this.ResolveTaskAsync : System.ServiceModel.Discovery.ResolveCriteria -> System.Threading.Tasks.Task<System.ServiceModel.Discovery.ResolveResponse>
Public Function ResolveTaskAsync (criteria As ResolveCriteria) As Task(Of ResolveResponse)

参数

criteria
ResolveCriteria

与服务终结点匹配的条件。

返回

异步解析任务操作。

适用于

ResolveTaskAsync(ResolveCriteria, CancellationToken)

使用指定的标准和取消令牌,开始异步解析任务操作。

public:
 System::Threading::Tasks::Task<System::ServiceModel::Discovery::ResolveResponse ^> ^ ResolveTaskAsync(System::ServiceModel::Discovery::ResolveCriteria ^ criteria, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.ServiceModel.Discovery.ResolveResponse> ResolveTaskAsync (System.ServiceModel.Discovery.ResolveCriteria criteria, System.Threading.CancellationToken cancellationToken);
member this.ResolveTaskAsync : System.ServiceModel.Discovery.ResolveCriteria * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ServiceModel.Discovery.ResolveResponse>
Public Function ResolveTaskAsync (criteria As ResolveCriteria, cancellationToken As CancellationToken) As Task(Of ResolveResponse)

参数

criteria
ResolveCriteria

与服务终结点匹配的条件。

cancellationToken
CancellationToken

通知传播的取消标记。

返回

异步解析任务操作。

例外

取消令牌已取消。 此异常存储在返回的任务中。

适用于