Method WriteContentToAsync
- Namespace
- MailFathom.Application.EmailContent.Attachments
- Assembly
- MailFathom.Application.dll
WriteContentToAsync(Stream, CancellationToken)
Writes the attachment's decoded octets, and nothing else, to the destination.
Task WriteContentToAsync(Stream destination, CancellationToken cancellationToken)
Parameters
destinationStreamWhere the octets are written.
cancellationTokenCancellationTokenCancels the copy when the reader disconnects.
Returns
- Task
A task that completes once the whole attachment has been written.
Exceptions
- ArgumentNullException
Thrown when
destinationis null.