Class ServiceEndpointSpec
Service endpoint specification.
Namespace: Neon.Docker
Assembly: Neon.Docker.dll
Syntax
public class ServiceEndpointSpec
Properties
Mode
Specifies how the Docker swarm will load balance traffic to the service tasks.
Declaration
public ServiceEndpointMode Mode { get; set; }
Property Value
Type | Description |
---|---|
ServiceEndpointMode |
Ports
Details the network ports exposed by the service tasks.
Declaration
public List<ServiceEndpointPortConfig> Ports { get; set; }
Property Value
Type | Description |
---|---|
List<ServiceEndpointPortConfig> |
Methods
Normalize()
Recursively ensures ensures that any null class or list related properties are replaced with instances with default values or empty lists.
Declaration
public void Normalize()