Method AppendAsync
- Namespace
- MailFathom.Application.Retrieval.AskMail.Audit
- Assembly
- MailFathom.Application.dll
AppendAsync(IPersistenceSession, MailAnsweringAuditEntry, CancellationToken)
Appends one entry to the record.
Task AppendAsync(IPersistenceSession session, MailAnsweringAuditEntry entry, CancellationToken cancellationToken)
Parameters
sessionIPersistenceSessionThe session the append is staged in.
entryMailAnsweringAuditEntryThe entry to keep.
cancellationTokenCancellationTokenCancels the staging.
Returns
- Task
A task that completes once the append is staged.
Remarks
An entry whose run and account are already in the record is left alone rather than duplicated, so a retried append after a commit whose answer was lost keeps one entry per run per account.