Method RecordAppendIssuedAsync
- Namespace
- MailFathom.Application.Mail.Delivery.Drafts
- Assembly
- MailFathom.Application.dll
RecordAppendIssuedAsync(IPersistenceSession, MailDraftId, MailFolderResolution, DateTimeOffset, CancellationToken)
Writes down that an append of the current revision is about to be issued, before the command goes out.
Task RecordAppendIssuedAsync(IPersistenceSession session, MailDraftId draftId, MailFolderResolution destination, DateTimeOffset appendedAt, CancellationToken cancellationToken)
Parameters
sessionIPersistenceSessionThe session the write joins.
draftIdMailDraftIdThe draft being appended.
destinationMailFolderResolutionThe folder binding the copy is appended to.
appendedAtDateTimeOffsetWhen the append was issued.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task
A task that completes when the row is durable.
Exceptions
- ArgumentNullException
Thrown when
sessionordestinationis null.- InvalidOperationException
Thrown when no draft is held under
draftId, or when its current revision was already appended.