Skip to content
DocsTry Aspire
DocsTry

KindPortMappingModel Properties

ClassProperties4 members
Represents a host port mapping into a Kind node container.
ContainerPortSection titled ContainerPortnullableint?
Gets or sets the port within the container.
public int? ContainerPort { get; set; }
HostPortSection titled HostPortnullableint?
Gets or sets the port on the host. When null, a random port is selected.
public int? HostPort { get; set; }
ListenAddressSection titled ListenAddressnullablestring?
Gets or sets the address to listen on. When null, Kind uses its default.
public string? ListenAddress { get; set; }
ProtocolSection titled Protocolnullablestring?
Gets or sets the protocol (e.g., "TCP", "UDP", or "SCTP"). When null, defaults to TCP.
public string? Protocol { get; set; }