Table of Contents

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

appends MailboxCopyAppender

Puts each revision into the drafts folder, in the order that keeps it one copy.

localFiler LocalMailFiler

Files each revision into the local drafts folder instead, on an account MailFathom holds alone.

writeSessions IMailboxWriteSessionFactory

Opens the one session able to change a mailbox, which a removal needs of its own.

destinations MailboxDestinationResolver

Turns the drafts role into the folder of this account it means.

drafts IMailDraftStore

Keeps the durable account of every draft and every copy of one.

transportSecurityPolicies IMailTransportSecurityPolicyReader

Supplies the connection and authentication policy the commands obey.

commitPolicy OptimisticConcurrencyRetryPolicy

Commits each movement of the draft.

timeProvider TimeProvider

Stamps everything the record notes.

Exceptions

ArgumentNullException

Thrown when a collaborator is null.