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
draftsIMailDraftStoreHolds the durable account of every draft.
contentStoreIEmailContentStoreHolds the composed MIME each revision is.
retryPolicyOptimisticConcurrencyRetryPolicyCommits the record and the message together.
filerMailDraftFilerBrings the drafts folder into step with what was written.
authorizationAccessAuthorizationAnswers whether whoever reached this is admitted to write a draft at all.
timeProviderTimeProviderStamps every instant the record carries.
Exceptions
- ArgumentNullException
Thrown when a collaborator is null.