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
declaredMediaTypestringThe media type the part declared, which is the sender's claim rather than a fact about the octets.
contentStreamThe attachment's decoded octets, read forward from the current position.
cancellationTokenCancellationTokenCancels 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.