Constructor EmailAttachmentDownloadReader
- Namespace
- MailFathom.Application.Emails.DownloadAttachment
- Assembly
- MailFathom.Application.dll
EmailAttachmentDownloadReader(IStoredEmailSummaryReader, IEmailContentStore, IEmailAttachmentContentReader, IEmailContentRepairRequestStore, MailboxScopeResolver, AccessAuthorization)
Initializes the use case.
public EmailAttachmentDownloadReader(IStoredEmailSummaryReader summaryReader, IEmailContentStore contentStore, IEmailAttachmentContentReader attachmentContentReader, IEmailContentRepairRequestStore repairRequestStore, MailboxScopeResolver scopeResolver, AccessAuthorization authorization)
Parameters
summaryReaderIStoredEmailSummaryReaderReads one stored email's summary by its identity.
contentStoreIEmailContentStoreReads the raw MIME stored for an email, with what was recorded about it.
attachmentContentReaderIEmailAttachmentContentReaderOpens one attachment of that stored MIME by its position.
repairRequestStoreIEmailContentRepairRequestStoreRecords durably that a local copy has to be fetched or read again.
scopeResolverMailboxScopeResolverAnswers whether a tool may read the mailbox an email was stored from.
authorizationAccessAuthorizationAnswers which principal reached this use case.
Exceptions
- ArgumentNullException
Thrown when any argument is null.