Constructor EmailContentReader
- Namespace
- MailFathom.Application.Emails.GetEmailContent
- Assembly
- MailFathom.Application.dll
EmailContentReader(IStoredEmailSummaryReader, IEmailThreadReader, IEmailContentStore, IEmailContentRenderer, IEmailContentRepairRequestStore, MailboxScopeResolver, IAttachmentDownloadLinkIssuer, SensitiveContentEgressGuard, EmailContentReadOptions, IMailboxReadTelemetry, AccessAuthorization)
Initializes the use case.
public EmailContentReader(IStoredEmailSummaryReader summaryReader, IEmailThreadReader threadReader, IEmailContentStore contentStore, IEmailContentRenderer renderer, IEmailContentRepairRequestStore repairRequestStore, MailboxScopeResolver scopeResolver, IAttachmentDownloadLinkIssuer linkIssuer, SensitiveContentEgressGuard egressGuard, EmailContentReadOptions readOptions, IMailboxReadTelemetry readTelemetry, AccessAuthorization authorization)
Parameters
summaryReaderIStoredEmailSummaryReaderReads one stored email's summary by its identity.
threadReaderIEmailThreadReaderReads the messages of the conversation an email belongs to.
contentStoreIEmailContentStoreReads the raw MIME stored for an email, with what was recorded about it.
rendererIEmailContentRendererTurns stored raw MIME into headers, a body, and a description of every attachment.
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.
linkIssuerIAttachmentDownloadLinkIssuerMints the short-lived capability a caller fetches an attachment with.
egressGuardSensitiveContentEgressGuardScans what the message's author wrote before a read publishes it.
readOptionsEmailContentReadOptionsThe bounds on how much body text one call returns.
readTelemetryIMailboxReadTelemetryPublishes the read as the operation it is, beside the call it happened inside.
authorizationAccessAuthorizationAnswers which principal reached this use case.
Exceptions
- ArgumentNullException
Thrown when any argument is null.