Class ConfiguredSecretDiscovery
- Namespace
- MailFathom.Infrastructure.Secrets.Discovery
- Assembly
- MailFathom.Infrastructure.dll
Finds every secret-bearing setting in a bound options graph.
public static class ConfiguredSecretDiscovery
- Inheritance
-
ConfiguredSecretDiscovery
- Inherited Members
Remarks
This is what makes ConfiguredSecret useful as a marker: the walk discovers settings by type, so a secret-bearing setting added long after this code was written is validated, resolved, and erased without anyone registering it. An explicit call list cannot make that guarantee, which is the measured need that justifies reflection here. The walk runs once, at startup, over a bound options object of a few dozen properties.
It descends only into types this repository owns, so it cannot wander into a framework object graph, and it guards against a cycle because options types are ordinary classes and nothing forbids a back-reference.
Methods
- FindSecretBearingSettings(object, string)
Walks a bound options object and reports its secret-bearing settings.