Table of Contents

Method RecordDeleteFlagSettledAsync

Namespace
MailFathom.Application.Mail.Mutations
Assembly
MailFathom.Application.dll

RecordDeleteFlagSettledAsync(IPersistenceSession, MailboxMutationRecordId, DateTimeOffset, CancellationToken)

Writes down that a delete which left its message flagged has been answered for.

Task RecordDeleteFlagSettledAsync(IPersistenceSession session, MailboxMutationRecordId recordId, DateTimeOffset settledAt, CancellationToken cancellationToken)

Parameters

session IPersistenceSession

The session the write joins, which is the one the local disposition is applied in.

recordId MailboxMutationRecordId

The delete.

settledAt DateTimeOffset

When the folder was read.

cancellationToken CancellationToken

Cancels the write.

Returns

Task

A task that completes when the settlement is written.

Remarks

The first settlement is kept. An erased local copy removes the record in the same transaction.

Exceptions

ArgumentNullException

Thrown when session is null.

InvalidOperationException

Thrown when no record carries recordId.