Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithHostPort

Method
📦 CommunityToolkit.Aspire.Hosting.RedPanda v13.6.1
func (RedPandaConsoleContainerResource) WithHostPort(port *float64) RedPandaConsoleContainerResource

Signature

methodWithHostPortbuilder
Configures the host port that the Redpanda Console resource is exposed on instead of using a randomly assigned port.
WithHostPort(port *float64) RedPandaConsoleContainerResource
port*float64The port to bind on the host. If null a random port is assigned.
RedPandaConsoleContainerResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: