Skip to content
Docs Try Aspire
Docs Try

withHostPort

Method
📦 Aspire.Hosting.MongoDB v13.3.0
interface MongoExpressContainerResource {
// ... omitted for brevity
withHostPort(port: number): MongoExpressContainerResource;
}

Signature

method withHostPort builder
Sets the host port for the Mongo Express resource
withHostPort(port: number): MongoExpressContainerResource
port number
MongoExpressContainerResource

Applies to

This method applies to the following types: