Dela via


ResolvedServicePartition.GetEndpoint Method

Definition

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