ResolvedServicePartition.GetEndpoint 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.
Returns a single endpoint, instead of a collection of all endpoints.
public System.Fabric.ResolvedServiceEndpoint GetEndpoint ();
member this.GetEndpoint : unit -> System.Fabric.ResolvedServiceEndpoint
Public Function GetEndpoint () As ResolvedServiceEndpoint
Returns
Returns ResolvedServiceEndpoint.
Remarks
Many times, you only need a single endpoint instead of all the endpoints. If the service is stateless, it returns a random endpoint. If the service is a stateful service, than it returns the endpoint to which the Primary replica of the service partition listens. Note that if the Primary replica currently does not exist, it throws FabricException.
Applies to
Azure SDK for .NET