Class SecretResolutionResult
- Namespace
- MailFathom.Infrastructure.Secrets.Resolution
- Assembly
- MailFathom.Infrastructure.dll
The outcome of resolving one secret-bearing configuration value.
public sealed record SecretResolutionResult : IEquatable<SecretResolutionResult>
- Inheritance
-
SecretResolutionResult
- Implements
- Inherited Members
Remarks
An unresolved reference is an expected configuration failure with a named cause rather than an exceptional state, so resolution returns this instead of throwing and the host reports every failure of a startup at once. A failed result carries no material and no target, which is what keeps it safe to include in an operator message.
Properties
- Succeeded
Gets whether material was produced.
Methods
- Failed(SecretResolutionFailure)
Creates a failed result.
- Resolved(ResolvedSecret, SecretMaterialSource)
Creates a successful result that hands ownership of the material to the caller.