Method RecordNextRunDue
- 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
accountIdMailAccountIdThe account that is waiting.
delayBeforeNextRunTimeSpanHow long it waits before its next run.
consecutiveFailureCountintHow 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
consecutiveFailureCountis negative.