FabricClient.ServiceManagementClient.ResolveServicePartitionAsync Method

Definition

Overloads

ResolveServicePartitionAsync(Uri, TimeSpan, CancellationToken)

Queries the system for the set of endpoints the specified service partition is listening to.

ResolveServicePartitionAsync(Uri, String, ResolvedServicePartition, TimeSpan, CancellationToken)

Queries the system for the set of endpoints the specified service partition is listening to.

ResolveServicePartitionAsync(Uri, Int64, ResolvedServicePartition, TimeSpan, CancellationToken)

Queries the system for the set of endpoints the specified service partition is listening to.

ResolveServicePartitionAsync(Uri, String, TimeSpan, CancellationToken)

Queries the system for the set of endpoints the specified service partition is listening to.

ResolveServicePartitionAsync(Uri, String, ResolvedServicePartition, TimeSpan)

Queries the system for the set of endpoints the specified service partition is listening to.

ResolveServicePartitionAsync(Uri, Int64, TimeSpan, CancellationToken)

Queries the system for the set of endpoints the specified service partition is listening to.

ResolveServicePartitionAsync(Uri, Int64, ResolvedServicePartition, TimeSpan)

Queries the system for the set of endpoints the specified service partition is listening to.

ResolveServicePartitionAsync(Uri, ResolvedServicePartition, TimeSpan, CancellationToken)

Queries the system for the set of endpoints the specified service partition is listening to.

ResolveServicePartitionAsync(Uri, String, TimeSpan)

Queries the system for the set of endpoints the specified service partition is listening to.

ResolveServicePartitionAsync(Uri)

Queries the system for the set of endpoints the specified service partition is listening to.

ResolveServicePartitionAsync(Uri, Int64, TimeSpan)

Queries the system for the set of endpoints the specified service partition is listening to.

ResolveServicePartitionAsync(Uri, Int64, ResolvedServicePartition)

Queries the system for the set of endpoints the specified service partition is listening to.

ResolveServicePartitionAsync(Uri, ResolvedServicePartition, TimeSpan)

Queries the system for the set of endpoints the specified service partition is listening to.

ResolveServicePartitionAsync(Uri, TimeSpan)

Queries the system for the set of endpoints the specified service partition is listening to.

ResolveServicePartitionAsync(Uri, String)

Queries the system for the set of endpoints the specified service partition is listening to.

ResolveServicePartitionAsync(Uri, Int64)

Queries the system for the set of endpoints the specified service partition is listening to.

ResolveServicePartitionAsync(Uri, ResolvedServicePartition)

Queries the system for the set of endpoints the specified service partition is listening to.

ResolveServicePartitionAsync(Uri, String, ResolvedServicePartition)

Queries the system for the set of endpoints the specified service partition is listening to.

ResolveServicePartitionAsync(Uri, TimeSpan, CancellationToken)

Queries the system for the set of endpoints the specified service partition is listening to.

C#
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync(Uri serviceName, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);

Parameters

serviceName
Uri

The Service Fabric Name of the service instance.

timeout
TimeSpan

The maximum amount of time the system will allow this operation to continue before returning TimeoutException.

cancellationToken
CancellationToken

The CancellationToken that the operation is observing. It can be used to propagate notification that the operation should be canceled.

Returns

The set of endpoints the specified service partition is listening to.

Exceptions

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

Remarks

This is a complaint based resolution API.

This will return a ResolvedServicePartition for the specified service partition. When this overload is used, the system will always return the closest ResolvedServicePartition for the service partition.

Applies to

Azure SDK for .NET Latest and Azure SDK for .NET Legacy
Product Versions
Azure SDK for .NET Legacy, Latest

ResolveServicePartitionAsync(Uri, String, ResolvedServicePartition, TimeSpan, CancellationToken)

Queries the system for the set of endpoints the specified service partition is listening to.

C#
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync(Uri serviceName, string partitionKey, System.Fabric.ResolvedServicePartition previousResult, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);

Parameters

serviceName
Uri

The Service Fabric Name of the service instance.

partitionKey
String

The partition key for the service partition.

previousResult
ResolvedServicePartition

The previous ResolvedServicePartition for the service partition that the user believes is stale.

timeout
TimeSpan

The maximum amount of time the system will allow this operation to continue before returning TimeoutException.

cancellationToken
CancellationToken

The CancellationToken that the operation is observing. It can be used to propagate notification that the operation should be canceled.

Returns

The set of endpoints the specified service partition is listening to.

Exceptions

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

Remarks

This is a complaint based resolution API.

This will return a ResolvedServicePartition for the specified service partition. When this overload is used, the system will return a more up-to-date ResolvedServicePartition than the “previousResult” argument if it is available.

The PreviousResult argument enables the user to say ”This is the previous list of endpoints for this Service partition. I have tried the endpoints and I believe they are stale. Return me a more up to date version of this set.” In this case, the system will try to return a more up-to-date ResolvedServicePartition in the most efficient way possible. If no newer version can be found, a ResolvedServicePartition with the same version will be returned.ResolveServicePartition can be called without the previousResult argument or previousResult argument set to null. As no prerequisite is specified, the system will return the closest copy of the ResolvedServicePartition for the service partition.

Applies to

Azure SDK for .NET Latest and Azure SDK for .NET Legacy
Product Versions
Azure SDK for .NET Legacy, Latest

ResolveServicePartitionAsync(Uri, Int64, ResolvedServicePartition, TimeSpan, CancellationToken)

Queries the system for the set of endpoints the specified service partition is listening to.

C#
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync(Uri serviceName, long partitionKey, System.Fabric.ResolvedServicePartition previousResult, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);

Parameters

serviceName
Uri

The Service Fabric Name of the service instance.

partitionKey
Int64

The partition key for the service partition.

previousResult
ResolvedServicePartition

Previous ResolvedServicePartition for the service partition that the user believes is stale.

timeout
TimeSpan

The maximum amount of time the system will allow this operation to continue before returning TimeoutException.

cancellationToken
CancellationToken

CancellationToken that the operation is observing. It can be used to propagate notification that the operation should be canceled.

Returns

The set of endpoints the specified service partition is listening to.

Exceptions

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

Remarks

This is a complaint based resolution API.

This will return a ResolvedServicePartition for the specified service partition. When this overload is used, the system will return a more up-to-date ResolvedServicePartition than the “previousResult” argument if it is available.

PreviousResult argument enables the user to say ”This is the previous list of endpoints for this Service partition. I have tried the endpoints and I believe they are stale. Return me a more up to date version of this set.” In this case, the system will try to return a more up-to-date ResolvedServicePartition in the most efficient way possible. If no newer version can be found, a ResolvedServicePartition with the same version will be returned.ResolveServicePartition can be called without the previousResult argument or previousResult argument set to null. As no prerequisite is specified, the system will return the closest copy of the ResolvedServicePartition for the service partition.

Applies to

Azure SDK for .NET Latest and Azure SDK for .NET Legacy
Product Versions
Azure SDK for .NET Legacy, Latest

ResolveServicePartitionAsync(Uri, String, TimeSpan, CancellationToken)

Queries the system for the set of endpoints the specified service partition is listening to.

C#
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync(Uri serviceName, string partitionKey, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);

Parameters

serviceName
Uri

The Service Fabric Name of the service instance.

partitionKey
String

The partition key for the service partition.

timeout
TimeSpan

The maximum amount of time the system will allow this operation to continue before returning TimeoutException.

cancellationToken
CancellationToken

The CancellationToken that the operation is observing. It can be used to propagate notification that the operation should be canceled.

Returns

The set of endpoints the specified service partition is listening to.

Exceptions

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

Remarks

This is a complaint based resolution API.

This will return a ResolvedServicePartition for the specified service partition. When this overload is used, the system will always return the closest ResolvedServicePartition for the service partition.

Applies to

Azure SDK for .NET Latest and Azure SDK for .NET Legacy
Product Versions
Azure SDK for .NET Legacy, Latest

ResolveServicePartitionAsync(Uri, String, ResolvedServicePartition, TimeSpan)

Queries the system for the set of endpoints the specified service partition is listening to.

C#
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync(Uri serviceName, string partitionKey, System.Fabric.ResolvedServicePartition previousResult, TimeSpan timeout);

Parameters

serviceName
Uri

The Service Fabric Name of the service instance.

partitionKey
String

The partition key for the service partition.

previousResult
ResolvedServicePartition

The previous ResolvedServicePartition for the service partition that the user believes is stale.

timeout
TimeSpan

The maximum amount of time the system will allow this operation to continue before returning TimeoutException.

Returns

The set of endpoints the specified service partition is listening to.

Exceptions

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

Remarks

This is a complaint based resolution API.

This will return a ResolvedServicePartition for the specified service partition. When this overload is used, the system will return a more up-to-date ResolvedServicePartition than the “previousResult” argument if it is available.

The PreviousResult argument enables the user to say ”This is the previous list of endpoints for this Service partition. I have tried the endpoints and I believe they are stale. Return me a more up to date version of this set.” In this case, the system will try to return a more up-to-date ResolvedServicePartition in the most efficient way possible. If no newer version can be found, a ResolvedServicePartition with the same version will be returned.ResolveServicePartition can be called without the previousResult argument or previousResult argument set to null. As no prerequisite is specified, the system will return the closest copy of the ResolvedServicePartition for the service partition.

Applies to

Azure SDK for .NET Latest and Azure SDK for .NET Legacy
Product Versions
Azure SDK for .NET Legacy, Latest

ResolveServicePartitionAsync(Uri, Int64, TimeSpan, CancellationToken)

Queries the system for the set of endpoints the specified service partition is listening to.

C#
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync(Uri serviceName, long partitionKey, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);

Parameters

serviceName
Uri

The Service Fabric Name of the service instance.

partitionKey
Int64

The partition key for the service partition.

timeout
TimeSpan

The maximum amount of time the system will allow this operation to continue before returning TimeoutException.

cancellationToken
CancellationToken

The CancellationToken that the operation is observing. It can be used to propagate notification that the operation should be canceled.

Returns

The set of endpoints the specified service partition is listening to.

Exceptions

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

Remarks

This is a complaint based resolution API.

This will return a ResolvedServicePartition for the specified service partition. When this overload is used, the system will always return the closest ResolvedServicePartition for the service partition.

Applies to

Azure SDK for .NET Latest and Azure SDK for .NET Legacy
Product Versions
Azure SDK for .NET Legacy, Latest

ResolveServicePartitionAsync(Uri, Int64, ResolvedServicePartition, TimeSpan)

Queries the system for the set of endpoints the specified service partition is listening to.

C#
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync(Uri serviceName, long partitionKey, System.Fabric.ResolvedServicePartition previousResult, TimeSpan timeout);

Parameters

serviceName
Uri

The Service Fabric Name of the service instance.

partitionKey
Int64

The partition key for the service partition.

previousResult
ResolvedServicePartition

Previous ResolvedServicePartition for the service partition that the user believes is stale.

timeout
TimeSpan

The maximum amount of time the system will allow this operation to continue before returning TimeoutException.

Returns

The set of endpoints the specified service partition is listening to.

Exceptions

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

Remarks

This is a complaint based resolution API.

This will return a ResolvedServicePartition for the specified service partition. When this overload is used, the system will return a more up-to-date ResolvedServicePartition than the “previousResult” argument if it is available.

PreviousResult argument enables the user to say ”This is the previous list of endpoints for this Service partition. I have tried the endpoints and I believe they are stale. Return me a more up to date version of this set.” In this case, the system will try to return a more up-to-date ResolvedServicePartition in the most efficient way possible. If no newer version can be found, a ResolvedServicePartition with the same version will be returned.ResolveServicePartition can be called without the previousResult argument or previousResult argument set to null. As no prerequisite is specified, the system will return the closest copy of the ResolvedServicePartition for the service partition.

Applies to

Azure SDK for .NET Latest and Azure SDK for .NET Legacy
Product Versions
Azure SDK for .NET Legacy, Latest

ResolveServicePartitionAsync(Uri, ResolvedServicePartition, TimeSpan, CancellationToken)

Queries the system for the set of endpoints the specified service partition is listening to.

C#
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync(Uri serviceName, System.Fabric.ResolvedServicePartition previousResult, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);

Parameters

serviceName
Uri

The Service Fabric Name of the service instance.

previousResult
ResolvedServicePartition

Previous ResolvedServicePartition for the service partition that the user believes is stale.

timeout
TimeSpan

The maximum amount of time the system will allow this operation to continue before returning TimeoutException.

cancellationToken
CancellationToken

The CancellationTokenthat the operation is observing. It can be used to propagate notification that the operation should be canceled.

Returns

The set of endpoints the specified service partition is listening to.

Exceptions

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

Remarks

This is a complaint based resolution API.

This method will return a ResolvedServicePartition for the specified service partition. When this overload is used, the system will return a more up-to-date ResolvedServicePartition than the “previousResult” argument if it is available.

previousResult argument enables the user to say ”This is the previous list of endpoints for this Service partition. I have tried the endpoints and I believe they are stale. Return me a more up to date version of this set.” In this case, the system will try to return a more up-to-date ResolvedServicePartition in the most efficient way possible. If no newer version can be found, a ResolvedServicePartition with the same version will be returned.ResolveServicePartition can be called without the previousResult argument or previousResult argument set to null. As no prerequisite is specified, the system will return the closest copy of the ResolvedServicePartition for the service partition.

Applies to

Azure SDK for .NET Latest and Azure SDK for .NET Legacy
Product Versions
Azure SDK for .NET Legacy, Latest

ResolveServicePartitionAsync(Uri, String, TimeSpan)

Queries the system for the set of endpoints the specified service partition is listening to.

C#
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync(Uri serviceName, string partitionKey, TimeSpan timeout);

Parameters

serviceName
Uri

The Service Fabric Name of the service instance.

partitionKey
String

The partition key for the service partition.

timeout
TimeSpan

The maximum amount of time the system will allow this operation to continue before returning TimeoutException.

Returns

The set of endpoints the specified service partition is listening to.

Exceptions

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

Remarks

This is a complaint based resolution API.

This will return a ResolvedServicePartition for the specified service partition. When this overload is used, the system will always return the closest ResolvedServicePartition for the service partition.

Applies to

Azure SDK for .NET Latest and Azure SDK for .NET Legacy
Product Versions
Azure SDK for .NET Legacy, Latest

ResolveServicePartitionAsync(Uri)

Queries the system for the set of endpoints the specified service partition is listening to.

C#
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync(Uri serviceName);

Parameters

serviceName
Uri

The Service Fabric Name of the service instance.

Returns

The set of endpoints the specified service partition is listening to.

Exceptions

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

Remarks

This is a complaint based resolution API.

The ResolveServicePartitionAsync(Uri) will return a ResolvedServicePartition for the specified service partition. When this overload is used, the system will always return the closest ResolvedServicePartition for the service partition.

Applies to

Azure SDK for .NET Latest and Azure SDK for .NET Legacy
Product Versions
Azure SDK for .NET Legacy, Latest

ResolveServicePartitionAsync(Uri, Int64, TimeSpan)

Queries the system for the set of endpoints the specified service partition is listening to.

C#
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync(Uri serviceName, long partitionKey, TimeSpan timeout);

Parameters

serviceName
Uri

The Service Fabric Name of the service instance.

partitionKey
Int64

The partition key for the service partition.

timeout
TimeSpan

The maximum amount of time the system will allow this operation to continue before returning TimeoutException.

Returns

The set of endpoints the specified service partition is listening to.

Exceptions

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

Remarks

This is a complaint based resolution API.

This will return a ResolvedServicePartition for the specified service partition. When this overload is used, the system will always return the closest ResolvedServicePartition for the service partition.

Applies to

Azure SDK for .NET Latest and Azure SDK for .NET Legacy
Product Versions
Azure SDK for .NET Legacy, Latest

ResolveServicePartitionAsync(Uri, Int64, ResolvedServicePartition)

Queries the system for the set of endpoints the specified service partition is listening to.

C#
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync(Uri serviceName, long partitionKey, System.Fabric.ResolvedServicePartition previousResult);

Parameters

serviceName
Uri

The Service Fabric Name of the service instance.

partitionKey
Int64

The partition key for the service partition.

previousResult
ResolvedServicePartition

The Previous ResolvedServicePartition for the service partition that the user believes is stale.

Returns

The set of endpoints the specified service partition is listening to.

Exceptions

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

Remarks

This is a complaint based resolution API.

This will return a ResolvedServicePartition for the specified service partition. When this overload is used, the system will return a more up-to-date ResolvedServicePartition than the “previousResult” argument if it is available.

PreviousResult argument enables the user to say ”This is the previous list of endpoints for this Service partition. I have tried the endpoints and I believe they are stale. Return me a more up to date version of this set.” In this case, the system will try to return a more up-to-date ResolvedServicePartition in the most efficient way possible. If no newer version can be found, a ResolvedServicePartition with the same version will be returned.ResolveServicePartition can be called without the previousResult argument or previousResult argument set to null. As no prerequisite is specified, the system will return the closest copy of the ResolvedServicePartition for the service partition.

Applies to

Azure SDK for .NET Latest and Azure SDK for .NET Legacy
Product Versions
Azure SDK for .NET Legacy, Latest

ResolveServicePartitionAsync(Uri, ResolvedServicePartition, TimeSpan)

Queries the system for the set of endpoints the specified service partition is listening to.

C#
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync(Uri serviceName, System.Fabric.ResolvedServicePartition previousResult, TimeSpan timeout);

Parameters

serviceName
Uri

The Service Fabric Name of the service instance.

previousResult
ResolvedServicePartition

The Previous ResolvedServicePartition for the service partition that the user believes is stale.

timeout
TimeSpan

The maximum amount of time the system will allow this operation to continue before returning TimeoutException.

Returns

The set of endpoints the specified service partition is listening to.

Remarks

This is a complaint based resolution API.

This method will return a ResolvedServicePartition for the specified service partition. When this overload is used, the system will return a more up-to-date ResolvedServicePartition than the “previousResult” argument if it is available.

PreviousResult argument enables the user to say ”This is the previous list of endpoints for this Service partition. I have tried the endpoints and I believe they are stale. Return me a more up to date version of this set.” In this case, the system will try to return a more up-to-date ResolvedServicePartition in the most efficient way possible. If no newer version can be found, a ResolvedServicePartition with the same version will be returned.ResolveServicePartition can be called without the previousResult argument or previousResult argument set to null. As no prerequisite is specified, the system will return the closest copy of the ResolvedServicePartition for the service partition.

Applies to

Azure SDK for .NET Latest and Azure SDK for .NET Legacy
Product Versions
Azure SDK for .NET Legacy, Latest

ResolveServicePartitionAsync(Uri, TimeSpan)

Queries the system for the set of endpoints the specified service partition is listening to.

C#
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync(Uri serviceName, TimeSpan timeout);

Parameters

serviceName
Uri

The Service Fabric Name of the service instance.

timeout
TimeSpan

The maximum amount of time the system will allow this operation to continue before returning TimeoutException.

Returns

The set of endpoints the specified service partition is listening to.

Exceptions

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

Remarks

This is a complaint based resolution API.

This will return a ResolvedServicePartition for the specified service partition. When this overload is used, the system will always return the closest ResolvedServicePartition for the service partition.

Applies to

Azure SDK for .NET Latest and Azure SDK for .NET Legacy
Product Versions
Azure SDK for .NET Legacy, Latest

ResolveServicePartitionAsync(Uri, String)

Queries the system for the set of endpoints the specified service partition is listening to.

C#
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync(Uri serviceName, string partitionKey);

Parameters

serviceName
Uri

The Service Fabric Name of the service instance.

partitionKey
String

The partition key for the service partition.

Returns

The set of endpoints the specified service partition is listening to.

Exceptions

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

Remarks

This is a complaint based resolution API.

This will return a ResolvedServicePartition for the specified service partition. When this overload is used, the system will always return the closest ResolvedServicePartition for the service partition.

Applies to

Azure SDK for .NET Latest and Azure SDK for .NET Legacy
Product Versions
Azure SDK for .NET Legacy, Latest

ResolveServicePartitionAsync(Uri, Int64)

Queries the system for the set of endpoints the specified service partition is listening to.

C#
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync(Uri serviceName, long partitionKey);

Parameters

serviceName
Uri

The Service Fabric Name of the service instance.

partitionKey
Int64

The partition key for the service partition.

Returns

The set of endpoints the specified service partition is listening to.

Exceptions

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

Remarks

This is a complaint based resolution API.

This method will return a ResolvedServicePartition for the specified service partition. When this overload is used, the system will always return the closest ResolvedServicePartition for the service partition.

Applies to

Azure SDK for .NET Latest and Azure SDK for .NET Legacy
Product Versions
Azure SDK for .NET Legacy, Latest

ResolveServicePartitionAsync(Uri, ResolvedServicePartition)

Queries the system for the set of endpoints the specified service partition is listening to.

C#
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync(Uri serviceName, System.Fabric.ResolvedServicePartition previousResult);

Parameters

serviceName
Uri

The Service Fabric Name of the service instance.

previousResult
ResolvedServicePartition

The Previous ResolvedServicePartition for the service partition that the user believes is stale.

Returns

The set of endpoints the specified service partition is listening to.

Exceptions

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

Remarks

A complaint based resolution API.

This method will return a ResolvedServicePartition for the specified service partition. When this overload is used, the system will return a more up-to-date ResolvedServicePartition than the “previousResult” argument if it is available.

PreviousResult argument enables the user to say ”This is the previous list of endpoints for this Service partition. I have tried the endpoints and I believe they are stale. Return me a more up to date version of this set.” In this case, the system will try to return a more up-to-date ResolvedServicePartition in the most efficient way possible. If no newer version can be found, a ResolvedServicePartition with the same version will be returned.ResolveServicePartition can be called without the previousResult argument or previousResult argument set to null. As no prerequisite is specified, the system will return the closest copy of the ResolvedServicePartition for the service partition.

Applies to

Azure SDK for .NET Latest and Azure SDK for .NET Legacy
Product Versions
Azure SDK for .NET Legacy, Latest

ResolveServicePartitionAsync(Uri, String, ResolvedServicePartition)

Queries the system for the set of endpoints the specified service partition is listening to.

C#
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync(Uri serviceName, string partitionKey, System.Fabric.ResolvedServicePartition previousResult);

Parameters

serviceName
Uri

The Service Fabric Name of the service instance.

partitionKey
String

The partition key for the service partition.

previousResult
ResolvedServicePartition

The previous ResolvedServicePartition for the service partition that the user believes is stale.

Returns

The set of endpoints the specified service partition is listening to.

Exceptions

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

Remarks

This is a complaint based resolution API.

This will return a ResolvedServicePartition for the specified service partition. When this overload is used, the system will return a more up-to-date ResolvedServicePartition than the “previousResult” argument if it is available.

The PreviousResult argument enables the user to say ”This is the previous list of endpoints for this Service partition. I have tried the endpoints and I believe they are stale. Return me a more up to date version of this set.” In this case, the system will try to return a more up-to-date ResolvedServicePartition in the most efficient way possible. If no newer version can be found, a ResolvedServicePartition with the same version will be returned.ResolveServicePartition can be called without the previousResult argument or previousResult argument set to null. As no prerequisite is specified, the system will return the closest copy of the ResolvedServicePartition for the service partition.

Applies to

Azure SDK for .NET Latest and Azure SDK for .NET Legacy
Product Versions
Azure SDK for .NET Legacy, Latest