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
sessionIPersistenceSessionThe session the write joins, which is the one the local disposition is applied in.
recordIdMailboxMutationRecordIdThe delete.
settledAtDateTimeOffsetWhen the folder was read.
cancellationTokenCancellationTokenCancels 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
sessionis null.- InvalidOperationException
Thrown when no record carries
recordId.