Constructor MailAccountSupervision
- Assembly
- MailFathom.Application.dll
MailAccountSupervision(ReplicaIdentity, DateTimeOffset)
Which replica of a deployment is supervising one account, and how long its hold runs for.
public MailAccountSupervision(ReplicaIdentity Replica, DateTimeOffset HeldUntil)
Parameters
ReplicaReplicaIdentityThe replica holding the account's supervision.
HeldUntilDateTimeOffsetWhen the hold expires unless it is renewed before then.
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.