Method RecordAppendConfirmedAsync
- Namespace
- MailFathom.Application.Mail.Delivery.Drafts
- Assembly
- MailFathom.Application.dll
RecordAppendConfirmedAsync(IPersistenceSession, MailDraftId, AppendedMailCopy, CancellationToken)
Writes down what the server said about the copy it accepted.
Task RecordAppendConfirmedAsync(IPersistenceSession session, MailDraftId draftId, AppendedMailCopy copy, CancellationToken cancellationToken)
Parameters
sessionIPersistenceSessionThe session the write joins.
draftIdMailDraftIdThe draft that was appended.
copyAppendedMailCopyWhat the server named, which may name no placement at all.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task
A task that completes when the copy is confirmed.
Exceptions
- ArgumentNullException
Thrown when
sessionorcopyis null.- InvalidOperationException
Thrown when no copy of the current revision is awaiting confirmation.