Method ReadAttachmentContentAsync
- Namespace
- MailFathom.Application.Mail.Delivery.Drafts
- Assembly
- MailFathom.Application.dll
ReadAttachmentContentAsync(MailDraftId, CancellationToken)
Reads the octets of every file staged against one draft, in the order a composition attaches them.
Task<IReadOnlyList<AuthoredEmailAttachment>> ReadAttachmentContentAsync(MailDraftId draftId, CancellationToken cancellationToken)
Parameters
draftIdMailDraftIdThe draft whose files are read.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<IReadOnlyList<AuthoredEmailAttachment>>
The files with their content, empty where the draft has none.
Remarks
The one read here that loads octets, and it is reached only where a message is about to be composed. Everything that lists a draft reads Attachments instead, which is why the description and the content are separate rows.