ServiceEndpointCollection Class

Definition

This class represents the endpoints of a Reliable service. Each endpoint has a listener name and the address of that listener.

[System.Runtime.Serialization.DataContract]
public sealed class ServiceEndpointCollection
type ServiceEndpointCollection = class
Public NotInheritable Class ServiceEndpointCollection
Inheritance
System.Object
ServiceEndpointCollection
Attributes
System.Runtime.Serialization.DataContractAttribute

Constructors

ServiceEndpointCollection()

Instantiates an empty ServiceEndpointsCollection.

ServiceEndpointCollection(String, String)

Instantiates the ServiceEndpointsCollection with a single endpoint, identified by the listener name.

Methods

AddEndpoint(String, String)

Adds an endpoint to the EndpointsCollection.

AddEndpoints(ServiceEndpointCollection)

Adds the endpoints in the input EndpointsCollection class to the EndpointsCollection.

ToReadOnlyDictionary()

Returns a ReadOnlyDictionary of the endpointsCollection.

ToString()

Converts the endpointsCollection to a JSON string of the form {"Endpoints":{"Listener1":"Endpoint1","Listener2":"Endpoint2" ...}}

TryGetEndpointAddress(String, String)

Gets the endpoint identified by the listener name.

TryGetFirstEndpointAddress(String)

Gets the first endpoint address in the EndpointsCollection.

TryParseEndpointsString(String, ServiceEndpointCollection)

Constructs an EndpointsCollection from a string version of the endpoints. String form of EndpointsCollection is of the form {"Endpoints":{"Listener1":"Endpoint1","Listener2":"Endpoint2" ...}}

Applies to