DiscoveryClient.ResolveTaskAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Begins an asynchronous resolve task operation.
Overloads
ResolveTaskAsync(ResolveCriteria) |
Begins an asynchronous resolve task operation with the specified criteria. |
ResolveTaskAsync(ResolveCriteria, CancellationToken) |
Begins an asynchronous resolve task operation with the specified criteria and cancellation token. |
ResolveTaskAsync(ResolveCriteria)
Begins an asynchronous resolve task operation with the specified criteria.
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)
Parameters
- criteria
- ResolveCriteria
The criteria for matching a service endpoint.
Returns
An asynchronous resolve task operation.
Applies to
ResolveTaskAsync(ResolveCriteria, CancellationToken)
Begins an asynchronous resolve task operation with the specified criteria and cancellation token.
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)
Parameters
- criteria
- ResolveCriteria
The criteria for matching a service endpoint.
- cancellationToken
- CancellationToken
The cancellation token for notification propagation.
Returns
An asynchronous resolve task operation.
Exceptions
The cancellation token was canceled. This exception is stored into the returned task.