Method AppendAsync
- Namespace
- MailFathom.Application.Mail.Mutations.Audit
- Assembly
- MailFathom.Application.dll
AppendAsync(IPersistenceSession, MailboxMutationAuditEntry, CancellationToken)
Appends one entry to the trail.
Task AppendAsync(IPersistenceSession session, MailboxMutationAuditEntry entry, CancellationToken cancellationToken)
Parameters
sessionIPersistenceSessionThe session the append is staged in.
entryMailboxMutationAuditEntryThe entry to keep.
cancellationTokenCancellationTokenCancels the staging.
Returns
- Task
A task that completes once the append is staged.
Remarks
An entry whose identity is already in the trail is left alone rather than duplicated, so a retried append after a commit whose answer was lost keeps one entry per mutation ending.