Table of Contents

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

configuredValue string

The bound value.

name SecretName

The validated name when the value is accepted; otherwise the unspecified default.

Returns

bool

true when the value is an accepted name; otherwise false.

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.