Constructor MailboxChangeReleaser
- Namespace
- MailFathom.Application.Mail.Mutations.Authoring
- Assembly
- MailFathom.Application.dll
MailboxChangeReleaser(AccessAuthorization, MailboxScopeResolver, IMailboxMutationRecordStore, OptimisticConcurrencyRetryPolicy, MailAccountRunSignal)
Initializes the use case over the grant it asks first, the records it releases, and the run that carries them.
public MailboxChangeReleaser(AccessAuthorization authorization, MailboxScopeResolver scopeResolver, IMailboxMutationRecordStore records, OptimisticConcurrencyRetryPolicy commitPolicy, MailAccountRunSignal runSignal)
Parameters
authorizationAccessAuthorizationAnswers which principal reached this use case.
scopeResolverMailboxScopeResolverAnswers whose records these are and which folders the caller may reach.
recordsIMailboxMutationRecordStoreReads the durable records and lifts the hold on them.
commitPolicyOptimisticConcurrencyRetryPolicyCommits a call's releases together, retrying an optimistic conflict.
runSignalMailAccountRunSignalBrings each released record's account run forward, which is what carries the change to the mail server.
Exceptions
- ArgumentNullException
Thrown when a required collaborator is null.