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
storedEmailIdStoredEmailIdThe email the attachments belong to.
attachmentCountintHow many attachments the message carries.
cancellationTokenCancellationTokenCancels 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
attachmentCountis negative.