Table of Contents

Method IssueAsync

Namespace
MailFathom.Application.EmailContent.Attachments
Assembly
MailFathom.Application.dll

IssueAsync(StoredEmailId, int, CancellationToken)

Mints one link per attachment of one email, in the order the message's structure was walked.

Task<IReadOnlyList<AttachmentDownloadLink>> IssueAsync(StoredEmailId storedEmailId, int attachmentCount, CancellationToken cancellationToken)

Parameters

storedEmailId StoredEmailId

The email the attachments belong to.

attachmentCount int

How many attachments the message carries.

cancellationToken CancellationToken

Cancels resolving the signing material.

Returns

Task<IReadOnlyList<AttachmentDownloadLink>>

One link per attachment, positionally matching the read's attachment list, or nothing when CanIssueLinks is false.

Exceptions

ArgumentOutOfRangeException

Thrown when attachmentCount is negative.