Table of Contents

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

account MailAccountId

The account the run was over.

failedFolderCount int

How many of the run's folders did not finish.

scheduledFolderCount int

How many folders the run scheduled.

cancellationToken CancellationToken

Cancels the raise.

Returns

Task<bool>

true when a notification was kept.

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.