Method RetireAsync
- Assembly
- MailFathom.Application.dll
RetireAsync(MailAccountId, MailFolderAlias, DeleteLeftFlagged, StoredEmailId?, CancellationToken)
Stops following an occurrence whose erased message the run has stored again, or found it could not.
public Task RetireAsync(MailAccountId account, MailFolderAlias folder, DeleteLeftFlagged undeleted, StoredEmailId? restoredAs, CancellationToken cancellationToken)
Parameters
accountMailAccountIdThe account the occurrence belongs to.
folderMailFolderAliasThe folder the occurrence is in.
undeletedDeleteLeftFlaggedOne of the occurrences a follow-up returned as awaiting restore.
restoredAsStoredEmailId?The local email the message was stored again as, or null when it was not.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task
A task that completes when the record is gone.
Remarks
A message stored again is announced as changed in its folder, as a kept row brought back is, because an open client has to learn that a message it was told had gone is back.
Exceptions
- ArgumentNullException
Thrown when
undeletedis null.