Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddDbGate

Method
📦 CommunityToolkit.Aspire.Hosting.DbGate v13.6.1
func (DistributedApplicationBuilder) AddDbGate(options ...*AddDbGateOptions) DbGateContainerResource

Signature

methodAddDbGatebuilder
Adds a DbGate container resource to the application.
AddDbGate(options ...*AddDbGateOptions) DbGateContainerResource
options...*AddDbGateOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*AddDbGateOptions argument.

Name*stringThe name of the resource. This name will be used as the connection string name when referenced in a dependency. Optional; defaults to dbgate.
Port*float64The host port to bind the underlying container to.
DbGateContainerResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder