Table of Contents

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

authorization AccessAuthorization

Answers which principal reached this use case.

scopeResolver MailboxScopeResolver

Answers whose records these are and which folders the caller may reach.

records IMailboxMutationRecordStore

Reads the durable records and lifts the hold on them.

commitPolicy OptimisticConcurrencyRetryPolicy

Commits a call's releases together, retrying an optimistic conflict.

runSignal MailAccountRunSignal

Brings 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.