Interface IRootSettingsDocumentWriter
- Namespace
- MailFathom.Infrastructure.Persistence.Settings
- Assembly
- MailFathom.Infrastructure.dll
Commits a persisted configuration document over the version it was authored against.
public interface IRootSettingsDocumentWriter
Remarks
The contract is the writing half of IRootSettingsDocumentReader and holds nothing about what a document may contain: which paths are writable, whether the configuration it produces binds, and whether it carries a secret as material are decisions taken before a candidate reaches here. What this decides is the one thing only the database can decide — whether the document it is replacing is still the document the caller read.
Methods
- CommitAsync(string, long, CancellationToken)
Replaces the persisted configuration document, if it still stands at the expected version.