Skip to content
Docs Try Aspire
Docs Try

withHostPort

Method
📦 CommunityToolkit.Aspire.Hosting.DbGate v13.4.0
interface DbGateContainerResource {
// ... omitted for brevity
withHostPort(port: number): DbGateContainerResource;
}

Signature

method withHostPort builder
Configures the host port that the DbGate resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): DbGateContainerResource
port number
DbGateContainerResource

Applies to

This method applies to the following types: