Table of Contents

Constructor MailRelocationRecorder

Namespace
MailFathom.Application.Mail.Mutations.Authoring
Assembly
MailFathom.Application.dll

MailRelocationRecorder(AccessAuthorization, MailboxScopeResolver, IAuthoredMailboxTargetReader, MailFolderReferenceResolver, MailboxDestinationResolver, IAuthoredDeleteEmailDispositionReader, MailboxChangeSubmission, OptimisticConcurrencyRetryPolicy, MailAccountRunSignal)

Initializes the use case over the grant it asks first, the folder it files into, and the submission it writes through.

public MailRelocationRecorder(AccessAuthorization authorization, MailboxScopeResolver scopeResolver, IAuthoredMailboxTargetReader targets, MailFolderReferenceResolver folderReferences, MailboxDestinationResolver destinations, IAuthoredDeleteEmailDispositionReader deleteDispositions, MailboxChangeSubmission submission, OptimisticConcurrencyRetryPolicy commitPolicy, MailAccountRunSignal runSignal)

Parameters

authorization AccessAuthorization

Answers which principal reached this use case.

scopeResolver MailboxScopeResolver

Answers whether a caller may reach the folder an email is in and the folder it is going to.

targets IAuthoredMailboxTargetReader

Answers where the named email currently is.

folderReferences MailFolderReferenceResolver

Answers which role the folder the email is in plays.

destinations MailboxDestinationResolver

Turns the folder a caller named into the folder on the server it currently means.

deleteDispositions IAuthoredDeleteEmailDispositionReader

Answers what the account keeps locally of mail that leaves the mirror for good.

submission MailboxChangeSubmission

Records the move, or commits it where the account is held.

commitPolicy OptimisticConcurrencyRetryPolicy

Commits the change, retrying an optimistic conflict.

runSignal MailAccountRunSignal

Brings the account's next synchronization run forward, which is what carries the move to the mail server.

Exceptions

ArgumentNullException

Thrown when a required collaborator is null.