Table of Contents

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

session IPersistenceSession

The session the append is staged in.

entry MailboxMutationAuditEntry

The entry to keep.

cancellationToken CancellationToken

Cancels 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.