Table of Contents

Method RecordNextRunDue

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

RecordNextRunDue(MailAccountId, TimeSpan, int)

Records the wait one account is about to take, and the failure count that wait was grown from.

public void RecordNextRunDue(MailAccountId accountId, TimeSpan delayBeforeNextRun, int consecutiveFailureCount)

Parameters

accountId MailAccountId

The account that is waiting.

delayBeforeNextRun TimeSpan

How long it waits before its next run.

consecutiveFailureCount int

How many of its runs failed in a row; zero once one succeeds.

Remarks

The instant is recorded rather than the delay, because a status surface is read at a moment the supervisor knows nothing about: a delay would have to be aged by whoever read it, and an instant is already the answer.

Exceptions

ArgumentOutOfRangeException

Thrown when consecutiveFailureCount is negative.