AddLogto
Method
func (DistributedApplicationBuilder) AddLogto( name string, postgres PostgresServerResource, options ...*AddLogtoOptions,) LogtoResourceSignature
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, options ...*AddLogtoOptions,) LogtoResourceParameters
namestringThe name of the Logto resource.postgresPostgresServerResource The resource builder for the PostgreSQL server that the Logto will connect to.options...*AddLogtoOptions Optional settings, described under Options.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.Returns
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:
type
DistributedApplicationBuilder