Class ServiceEndpointPortConfig
Service port publication specification.
Namespace: Neon.Docker
Assembly: Neon.Docker.dll
Syntax
public class ServiceEndpointPortConfig
Properties
Name
The port name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Protocol
Specifies the port protocol.
Declaration
public ServicePortProtocol Protocol { get; set; }
Property Value
Type | Description |
---|---|
ServicePortProtocol |
PublishMode
Specifies the port mode.
Declaration
public ServicePortMode PublishMode { get; set; }
Property Value
Type | Description |
---|---|
ServicePortMode |
PublishedPort
Specifies the port where the service receives traffic on the external network.
Declaration
public int PublishedPort { get; set; }
Property Value
Type | Description |
---|---|
int |
TargetPort
Specifies the internal port where external traffic will be forwarded within the service containers.
Declaration
public int TargetPort { get; set; }
Property Value
Type | Description |
---|---|
int |
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()