Constructor MailFlagChangeRecorder
- Namespace
- MailFathom.Application.Mail.Mutations.Authoring
- Assembly
- MailFathom.Application.dll
MailFlagChangeRecorder(AccessAuthorization, MailboxScopeResolver, IAuthoredMailboxTargetReader, IMailboxMutationRecordStore, OptimisticConcurrencyRetryPolicy)
Initializes the use case over the grant it asks first and the record it writes.
public MailFlagChangeRecorder(AccessAuthorization authorization, MailboxScopeResolver scopeResolver, IAuthoredMailboxTargetReader targets, IMailboxMutationRecordStore records, OptimisticConcurrencyRetryPolicy commitPolicy)
Parameters
authorizationAccessAuthorizationAnswers which principal reached this use case.
scopeResolverMailboxScopeResolverAnswers whether a tool may reach the mailbox an email was stored from.
targetsIAuthoredMailboxTargetReaderAnswers where the named email currently is.
recordsIMailboxMutationRecordStoreOpens the durable record one change is carried by.
commitPolicyOptimisticConcurrencyRetryPolicyCommits a call's records together, retrying an optimistic conflict.
Exceptions
- ArgumentNullException
Thrown when a required collaborator is null.