Method OpenAsync
- Namespace
- MailFathom.Application.EmailContent.Attachments
- Assembly
- MailFathom.Application.dll
OpenAsync(StoredEmailContent, int, CancellationToken)
Opens the attachment at one position of a stored message.
Task<OpenedEmailAttachmentResult> OpenAsync(StoredEmailContent content, int attachmentPosition, CancellationToken cancellationToken)
Parameters
contentStoredEmailContentThe stored raw MIME.
attachmentPositionintThe zero-based position in the walk order.
cancellationTokenCancellationTokenCancels the parse.
Returns
- Task<OpenedEmailAttachmentResult>
The opened attachment, or the reason there is none to open.
Exceptions
- ArgumentNullException
Thrown when
contentis null.