Method ResolveSecrets
- Namespace
- MailFathom.Infrastructure.Mail
- Assembly
- MailFathom.Infrastructure.dll
ResolveSecrets(MailAccountSecretOptions?)
Gets the secret block a submission connection resolves its password from.
public MailAccountSecretOptions ResolveSecrets(MailAccountSecretOptions? accountSecrets)
Parameters
accountSecretsMailAccountSecretOptionsThe account's own secret block, which a rejected configuration may have left absent.
Returns
- MailAccountSecretOptions
This block's secrets when it names a password reference; otherwise the account's, or an empty block when the account has none.
Remarks
A block present but naming no password reference reads as absent, so "Secrets": {} falls back to the
account's credential instead of resolving nothing and failing the connection with a missing-material error.