Table of Contents

Constructor MailDraftBook

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

MailDraftBook(IMailDraftStore, IEmailContentStore, OptimisticConcurrencyRetryPolicy, MailDraftFiler, AccessAuthorization, TimeProvider)

Initializes the book from the record it writes and the mailbox it keeps in step.

public MailDraftBook(IMailDraftStore drafts, IEmailContentStore contentStore, OptimisticConcurrencyRetryPolicy retryPolicy, MailDraftFiler filer, AccessAuthorization authorization, TimeProvider timeProvider)

Parameters

drafts IMailDraftStore

Holds the durable account of every draft.

contentStore IEmailContentStore

Holds the composed MIME each revision is.

retryPolicy OptimisticConcurrencyRetryPolicy

Commits the record and the message together.

filer MailDraftFiler

Brings the drafts folder into step with what was written.

authorization AccessAuthorization

Answers whether whoever reached this is admitted to write a draft at all.

timeProvider TimeProvider

Stamps every instant the record carries.

Exceptions

ArgumentNullException

Thrown when a collaborator is null.