Table of Contents

Method ReadOutstandingLocalErasuresAsync

Namespace
MailFathom.Application.Mail.Mutations
Assembly
MailFathom.Application.dll

ReadOutstandingLocalErasuresAsync(MailAccountId, int, CancellationToken)

Reads the mutations of one account that have not completed and were opened to erase MailFathom's own copy, with the folder binding each was recorded against.

Task<IReadOnlyList<OutstandingMailboxMutation>> ReadOutstandingLocalErasuresAsync(MailAccountId account, int limit, CancellationToken cancellationToken)

Parameters

account MailAccountId

The account whose mutations are read.

limit int

The greatest number of records to return.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<IReadOnlyList<OutstandingMailboxMutation>>

The outstanding records opened as Erasure, oldest first, at most limit of them.

Remarks

The same answer as the unfiltered read, narrowed for a pass that can do only one kind of work: a held account runs its erasures and issues nothing else, so every other record is left out of its page for the reason a record inside its hold is — a page spent on records the pass cannot act on is a page its real backlog does not get. The narrowing is the mark rather than the kind of change, because a delete a restore opened for the source is a delete too, and one outstanding on an account that is held again would otherwise fill the page forever.

Exceptions

ArgumentOutOfRangeException

Thrown when limit is not positive.