Bagikan melalui


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
[<System.Runtime.Serialization.DataContract>]
type ServiceEndpointCollection = class
Public NotInheritable Class ServiceEndpointCollection
Inheritance
ServiceEndpointCollection
Attributes

Constructors

ServiceEndpointCollection()

Initializes a new instance of the ServiceEndpointCollection class that is empty.

ServiceEndpointCollection(String, String)

Initializes a new instance of the ServiceEndpointCollection class 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