Skip to content
DocsTry Aspire
DocsTry

withHostPort

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

Signature

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

Applies to

This method applies to the following types: