Skip to content
Docs Try Aspire

KafkaUIContainerResource.withHostPort

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

Signature

method withHostPort builder
Sets the host port for the Kafka UI container
withHostPort(port: number): KafkaUIContainerResource
port number
KafkaUIContainerResource

Defined on

This method is defined on the following type: