Constructor MailDraftFiler
- Namespace
- MailFathom.Application.Mail.Delivery.Drafts
- Assembly
- MailFathom.Application.dll
MailDraftFiler(MailboxCopyAppender, LocalMailFiler, IMailboxWriteSessionFactory, MailboxDestinationResolver, IMailDraftStore, IMailTransportSecurityPolicyReader, OptimisticConcurrencyRetryPolicy, TimeProvider)
Initializes the filer from the append it files through and the record it writes each copy onto.
public MailDraftFiler(MailboxCopyAppender appends, LocalMailFiler localFiler, IMailboxWriteSessionFactory writeSessions, MailboxDestinationResolver destinations, IMailDraftStore drafts, IMailTransportSecurityPolicyReader transportSecurityPolicies, OptimisticConcurrencyRetryPolicy commitPolicy, TimeProvider timeProvider)
Parameters
appendsMailboxCopyAppenderPuts each revision into the drafts folder, in the order that keeps it one copy.
localFilerLocalMailFilerFiles each revision into the local drafts folder instead, on an account MailFathom holds alone.
writeSessionsIMailboxWriteSessionFactoryOpens the one session able to change a mailbox, which a removal needs of its own.
destinationsMailboxDestinationResolverTurns the drafts role into the folder of this account it means.
draftsIMailDraftStoreKeeps the durable account of every draft and every copy of one.
transportSecurityPoliciesIMailTransportSecurityPolicyReaderSupplies the connection and authentication policy the commands obey.
commitPolicyOptimisticConcurrencyRetryPolicyCommits each movement of the draft.
timeProviderTimeProviderStamps everything the record notes.
Exceptions
- ArgumentNullException
Thrown when a collaborator is null.