Constructor EmailContentReader
- Namespace
- MailFathom.Application.Emails.GetEmailContent
- Assembly
- MailFathom.Application.dll
EmailContentReader(IStoredEmailSummaryReader, IEmailContentStore, IEmailContentRenderer, IEmailContentRepairRequestStore, MailboxScopeResolver, IAttachmentDownloadLinkIssuer, SensitiveContentEgressGuard, EmailContentReadOptions, IMailboxReadTelemetry)
Initializes the use case.
public EmailContentReader(IStoredEmailSummaryReader summaryReader, IEmailContentStore contentStore, IEmailContentRenderer renderer, IEmailContentRepairRequestStore repairRequestStore, MailboxScopeResolver scopeResolver, IAttachmentDownloadLinkIssuer linkIssuer, SensitiveContentEgressGuard egressGuard, EmailContentReadOptions readOptions, IMailboxReadTelemetry readTelemetry)
Parameters
summaryReaderIStoredEmailSummaryReaderReads one stored email's summary by its identity.
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.
Exceptions
- ArgumentNullException
Thrown when any argument is null.