Table of Contents

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

configuredValue string

The value bound from configuration.

parsed SecretReference

The parsed reference when parsing succeeds; otherwise null.

failure SecretResolutionFailure

The grammar failure when parsing fails. The value is meaningless when this method returns true.

Returns

bool

true when the value is a well-formed reference; otherwise false.