Table of Contents

Method AppendAsync

Namespace
MailFathom.Application.Rules.History
Assembly
MailFathom.Application.dll

AppendAsync(IPersistenceSession, IReadOnlyList<MailRuleExecution>, CancellationToken)

Appends one batch's executions to the history.

Task AppendAsync(IPersistenceSession session, IReadOnlyList<MailRuleExecution> executions, CancellationToken cancellationToken)

Parameters

session IPersistenceSession

The session the append is staged in, which is the one the batch's evaluations commit through.

executions IReadOnlyList<MailRuleExecution>

The executions to keep, in the order the pass produced them.

cancellationToken CancellationToken

Cancels the staging.

Returns

Task

A task that completes once the append is staged in the session.

Remarks

Staged in the caller's session so a batch's evaluations, the requests they produced, and the record of why are one commit. A rolled-back batch therefore leaves no execution behind for work that was never recorded as done, and the re-evaluation that follows records its own.