Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithHostPort

Method
📦 CommunityToolkit.Aspire.Hosting.Floci v13.6.1
func (FlociUIContainerResource) WithHostPort(port *float64) FlociUIContainerResource

Signature

methodWithHostPortbuilder
Configures the host port that the Floci UI resource is exposed on instead of using a randomly assigned port.
WithHostPort(port *float64) FlociUIContainerResource
port*float64The port to bind on the host. If null is used a random port will be assigned.
FlociUIContainerResource

The resource builder for Floci UI.

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

Applies to

This method applies to the following types: