Class SettingsPolicyDocument
- Namespace
- MailFathom.Infrastructure.Persistence.Policies
- Assembly
- MailFathom.Infrastructure.dll
The settings policy one scope holds, and the version a change to it is composed over.
public sealed record SettingsPolicyDocument : IEquatable<SettingsPolicyDocument>
- Inheritance
-
SettingsPolicyDocument
- Implements
- Inherited Members
Remarks
The version travels with the document for the reason a user's record carries its own: a writer that read the two apart would state a version it read in a second query, which is the race the version exists to refuse.
Constructors
- SettingsPolicyDocument(Guid?, string, long)
The settings policy one scope holds, and the version a change to it is composed over.
Fields
- MaximumOctets
The largest policy this build reads, and therefore the largest one it will persist.
- StatingNothing
The document a scope that stores no policy is read as: one that states nothing.
- UnwrittenVersion
The version a scope that stores no policy is read at, and the one its first write is composed over.
Properties
- Json
The policy, as the JSON object the row holds.
- OrganizationId
The organization whose policy this is, or null for the deployment's own.
- Version
The version the policy was read at, which is UnwrittenVersion where the scope stores none.
Methods
- Unwritten(Guid?)
Describes the policy of a scope that stores none.