Interface IAttachmentDownloadLinkIssuer
- Namespace
- MailFathom.Application.EmailContent.Attachments
- Assembly
- MailFathom.Application.dll
Mints the short-lived capabilities a read hands back in place of a file's octets.
public interface IAttachmentDownloadLinkIssuer
Remarks
The port exists so the signature, the key material, and the address stay inside one adapter. A use case decides whether a caller asked for links and which attachments exist; it never composes a URL and never touches key material.
One email's links are minted together rather than one at a time, because the key behind the signature is resolved per operation and erased with it: minting per attachment would resolve, decode, and erase the deployment's key material once for every file a message carries.
Properties
- CanIssueLinks
Gets whether this deployment can mint a link at all.
Methods
- IssueAsync(StoredEmailId, int, CancellationToken)
Mints one link per attachment of one email, in the order the message's structure was walked.