Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

ListmonkResource.WithDatabaseMaxLifetime

Method
📦 CommunityToolkit.Aspire.Hosting.Listmonk v13.6.1
type ListmonkResource interface {
// ... omitted for brevity
WithDatabaseMaxLifetime(maxLifetime string) ListmonkResource
}

Signature

methodWithDatabaseMaxLifetimebuilder
Configures the maximum lifetime for PostgreSQL connections.
WithDatabaseMaxLifetime(maxLifetime string) ListmonkResource
maxLifetimestringThe duration value for LISTMONK_db__max_lifetime, for example 300s.
ListmonkResource

The IResourceBuilder.

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

Defined on

This method is defined on the following type: