Table of Contents

Method DescribeAsync

Namespace
MailFathom.Application.Emails.Extraction.Images
Assembly
MailFathom.Application.dll

DescribeAsync(string, Stream, CancellationToken)

Describes what one image attachment shows.

Task<ImageAttachmentDescription> DescribeAsync(string declaredMediaType, Stream content, CancellationToken cancellationToken)

Parameters

declaredMediaType string

The media type the part declared, which is the sender's claim rather than a fact about the octets.

content Stream

The attachment's decoded octets, read forward from the current position.

cancellationToken CancellationToken

Cancels the read and the provider call.

Returns

Task<ImageAttachmentDescription>

The description, or the reason there is none.

Exceptions

ArgumentNullException

Thrown when an argument is null.

OperationCanceledException

Thrown when the caller cancelled, which is never reported as a refusal.