Method ReportIncompleteRunAsync
- Namespace
- MailFathom.Application.Notifications
- Assembly
- MailFathom.Application.dll
ReportIncompleteRunAsync(MailAccountId, int, int, CancellationToken)
Reports a run that ended with folders it did not finish.
public Task<bool> ReportIncompleteRunAsync(MailAccountId account, int failedFolderCount, int scheduledFolderCount, CancellationToken cancellationToken)
Parameters
accountMailAccountIdThe account the run was over.
failedFolderCountintHow many of the run's folders did not finish.
scheduledFolderCountintHow many folders the run scheduled.
cancellationTokenCancellationTokenCancels the raise.
Returns
Remarks
A run that finished everything it scheduled says nothing, because a working mailbox is not news. The row leads nowhere: there is nothing for the person to open, and the account will try again on its own.
Exceptions
- ArgumentOutOfRangeException
Thrown when either count is negative.