Table of Contents

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

session IPersistenceSession

The session the write joins.

draftId MailDraftId

The draft the file was attached to.

attachmentId MailDraftAttachmentId

The file to take off.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<bool>

true when a file was taken off; false when the draft held none under that identifier.

Remarks

The octets go with the row, which is what makes cancelling an upload leave nothing of the file behind.

Exceptions

ArgumentNullException

Thrown when session is null.