Table of Contents

Interface ISettingsPolicyStore

Namespace
MailFathom.Infrastructure.Persistence.Policies
Assembly
MailFathom.Infrastructure.dll

Reads and commits the settings policy one scope holds.

public interface ISettingsPolicyStore

Remarks

A key lookup in both directions: one call is one scope's row, so no shape here reads two organizations' policies or writes the deployment's beside an organization's. It holds nothing about what a policy may state — whether a path names a property, whether a value binds, and whether a property's class admits the statement are decided before a candidate reaches here. What this decides is what only the database can: whether the organization exists, and whether the policy being replaced is still the one the caller read.

A scope that stores no row and a scope whose row states nothing are one answer on the way out, because they are one fact about what the scope governs; the version tells them apart for the writer that has to.

Methods

CommitAsync(Guid?, string, long, GovernedRecordsToJudge, CancellationToken)

Replaces the policy one scope holds, if it still stands at the expected version.

ReadAsync(Guid?, CancellationToken)

Reads the policy one scope holds.