Method FindConfigurationErrorsAsync
- Namespace
- MailFathom.Infrastructure.Mail
- Assembly
- MailFathom.Infrastructure.dll
FindConfigurationErrorsAsync(ISecretReferenceResolver, CancellationToken)
Resolves every secret and discards the material, reporting what an operator must fix.
public Task<IReadOnlyList<MailAccountSecretConfigurationError>> FindConfigurationErrorsAsync(ISecretReferenceResolver resolver, CancellationToken cancellationToken)
Parameters
resolverISecretReferenceResolverThe resolver that turns references into material.
cancellationTokenCancellationTokenCancels the resolution.
Returns
- Task<IReadOnlyList<MailAccountSecretConfigurationError>>
One error per unresolvable secret, empty when the account's secrets are all reachable.
Remarks
Startup resolves and discards so an unreachable reference fails the host before any worker starts, while each actual use resolves again. Nothing is cached, so material rotated behind an unchanged reference is observed by the next operation with no cache to invalidate.
Exceptions
- ArgumentNullException
Thrown when
resolveris null.