DbxContainerResource.withHostPort

Method
📦 CommunityToolkit.Aspire.Hosting.Dbx v13.6.1
interface DbxContainerResource {
// ... omitted for brevity
withHostPort(port: number): DbxContainerResource;
}

Signature

methodwithHostPortbuilder
Configures the host port that the dbx resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): DbxContainerResource
portnumberThe port to bind on the host. If `null` is used random port will be assigned.
DbxContainerResource

Defined on

This method is defined on the following type: