Class ConfigurationWriteTarget
- Namespace
- MailFathom.Application.Configuration
- Assembly
- MailFathom.Application.dll
Carries the store a configuration write lands in, or the reason the setting may not be written at all.
public sealed record ConfigurationWriteTarget : IEquatable<ConfigurationWriteTarget>
- Inheritance
-
ConfigurationWriteTarget
- Implements
- Inherited Members
Remarks
A refused write is a result rather than an exception because the caller acts on it directly: a write is validated before it commits, and an administrator who asked for a setting MailFathom does not persist gets that sentence back as the outcome of their request, in the same shape as an unknown property or a stale version.
The message names the setting and never its value. A key is MailFathom's own name for a setting, in the same class as an account alias, while the values behind the refused settings are a connection string, a credential reference, and a filesystem path the deployment chose.
Properties
- IsWritable
Gets whether the write may proceed.
- RefusalMessage
Gets the sentence naming the setting and where it is configured instead, or null when the write is permitted.
- Route
Gets the store the write lands in, which is a route exactly when IsWritable holds.