Table of Contents

Class MailAccountSupervision

Namespace
MailFathom.Application.Synchronization.Administration
Assembly
MailFathom.Application.dll

Which replica of a deployment is supervising one account, and how long its hold runs for.

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

Remarks

Read from the lease table rather than from anything a process remembers, which is what makes it the deployment's answer: a replica that has never supervised an account still reports the replica that is supervising it.

The instant is when the hold would run out if its holder stopped renewing, and not a promise about the work. A hold held well into the future is a replica that was answering the database moments ago, which is the whole of what the deployment durably knows about a run in another process — the scheduling state that would say more is deliberately not durable, for the reason MailSynchronizationRunLedger records.

Constructors

MailAccountSupervision(ReplicaIdentity, DateTimeOffset)

Which replica of a deployment is supervising one account, and how long its hold runs for.

Properties

HeldUntil

When the hold expires unless it is renewed before then.

Replica

The replica holding the account's supervision.