FabricClient.ServiceManagementClient.ResolveServicePartitionAsync 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.
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.
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync (Uri serviceName, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.ResolveServicePartitionAsync : Uri * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition>
Public Function ResolveServicePartitionAsync (serviceName As Uri, timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of ResolvedServicePartition)
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
ResolveServicePartitionAsync(Uri, String, ResolvedServicePartition, TimeSpan, CancellationToken)
Queries the system for the set of endpoints the specified service partition is listening to.
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync (Uri serviceName, string partitionKey, System.Fabric.ResolvedServicePartition previousResult, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.ResolveServicePartitionAsync : Uri * string * System.Fabric.ResolvedServicePartition * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition>
Public Function ResolveServicePartitionAsync (serviceName As Uri, partitionKey As String, previousResult As ResolvedServicePartition, timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of ResolvedServicePartition)
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
ResolveServicePartitionAsync(Uri, Int64, ResolvedServicePartition, TimeSpan, CancellationToken)
Queries the system for the set of endpoints the specified service partition is listening to.
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync (Uri serviceName, long partitionKey, System.Fabric.ResolvedServicePartition previousResult, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.ResolveServicePartitionAsync : Uri * int64 * System.Fabric.ResolvedServicePartition * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition>
Public Function ResolveServicePartitionAsync (serviceName As Uri, partitionKey As Long, previousResult As ResolvedServicePartition, timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of ResolvedServicePartition)
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
ResolveServicePartitionAsync(Uri, String, TimeSpan, CancellationToken)
Queries the system for the set of endpoints the specified service partition is listening to.
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync (Uri serviceName, string partitionKey, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.ResolveServicePartitionAsync : Uri * string * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition>
Public Function ResolveServicePartitionAsync (serviceName As Uri, partitionKey As String, timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of ResolvedServicePartition)
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
ResolveServicePartitionAsync(Uri, String, ResolvedServicePartition, TimeSpan)
Queries the system for the set of endpoints the specified service partition is listening to.
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync (Uri serviceName, string partitionKey, System.Fabric.ResolvedServicePartition previousResult, TimeSpan timeout);
member this.ResolveServicePartitionAsync : Uri * string * System.Fabric.ResolvedServicePartition * TimeSpan -> System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition>
Public Function ResolveServicePartitionAsync (serviceName As Uri, partitionKey As String, previousResult As ResolvedServicePartition, timeout As TimeSpan) As Task(Of ResolvedServicePartition)
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
ResolveServicePartitionAsync(Uri, Int64, TimeSpan, CancellationToken)
Queries the system for the set of endpoints the specified service partition is listening to.
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync (Uri serviceName, long partitionKey, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.ResolveServicePartitionAsync : Uri * int64 * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition>
Public Function ResolveServicePartitionAsync (serviceName As Uri, partitionKey As Long, timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of ResolvedServicePartition)
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
ResolveServicePartitionAsync(Uri, Int64, ResolvedServicePartition, TimeSpan)
Queries the system for the set of endpoints the specified service partition is listening to.
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync (Uri serviceName, long partitionKey, System.Fabric.ResolvedServicePartition previousResult, TimeSpan timeout);
member this.ResolveServicePartitionAsync : Uri * int64 * System.Fabric.ResolvedServicePartition * TimeSpan -> System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition>
Public Function ResolveServicePartitionAsync (serviceName As Uri, partitionKey As Long, previousResult As ResolvedServicePartition, timeout As TimeSpan) As Task(Of ResolvedServicePartition)
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
ResolveServicePartitionAsync(Uri, ResolvedServicePartition, TimeSpan, CancellationToken)
Queries the system for the set of endpoints the specified service partition is listening to.
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync (Uri serviceName, System.Fabric.ResolvedServicePartition previousResult, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.ResolveServicePartitionAsync : Uri * System.Fabric.ResolvedServicePartition * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition>
Public Function ResolveServicePartitionAsync (serviceName As Uri, previousResult As ResolvedServicePartition, timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of ResolvedServicePartition)
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
ResolveServicePartitionAsync(Uri, String, TimeSpan)
Queries the system for the set of endpoints the specified service partition is listening to.
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync (Uri serviceName, string partitionKey, TimeSpan timeout);
member this.ResolveServicePartitionAsync : Uri * string * TimeSpan -> System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition>
Public Function ResolveServicePartitionAsync (serviceName As Uri, partitionKey As String, timeout As TimeSpan) As Task(Of ResolvedServicePartition)
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
ResolveServicePartitionAsync(Uri)
Queries the system for the set of endpoints the specified service partition is listening to.
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync (Uri serviceName);
member this.ResolveServicePartitionAsync : Uri -> System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition>
Public Function ResolveServicePartitionAsync (serviceName As Uri) As Task(Of ResolvedServicePartition)
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
ResolveServicePartitionAsync(Uri, Int64, TimeSpan)
Queries the system for the set of endpoints the specified service partition is listening to.
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync (Uri serviceName, long partitionKey, TimeSpan timeout);
member this.ResolveServicePartitionAsync : Uri * int64 * TimeSpan -> System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition>
Public Function ResolveServicePartitionAsync (serviceName As Uri, partitionKey As Long, timeout As TimeSpan) As Task(Of ResolvedServicePartition)
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
ResolveServicePartitionAsync(Uri, Int64, ResolvedServicePartition)
Queries the system for the set of endpoints the specified service partition is listening to.
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync (Uri serviceName, long partitionKey, System.Fabric.ResolvedServicePartition previousResult);
member this.ResolveServicePartitionAsync : Uri * int64 * System.Fabric.ResolvedServicePartition -> System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition>
Public Function ResolveServicePartitionAsync (serviceName As Uri, partitionKey As Long, previousResult As ResolvedServicePartition) As Task(Of ResolvedServicePartition)
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
ResolveServicePartitionAsync(Uri, ResolvedServicePartition, TimeSpan)
Queries the system for the set of endpoints the specified service partition is listening to.
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync (Uri serviceName, System.Fabric.ResolvedServicePartition previousResult, TimeSpan timeout);
member this.ResolveServicePartitionAsync : Uri * System.Fabric.ResolvedServicePartition * TimeSpan -> System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition>
Public Function ResolveServicePartitionAsync (serviceName As Uri, previousResult As ResolvedServicePartition, timeout As TimeSpan) As Task(Of ResolvedServicePartition)
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
ResolveServicePartitionAsync(Uri, TimeSpan)
Queries the system for the set of endpoints the specified service partition is listening to.
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync (Uri serviceName, TimeSpan timeout);
member this.ResolveServicePartitionAsync : Uri * TimeSpan -> System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition>
Public Function ResolveServicePartitionAsync (serviceName As Uri, timeout As TimeSpan) As Task(Of ResolvedServicePartition)
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
ResolveServicePartitionAsync(Uri, String)
Queries the system for the set of endpoints the specified service partition is listening to.
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync (Uri serviceName, string partitionKey);
member this.ResolveServicePartitionAsync : Uri * string -> System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition>
Public Function ResolveServicePartitionAsync (serviceName As Uri, partitionKey As String) As Task(Of ResolvedServicePartition)
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
ResolveServicePartitionAsync(Uri, Int64)
Queries the system for the set of endpoints the specified service partition is listening to.
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync (Uri serviceName, long partitionKey);
member this.ResolveServicePartitionAsync : Uri * int64 -> System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition>
Public Function ResolveServicePartitionAsync (serviceName As Uri, partitionKey As Long) As Task(Of ResolvedServicePartition)
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
ResolveServicePartitionAsync(Uri, ResolvedServicePartition)
Queries the system for the set of endpoints the specified service partition is listening to.
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync (Uri serviceName, System.Fabric.ResolvedServicePartition previousResult);
member this.ResolveServicePartitionAsync : Uri * System.Fabric.ResolvedServicePartition -> System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition>
Public Function ResolveServicePartitionAsync (serviceName As Uri, previousResult As ResolvedServicePartition) As Task(Of ResolvedServicePartition)
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
ResolveServicePartitionAsync(Uri, String, ResolvedServicePartition)
Queries the system for the set of endpoints the specified service partition is listening to.
public System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition> ResolveServicePartitionAsync (Uri serviceName, string partitionKey, System.Fabric.ResolvedServicePartition previousResult);
member this.ResolveServicePartitionAsync : Uri * string * System.Fabric.ResolvedServicePartition -> System.Threading.Tasks.Task<System.Fabric.ResolvedServicePartition>
Public Function ResolveServicePartitionAsync (serviceName As Uri, partitionKey As String, previousResult As ResolvedServicePartition) As Task(Of ResolvedServicePartition)
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