Share via


IServicePartitionResolver.ResolveAsync Method

Definition

Overloads

ResolveAsync(ResolvedServicePartition, TimeSpan, TimeSpan, CancellationToken)

Re-resolves a previously resolved partition of the specified service with specified back-off/retry settings on retry-able errors. This method overload is used in cases where the client knows that the resolved service partition that it has is no longer valid.

ResolveAsync(Uri, ServicePartitionKey, TimeSpan, TimeSpan, CancellationToken)

Resolves a partition of the specified service with specified back-off/retry settings on retry-able errors.

ResolveAsync(ResolvedServicePartition, TimeSpan, TimeSpan, CancellationToken)

Re-resolves a previously resolved partition of the specified service with specified back-off/retry settings on retry-able errors. This method overload is used in cases where the client knows that the resolved service partition that it has is no longer valid.

public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveAsync (System.Fabric.ResolvedServicePartition previousRsp, TimeSpan resolveTimeoutPerTry, TimeSpan maxRetryBackoffInterval, System.Threading.CancellationToken cancellationToken);
abstract member ResolveAsync : System.Fabric.ResolvedServicePartition * TimeSpan * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition>
Public Function ResolveAsync (previousRsp As ResolvedServicePartition, resolveTimeoutPerTry As TimeSpan, maxRetryBackoffInterval As TimeSpan, cancellationToken As CancellationToken) As Task(Of ResolvedServicePartition)

Parameters

previousRsp
ResolvedServicePartition

The resolved service partition that the client got from the earlier invocation of the ResolveAsync() method.

resolveTimeoutPerTry
TimeSpan

The timeout per resolve try.

maxRetryBackoffInterval
TimeSpan

The interval to back-off before retrying the resolution after a failure due to retry-able exception.

cancellationToken
CancellationToken

The CancellationToken that this operation is observing. It is used to notify the operation that it should be canceled.

Returns

A Task that represents outstanding service resolution operation. The result from the Task is the ResolvedServicePartition object, that contains the information about the resolved service partition including the service endpoints.

Applies to

ResolveAsync(Uri, ServicePartitionKey, TimeSpan, TimeSpan, CancellationToken)

Resolves a partition of the specified service with specified back-off/retry settings on retry-able errors.

public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveAsync (Uri serviceUri, Microsoft.ServiceFabric.Services.Client.ServicePartitionKey partitionKey, TimeSpan resolveTimeoutPerTry, TimeSpan maxRetryBackoffInterval, System.Threading.CancellationToken cancellationToken);
abstract member ResolveAsync : Uri * Microsoft.ServiceFabric.Services.Client.ServicePartitionKey * TimeSpan * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition>
Public Function ResolveAsync (serviceUri As Uri, partitionKey As ServicePartitionKey, resolveTimeoutPerTry As TimeSpan, maxRetryBackoffInterval As TimeSpan, cancellationToken As CancellationToken) As Task(Of ResolvedServicePartition)

Parameters

serviceUri
Uri

Name of the service instance to resolve.

partitionKey
ServicePartitionKey

Key that determines the target partition of the service instance. The partitioning scheme specified in the key should match the partitioning scheme used to create the service instance.

resolveTimeoutPerTry
TimeSpan

The timeout per resolve try.

maxRetryBackoffInterval
TimeSpan

The interval to back-off before retrying the resolution after a failure due to retry-able exception.

cancellationToken
CancellationToken

The CancellationToken that this operation is observing. It is used to notify the operation that it should be canceled.

Returns

A Task that represents the outstanding service resolution operation. The result from the Task is the ResolvedServicePartition object, that contains the information about the resolved service partition including the service endpoints.

Applies to