Table of Contents

Constructor SettingsPolicyDocument

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

SettingsPolicyDocument(Guid?, string, long)

The settings policy one scope holds, and the version a change to it is composed over.

public SettingsPolicyDocument(Guid? OrganizationId, string Json, long Version)

Parameters

OrganizationId Guid?

The organization whose policy this is, or null for the deployment's own.

Json string

The policy, as the JSON object the row holds.

Version long

The version the policy was read at, which is UnwrittenVersion where the scope stores none.

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.