Table of Contents

Class ConfigurationStorageCatalog

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

Decides, in compiled code, which store each writable configuration path is persisted in.

public static class ConfigurationStorageCatalog
Inheritance
ConfigurationStorageCatalog
Inherited Members

Remarks

Where a setting lives cannot be answered per call: a path that could land in two places is a value with two truths, and a later reader would have to choose between them with nothing to choose on. So the answer is a catalog rather than an argument. A path no entry names is persisted in RootDocument, and a path an entry names is persisted in that entry's store and excluded from the root document, which is what keeps one setting to one home.

The catalog takes a configuration path and nothing else. It reads no configuration, accepts no relation name, and exposes no way to register an entry, because a store an API caller or a configuration value could ask for would be a relation this deployment never reviewed and a document nothing knows how to read back. Adding a special route is therefore a reviewed change to this file: an entry here, a typed projection for the document it stores, a table with its additive migration, and round-trip tests over the three.

Refusing a write is part of the same decision and is reached through the same method. Routing and the bootstrap deny-list are one answer rather than two calls a caller could make one of and forget the other, so a write that resolves a store has already been judged against BootstrapOnlySettings.

Methods

FindRoutedElsewhereIn(IEnumerable<string>)

Finds the settings a root-document candidate carries that the catalog persists somewhere else.

ResolveWriteTarget(string)

Resolves where a write to a configuration path lands, or why it may not be written.