GatewayListenerV1
Class sealed net8.0
Represents a listener on a Gateway. A listener defines how the Gateway receives traffic on a specific port and protocol.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class GatewayListenerV1{ // ...} 7 members
Constructors1
Section titled ConstructorsProperties6
Section titled PropertiesAllowedRoutesget; set Gets or sets the allowed routes configuration for this listener.
Hostnameget; setstring? Gets or sets the optional hostname for this listener. When set, only requests matching this hostname are handled by this listener.
Nameget; setstring Gets or sets the name of this listener. Must be unique within the Gateway.
Portget; setint Gets or sets the network port for this listener.
Protocolget; setstring Gets or sets the protocol for this listener (e.g.,
"HTTP", "HTTPS", "TLS"). Tlsget; set Gets or sets the TLS configuration for this listener. Required when protocol is HTTPS or TLS.