Method UnstageAttachmentAsync
- Namespace
- MailFathom.Application.Mail.Delivery.Drafts
- Assembly
- MailFathom.Application.dll
UnstageAttachmentAsync(IPersistenceSession, MailDraftId, MailDraftAttachmentId, CancellationToken)
Takes one staged file back off a draft.
Task<bool> UnstageAttachmentAsync(IPersistenceSession session, MailDraftId draftId, MailDraftAttachmentId attachmentId, CancellationToken cancellationToken)
Parameters
sessionIPersistenceSessionThe session the write joins.
draftIdMailDraftIdThe draft the file was attached to.
attachmentIdMailDraftAttachmentIdThe file to take off.
cancellationTokenCancellationTokenCancels the write.
Returns
Remarks
The octets go with the row, which is what makes cancelling an upload leave nothing of the file behind.
Exceptions
- ArgumentNullException
Thrown when
sessionis null.