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
System.TimeSpan

The timeout per resolve try.

maxRetryBackoffInterval
System.TimeSpan

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

cancellationToken
System.Threading.CancellationToken

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

Returns

System.Threading.Tasks.Task<ResolvedServicePartition>

A System.Threading.Tasks.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
System.Uri

Name of the service instance to resolve.

partitionKey
ServicePartitionKey

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

resolveTimeoutPerTry
System.TimeSpan

The timeout per resolve try.

maxRetryBackoffInterval
System.TimeSpan

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

cancellationToken
System.Threading.CancellationToken

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

Returns

System.Threading.Tasks.Task<ResolvedServicePartition>

A System.Threading.Tasks.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