Table of Contents

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

destination Stream

Where the octets are written.

cancellationToken CancellationToken

Cancels the copy when the reader disconnects.

Returns

Task

A task that completes once the whole attachment has been written.

Exceptions

ArgumentNullException

Thrown when destination is null.