Method TryCreate
- Namespace
- MailFathom.Infrastructure.Secrets
- Assembly
- MailFathom.Infrastructure.dll
TryCreate(string?, out SecretName)
Reads a configured name.
public static bool TryCreate(string? configuredValue, out SecretName name)
Parameters
configuredValuestringThe bound value.
nameSecretNameThe validated name when the value is accepted; otherwise the unspecified default.
Returns
Remarks
Surrounding whitespace is not trimmed away: a name that needs trimming is two spellings of one identity, and only one of them would match a comparison made elsewhere.