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
configurationPathstringThe path a write targets, which may name a refused setting, a value nested beneath one, or a section containing one.
refusedSettingstringThe refused setting the write would reach, when it reaches one; otherwise null.
Returns
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
configurationPathis null, empty, or white space.