Skip to content
DocsTry Aspire
DocsTry

AdminerContainerResource.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

Defined on

This method is defined on the following type: