addDbGate

Method
📦 CommunityToolkit.Aspire.Hosting.DbGate v13.6.1
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addDbGate(
name?: string,
port?: number): DbGateContainerResource;
}

Signature

methodaddDbGatebuilder
Adds a DbGate container resource to the application.
addDbGate(
name?: string,
port?: number): DbGateContainerResource
namestringoptional= dbgateThe name of the resource. This name will be used as the connection string name when referenced in a dependency. Optional; defaults to `dbgate`.
portnumberoptionalThe host port to bind the underlying container to.
DbGateContainerResource

Applies to

This method applies to the following types: