KindPortMappingModel
Classsealednet10.0
Represents a host port mapping into a Kind node container.
namespace Aspire.Hosting.ApplicationModel;
public sealed class KindPortMappingModel{ // ...}5 members
Constructors1
Section titled ConstructorsProperties4
Section titled PropertiesContainerPortget; setint? Gets or sets the port within the container.
HostPortget; setint? Gets or sets the port on the host. When
null, a random port is selected. ListenAddressget; setstring? Gets or sets the address to listen on. When
null, Kind uses its default. Protocolget; setstring? Gets or sets the protocol (e.g., "TCP", "UDP", or "SCTP"). When
null, defaults to TCP.