Method ResolveAsync
- Namespace
- MailFathom.Infrastructure.Secrets.References
- Assembly
- MailFathom.Infrastructure.dll
ResolveAsync(string?, CancellationToken)
Resolves one configured value into owned material.
Task<SecretResolutionResult> ResolveAsync(string? configuredValue, CancellationToken cancellationToken)
Parameters
configuredValuestringThe bound value. It is a
<scheme>:<target>reference under a reference-accepting SecretValueInterpretation, and the material itself under an inline one.cancellationTokenCancellationTokenCancels the retrieval, including at the file-system boundary.
Returns
- Task<SecretResolutionResult>
The material, whose ownership passes to the caller, or a named failure.
Remarks
Neither the returned failure nor anything derived from it may carry the target or the material.