ListmonkBuilderExtensions
Classstaticnet10.0
Provides extension methods for adding listmonk resources to the application model.
namespace Aspire.Hosting;
public static class ListmonkBuilderExtensions{ // ...}16 members
Methods16
Section titled MethodsAddListmonk(IDistributedApplicationBuilder, string, int?)extensionats exportIResourceBuilder<ListmonkResource> Adds a listmonk container resource to the application model. The default image is and the tag is .
WithAdminCredentials(IResourceBuilder<ListmonkResource>, string, IResourceBuilder<ParameterResource>)extensionats exportIResourceBuilder<ListmonkResource> Configures the first-run listmonk Super Admin credentials.
WithAdminPassword(IResourceBuilder<ListmonkResource>, IResourceBuilder<ParameterResource>)extensionats exportIResourceBuilder<ListmonkResource> Configures the first-run listmonk Super Admin password.
WithAdminUser(IResourceBuilder<ListmonkResource>, string)extensionats exportIResourceBuilder<ListmonkResource> Configures the first-run listmonk Super Admin username.
WithAppAddress(IResourceBuilder<ListmonkResource>, string)extensionats exportIResourceBuilder<ListmonkResource> Configures the listmonk web server address.
WithDatabaseMaxIdleConnections(IResourceBuilder<ListmonkResource>, int)extensionats exportIResourceBuilder<ListmonkResource> Configures the maximum number of idle PostgreSQL connections.
WithDatabaseMaxLifetime(IResourceBuilder<ListmonkResource>, string)extensionats exportIResourceBuilder<ListmonkResource> Configures the maximum lifetime for PostgreSQL connections.
WithDatabaseMaxOpenConnections(IResourceBuilder<ListmonkResource>, int)extensionats exportIResourceBuilder<ListmonkResource> Configures the maximum number of open PostgreSQL connections.
WithDatabaseParameters(IResourceBuilder<ListmonkResource>, string)extensionats exportIResourceBuilder<ListmonkResource> Configures additional PostgreSQL DSN parameters.
WithDatabaseSslMode(IResourceBuilder<ListmonkResource>, string)extensionats exportIResourceBuilder<ListmonkResource> Configures the PostgreSQL SSL mode used by listmonk.
WithGroupId(IResourceBuilder<ListmonkResource>, int)extensionats exportIResourceBuilder<ListmonkResource> Configures the group ID used by the listmonk container entrypoint.
WithReference(IResourceBuilder<ListmonkResource>, IResourceBuilder<PostgresDatabaseResource>)extensionats exportIResourceBuilder<ListmonkResource> References a
ApplicationModel.PostgresDatabaseResource as the PostgreSQL database for the listmonk resource. WithTimeZone(IResourceBuilder<ListmonkResource>, string)extensionats exportIResourceBuilder<ListmonkResource> Configures the time zone used by the listmonk container.
WithUploadsBindMount(IResourceBuilder<ListmonkResource>, string)extensionats exportIResourceBuilder<ListmonkResource> Adds a bind mount for listmonk media uploads.
WithUploadsVolume(IResourceBuilder<ListmonkResource>, string?)extensionats exportIResourceBuilder<ListmonkResource> Adds a named volume for listmonk media uploads.
WithUserId(IResourceBuilder<ListmonkResource>, int)extensionats exportIResourceBuilder<ListmonkResource> Configures the user ID used by the listmonk container entrypoint.