Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithDatabaseMaxLifetime

Method
📦 CommunityToolkit.Aspire.Hosting.Listmonk v13.6.1
func (ListmonkResource) 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().

Applies to

This method applies to the following types: