Constructor MailboxMutationPerformer
- Namespace
- MailFathom.Application.Mail.Mutations
- Assembly
- MailFathom.Application.dll
MailboxMutationPerformer(IMailboxMutationRecordStore, IMailboxWriteSessionFactory, OptimisticConcurrencyRetryPolicy, MailboxMutationOptions)
Initializes the performer from the record store, the write session it acts through, and its attempt bound.
public MailboxMutationPerformer(IMailboxMutationRecordStore store, IMailboxWriteSessionFactory writeSessionFactory, OptimisticConcurrencyRetryPolicy commitPolicy, MailboxMutationOptions options)
Parameters
storeIMailboxMutationRecordStoreKeeps the durable record every mutation is written to.
writeSessionFactoryIMailboxWriteSessionFactoryOpens the one session able to change a mailbox.
commitPolicyOptimisticConcurrencyRetryPolicyCommits the record's first write, retrying an optimistic conflict.
optionsMailboxMutationOptionsSupplies how many attempts one mutation may spend.
Exceptions
- ArgumentNullException
Thrown when a required collaborator is null.
- ArgumentOutOfRangeException
Thrown when the configured attempt bound is below one.