Table of Contents

Constructor MailDeletionRecorder

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

MailDeletionRecorder(AccessAuthorization, MailboxScopeResolver, IAuthoredMailboxTargetReader, IAuthoredDeleteEmailDispositionReader, MailboxChangeSubmission, OptimisticConcurrencyRetryPolicy, MailAccountRunSignal, TimeProvider)

Initializes the use case over the grant it asks first, the email it is about, and the submission it writes through.

public MailDeletionRecorder(AccessAuthorization authorization, MailboxScopeResolver scopeResolver, IAuthoredMailboxTargetReader targets, IAuthoredDeleteEmailDispositionReader deleteDispositions, MailboxChangeSubmission submission, OptimisticConcurrencyRetryPolicy commitPolicy, MailAccountRunSignal runSignal, TimeProvider timeProvider)

Parameters

authorization AccessAuthorization

Answers which principal reached this use case.

scopeResolver MailboxScopeResolver

Answers whether a caller may reach the folder the email is in.

targets IAuthoredMailboxTargetReader

Answers where the named email currently is.

deleteDispositions IAuthoredDeleteEmailDispositionReader

Answers what the account keeps locally of mail the server has let go of.

submission MailboxChangeSubmission

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

commitPolicy OptimisticConcurrencyRetryPolicy

Commits the record, retrying an optimistic conflict.

runSignal MailAccountRunSignal

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

timeProvider TimeProvider

Measures the withdrawal window a caller asks for, from the moment the record is written.

Exceptions

ArgumentNullException

Thrown when a required collaborator is null.