Table of Contents

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

authorization AccessAuthorization

Answers which principal reached this use case.

scopeResolver MailboxScopeResolver

Answers whether a tool may reach the mailbox an email was stored from.

targets IAuthoredMailboxTargetReader

Answers where the named email currently is.

records IMailboxMutationRecordStore

Opens the durable record one change is carried by.

commitPolicy OptimisticConcurrencyRetryPolicy

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

Exceptions

ArgumentNullException

Thrown when a required collaborator is null.