Table of Contents

Class MailAccountCustodyState

Namespace
MailFathom.Domain.Accounts
Assembly
MailFathom.Domain.dll

What one mail account's custody was last asked to be, and how far the work of granting it has got.

public sealed record MailAccountCustodyState : IEquatable<MailAccountCustodyState>
Inheritance
MailAccountCustodyState
Implements
Inherited Members

Remarks

The pair is read together everywhere a decision turns on custody, because neither value answers on its own: an account asked to hold its mailbox is still mirrored until its outstanding remote mutations have been carried, and one asked to mirror again is still the truth for as long as the restore is appending. See ADR 0034.

Constructors

MailAccountCustodyState(MailAccountCustody, MailAccountCustodyPhase)

What one mail account's custody was last asked to be, and how far the work of granting it has got.

Properties

AppliesRemoteDeletions

Gets whether a disappearance from the source is a deletion this account applies to what it stores.

IsMailFathomTheTruth

Gets whether MailFathom rather than the source server is the truth about this mailbox.

IsSwitchPending

Gets whether the account is being asked to move to a custody it has not reached yet.

Mirrored

The state of an account nobody has switched, which is what a deployment reads for every account it holds.

Phase

Which copy of the mailbox is the truth at this moment.

Requested

The custody an administrator asked for.

RestoreGeneration

Gets which restore of this account is the current one, counted from one and zero for an account that has never restored.