Method RecordWithdrawnAsync
- Namespace
- MailFathom.Application.Mail.Delivery.Filing
- Assembly
- MailFathom.Application.dll
RecordWithdrawnAsync(IPersistenceSession, OutgoingEmailId, OutgoingMailFiling, DateTimeOffset, CancellationToken)
Writes down that the copy has been taken back out of its folder.
Task RecordWithdrawnAsync(IPersistenceSession session, OutgoingEmailId outgoingEmailId, OutgoingMailFiling filing, DateTimeOffset withdrawnAt, CancellationToken cancellationToken)
Parameters
sessionIPersistenceSessionThe session the write joins.
outgoingEmailIdOutgoingEmailIdThe record the copy was filed from.
filingOutgoingMailFilingWhich place the copy was in.
withdrawnAtDateTimeOffsetWhen the folder stopped holding it.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task
A task that completes when the row is marked withdrawn.
Exceptions
- ArgumentNullException
Thrown when
sessionis null.- InvalidOperationException
Thrown when no row carries that identity.