Constructor PostgresConnectionSettings
- Namespace
- MailFathom.Infrastructure.Persistence.Connections
- Assembly
- MailFathom.Infrastructure.dll
PostgresConnectionSettings(string?, ConfiguredSecret?, ConfiguredSecret?)
Names where the PostgreSQL connection string and its password come from.
public PostgresConnectionSettings(string? ConfiguredConnectionString, ConfiguredSecret? ConnectionStringSecret, ConfiguredSecret? Password)
Parameters
ConfiguredConnectionStringstringThe connection string from ordinary configuration, typically
ConnectionStrings:mailfathom, or null whenConnectionStringSecretsupplies it.ConnectionStringSecretConfiguredSecretThe block referencing a complete connection string held in a secret store, or null when ordinary configuration supplies it. A connection string is more than a password, so a store-backed deployment usually keeps it whole and rotates one artifact rather than splitting the credential across two systems.
PasswordConfiguredSecretThe block referencing the password alone, or null when the connection string already carries every credential or the deployment authenticates without one.
Remarks
The three sources are deliberately independent settings rather than one switch, because a deployment picks the shape its provisioning system already has. Supplying a password twice is rejected during composition; supplying no connection string at all is rejected there too.