withHostPort

Method
📦 CommunityToolkit.Aspire.Hosting.Adminer v13.6.1
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
portnumberThe port to bind on the host. If `null` is used random port will be assigned.
AdminerContainerResource

Applies to

This method applies to the following types: