Method FindSecretBearingSettings
- Namespace
- MailFathom.Infrastructure.Secrets.Discovery
- Assembly
- MailFathom.Infrastructure.dll
FindSecretBearingSettings(object, string)
Walks a bound options object and reports its secret-bearing settings.
public static DiscoveredSecretSettings FindSecretBearingSettings(object boundOptions, string rootConfigurationPath)
Parameters
boundOptionsobjectThe bound options root, for example the object behind the
MailSynchronizationsection.rootConfigurationPathstringThe configuration path of that root, which prefixes every reported path.
Returns
- DiscoveredSecretSettings
The discovered blocks and the paths of raw string properties that name a secret.
Exceptions
- ArgumentNullException
Thrown when
boundOptionsis null.- ArgumentException
Thrown when
rootConfigurationPathis null, empty, or whitespace.