Skip to content
DocsTry Aspire
DocsTry

DbxContainerResource.withHostPort

Method
📦 CommunityToolkit.Aspire.Hosting.Dbx v13.5.0
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
portnumber
DbxContainerResource

Defined on

This method is defined on the following type: