Skip to content
DocsTry Aspire
DocsTry

addLogto

Method
📦 CommunityToolkit.Aspire.Hosting.Logto v13.5.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addLogto(
name: string,
postgres: PostgresServerResource,
databaseName?: string,
port?: number,
adminPort?: number): 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,
databaseName?: string,
port?: number,
adminPort?: number): LogtoResource
namestring
postgresPostgresServerResource
databaseNamestringoptional= logto_db
portnumberoptional
adminPortnumberoptional
LogtoResource

Applies to

This method applies to the following types: