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
authorizationAccessAuthorizationAnswers which principal reached this use case.
scopeResolverMailboxScopeResolverAnswers whether a caller may reach the folder the email is in.
targetsIAuthoredMailboxTargetReaderAnswers where the named email currently is.
deleteDispositionsIAuthoredDeleteEmailDispositionReaderAnswers what the account keeps locally of mail the server has let go of.
submissionMailboxChangeSubmissionRecords the delete, or commits it where the account is held.
commitPolicyOptimisticConcurrencyRetryPolicyCommits the record, retrying an optimistic conflict.
runSignalMailAccountRunSignalBrings the account's next synchronization run forward, which is what carries the delete to the mail server.
timeProviderTimeProviderMeasures the withdrawal window a caller asks for, from the moment the record is written.
Exceptions
- ArgumentNullException
Thrown when a required collaborator is null.