Class ServiceEndpoints
Holds the endpoint definitions for a service.
Namespace: Neon.Service
Assembly: Neon.Common.dll
Syntax
public class ServiceEndpoints : Dictionary<string, ServiceEndpoint>
Properties
Default
Returns the default endpoint (the one with the empty name) if present.
Declaration
public ServiceEndpoint Default { get; }
Property Value
Type | Description |
---|---|
ServiceEndpoint |
Exceptions
Type | Condition |
---|---|
KeyNotFoundException | Thrown if the default endpoint doesn't exist. |
Methods
Add(ServiceEndpoint)
Adds an endpoint.
Declaration
public void Add(ServiceEndpoint endpoint)
Parameters
Type | Name | Description |
---|---|---|
ServiceEndpoint | endpoint | The endpoint. |