Table of Contents

Constructor UserSettingsDocument

Namespace
MailFathom.Infrastructure.Persistence.Users
Assembly
MailFathom.Infrastructure.dll

UserSettingsDocument(UserId, string, string, long)

One user's persisted record: the envelope the deployment keys them by, and the document they configured.

public UserSettingsDocument(UserId User, string DisplayName, string Json, long Version)

Parameters

User UserId

The user the row belongs to.

DisplayName string

The label the deployment tells this user apart by, which nothing resolves them by.

Json string

The user's configurable record, as the JSON object the row holds.

Version long

The version the document was read at, which a writer states and is refused against.

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.