Class UserSettingsDocument
- Namespace
- MailFathom.Infrastructure.Persistence.Users
- Assembly
- MailFathom.Infrastructure.dll
One user's persisted record: the envelope the deployment keys them by, and the document they configured.
public sealed record UserSettingsDocument : IEquatable<UserSettingsDocument>
- Inheritance
-
UserSettingsDocument
- Implements
- Inherited Members
Remarks
The envelope travels with the document because the two answer different halves of one question and a caller that read one would immediately ask for the other: the document says what this user configured, and the version beside it says which document a change to it would be composed over. Reading them apart would leave a writer stating a version it read in a second query, which is the race the version exists to refuse.
Constructors
- UserSettingsDocument(UserId, string, string, long)
One user's persisted record: the envelope the deployment keys them by, and the document they configured.
Fields
- MaximumOctets
The largest user document this build binds, and therefore the largest one it will persist.
Properties
- DisplayName
The label the deployment tells this user apart by, which nothing resolves them by.
- Json
The user's configurable record, as the JSON object the row holds.
- MailAccounts
Gets the mail accounts assigned to the user, in the order they were created in.
- OrganizationId
Gets the organization the user belongs to, or null for a user in none.
- Policies
Gets the settings policies that govern the record, as they stood when it was read.
- User
The user the row belongs to.
- Version
The version the document was read at, which a writer states and is refused against.