Table of Contents

Constructor MailDraftFiler

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

MailDraftFiler(IMailboxWriteSessionFactory, MailboxDestinationResolver, IEmailContentStore, IMailDraftStore, IMailTransportSecurityPolicyReader, OptimisticConcurrencyRetryPolicy, TimeProvider)

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

public MailDraftFiler(IMailboxWriteSessionFactory writeSessions, MailboxDestinationResolver destinations, IEmailContentStore contentStore, IMailDraftStore drafts, IMailTransportSecurityPolicyReader transportSecurityPolicies, OptimisticConcurrencyRetryPolicy commitPolicy, TimeProvider timeProvider)

Parameters

writeSessions IMailboxWriteSessionFactory

Opens the one session able to change a mailbox.

destinations MailboxDestinationResolver

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

contentStore IEmailContentStore

Holds the stored MIME each revision is appended from.

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 the copy's internal date and everything the record notes.

Exceptions

ArgumentNullException

Thrown when a collaborator is null.