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
authorizationAccessAuthorizationAnswers which principal reached this use case.
scopeResolverMailboxScopeResolverAnswers whether a caller may reach the folder an email is in and the folder it is going to.
targetsIAuthoredMailboxTargetReaderAnswers where the named email currently is.
folderReferencesMailFolderReferenceResolverAnswers which role the folder the email is in plays.
destinationsMailboxDestinationResolverTurns the folder a caller named into the folder on the server it currently means.
deleteDispositionsIAuthoredDeleteEmailDispositionReaderAnswers what the account keeps locally of mail that leaves the mirror for good.
submissionMailboxChangeSubmissionRecords the move, or commits it where the account is held.
commitPolicyOptimisticConcurrencyRetryPolicyCommits the change, retrying an optimistic conflict.
runSignalMailAccountRunSignalBrings 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.