Table of Contents

Constructor OutgoingMailFiler

Namespace
MailFathom.Application.Mail.Delivery.Filing
Assembly
MailFathom.Application.dll

OutgoingMailFiler(IMailboxWriteSessionFactory, MailboxDestinationResolver, IEmailContentStore, IOutgoingMailFilingStore, IMailTransportSecurityPolicyReader, OptimisticConcurrencyRetryPolicy, TimeProvider)

Initializes the filer from the session it appends through and the record it writes the copy onto.

public OutgoingMailFiler(IMailboxWriteSessionFactory writeSessions, MailboxDestinationResolver destinations, IEmailContentStore contentStore, IOutgoingMailFilingStore filings, IMailTransportSecurityPolicyReader transportSecurityPolicies, OptimisticConcurrencyRetryPolicy commitPolicy, TimeProvider timeProvider)

Parameters

writeSessions IMailboxWriteSessionFactory

Opens the one session able to change a mailbox.

destinations MailboxDestinationResolver

Turns the role a filing names into the folder of this account it means.

contentStore IEmailContentStore

Holds the stored MIME the copy is appended from.

filings IOutgoingMailFilingStore

Keeps the durable account of every copy that has been filed.

transportSecurityPolicies IMailTransportSecurityPolicyReader

Supplies the connection and authentication policy the append obeys.

commitPolicy OptimisticConcurrencyRetryPolicy

Commits each movement of the filing row.

timeProvider TimeProvider

Stamps the copy's internal date and everything the row records.

Exceptions

ArgumentNullException

Thrown when a collaborator is null.