Method RecordAppendConfirmedAsync
- Namespace
- MailFathom.Application.Mail.Delivery.Filing
- Assembly
- MailFathom.Application.dll
RecordAppendConfirmedAsync(IPersistenceSession, OutgoingEmailId, OutgoingMailFiling, AppendedMailCopy, CancellationToken)
Writes down what the server said about the copy it accepted.
Task RecordAppendConfirmedAsync(IPersistenceSession session, OutgoingEmailId outgoingEmailId, OutgoingMailFiling filing, AppendedMailCopy copy, CancellationToken cancellationToken)
Parameters
sessionIPersistenceSessionThe session the write joins.
outgoingEmailIdOutgoingEmailIdThe record the copy was filed from.
filingOutgoingMailFilingWhich place the copy went into.
copyAppendedMailCopyWhat the server named, which may name no placement at all.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task
A task that completes when the row is confirmed.
Exceptions
- ArgumentNullException
Thrown when
sessionorcopyis null.- InvalidOperationException
Thrown when no row carries that identity, or when it is not awaiting confirmation.