Skip to content
Docs Try Aspire
Docs Try

GatewayListenerV1 Properties

Class Properties 6 members
Represents a listener on a Gateway. A listener defines how the Gateway receives traffic on a specific port and protocol.
Gets or sets the allowed routes configuration for this listener.
public GatewayAllowedRoutesV1? AllowedRoutes { get; set; }
Hostname Section titled Hostname nullable string?
Gets or sets the optional hostname for this listener. When set, only requests matching this hostname are handled by this listener.
public string? Hostname { get; set; }
Gets or sets the name of this listener. Must be unique within the Gateway.
public string Name { get; set; }
Gets or sets the network port for this listener.
public int Port { get; set; }
Gets or sets the protocol for this listener (e.g., "HTTP", "HTTPS", "TLS").
public string Protocol { get; set; }
Gets or sets the TLS configuration for this listener. Required when protocol is HTTPS or TLS.
public GatewayTlsConfigV1? Tls { get; set; }