Method TryParse
- Namespace
- MailFathom.Infrastructure.Secrets.References
- Assembly
- MailFathom.Infrastructure.dll
TryParse(string?, out SecretReference?, out SecretResolutionFailure)
Parses a configured value as a secret reference.
public static bool TryParse(string? configuredValue, out SecretReference? parsed, out SecretResolutionFailure failure)
Parameters
configuredValuestringThe value bound from configuration.
parsedSecretReferenceThe parsed reference when parsing succeeds; otherwise null.
failureSecretResolutionFailureThe grammar failure when parsing fails. The value is meaningless when this method returns true.