Table of Contents

Method TryFindCovering

Namespace
MailFathom.Application.Configuration
Assembly
MailFathom.Application.dll

TryFindCovering(string, out string?)

Finds the refused setting a write would carry.

public static bool TryFindCovering(string configurationPath, out string? refusedSetting)

Parameters

configurationPath string

The path a write targets, which may name a refused setting, a value nested beneath one, or a section containing one.

refusedSetting string

The refused setting the write would reach, when it reaches one; otherwise null.

Returns

bool

true when the path may only come from beneath the persisted layer.

Remarks

The match runs both ways, because a write carries the subtree it names rather than a single value. A path beneath a refused section is the credential half of it; a path containing one — a write addressed at Persistence, or at Secrets — would persist the refused setting as a child, and the deployment would then be locked out of its own configuration by a write that had been validated and accepted, since the next start refuses the whole document. A more specific write reaches neither and is unaffected.

Exceptions

ArgumentException

Thrown when configurationPath is null, empty, or white space.