Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

FlociUIContainerResource.WithHostPort

Method
📦 CommunityToolkit.Aspire.Hosting.Floci v13.6.1
type FlociUIContainerResource interface {
// ... omitted for brevity
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().

Defined on

This method is defined on the following type: