Skip to content
Docs Try Aspire
Docs Try

withHostPort

Method
📦 Aspire.Hosting.Kafka v13.4.0
interface KafkaUIContainerResource {
// ... omitted for brevity
withHostPort(port: number): KafkaUIContainerResource;
}

Signature

method withHostPort builder
Configures the host port that the KafkaUI resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): KafkaUIContainerResource
port number
KafkaUIContainerResource

Applies to

This method applies to the following types: