Skip to content
Docs Try Aspire
Docs Try

withHostPort

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

Signature

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

Applies to

This method applies to the following types: