addLogto

Method
📦 CommunityToolkit.Aspire.Hosting.Logto v13.6.1
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
namestringThe name of the Logto resource.
postgresPostgresServerResourceThe resource builder for the PostgreSQL server that the Logto will connect to.
databaseNamestringoptional= logto_dbThe PostgreSQL database name Logto should use.
portnumberoptionalThe host port to be configured for the primary endpoint. If `null`, Aspire will assign a random host port.
adminPortnumberoptionalThe host port to be configured for the administrative endpoint. If `null`, Aspire will assign a random host port.
LogtoResource

Applies to

This method applies to the following types: