addLogto
Method
interface IDistributedApplicationBuilder { // ... omitted for brevity addLogto( name: string, postgres: PostgresServerResource, databaseName?: string, port?: number, adminPort?: number): LogtoResource;}Signature
method
addLogto builderAdds 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): LogtoResourceParameters
namestringThe name of the Logto resource.postgresPostgresServerResource The resource builder for the PostgreSQL server that the Logto will connect to.databaseName stringoptional= 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.adminPort numberoptionalThe host port to be configured for the administrative endpoint. If `null`, Aspire will assign a random host port.Returns
LogtoResource Applies to
This method applies to the following types: