Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddLogto

Method
📦 CommunityToolkit.Aspire.Hosting.Logto v13.6.1
func (DistributedApplicationBuilder) AddLogto(
name string,
postgres PostgresServerResource,
options ...*AddLogtoOptions,
) LogtoResource

Signature

methodAddLogtobuilder
Adds a Logto resource to the Aspire distributed application by configuring it with the specified name, associated PostgreSQL server resource, and database name.
AddLogto(
name string,
postgres PostgresServerResource,
options ...*AddLogtoOptions,
) LogtoResource
namestringThe name of the Logto resource.
postgresPostgresServerResourceThe resource builder for the PostgreSQL server that the Logto will connect to.
options...*AddLogtoOptionsOptional settings, described under Options.

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

DatabaseName*stringThe PostgreSQL database name Logto should use.
Port*float64The host port to be configured for the primary endpoint. If null, Aspire will assign a random host port.
AdminPort*float64The host port to be configured for the administrative endpoint. If null, Aspire will assign a random host port.
LogtoResource

The resource builder configured for the added Logto resource.

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

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder