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
writeSessionsIMailboxWriteSessionFactoryOpens the one session able to change a mailbox.
destinationsMailboxDestinationResolverTurns the role a filing names into the folder of this account it means.
contentStoreIEmailContentStoreHolds the stored MIME the copy is appended from.
filingsIOutgoingMailFilingStoreKeeps the durable account of every copy that has been filed.
transportSecurityPoliciesIMailTransportSecurityPolicyReaderSupplies the connection and authentication policy the append obeys.
commitPolicyOptimisticConcurrencyRetryPolicyCommits each movement of the filing row.
timeProviderTimeProviderStamps the copy's internal date and everything the row records.
Exceptions
- ArgumentNullException
Thrown when a collaborator is null.