Skip to content
DocsTry Aspire
DocsTry

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

Applies to

This method applies to the following types: