Constructor StoredMailRederivation
- Namespace
- MailFathom.Application.Mail.Maintenance
- Assembly
- MailFathom.Application.dll
StoredMailRederivation(IStoredMailRederivationStore, IStoredMailRederivationRunStore, IEmailContentStore, IEmailMimeReader, OptimisticConcurrencyRetryPolicy, TimeProvider, AccessAuthorization)
Initializes the re-derivation.
public StoredMailRederivation(IStoredMailRederivationStore rederivationStore, IStoredMailRederivationRunStore runStore, IEmailContentStore contentStore, IEmailMimeReader mimeReader, OptimisticConcurrencyRetryPolicy concurrencyRetryPolicy, TimeProvider timeProvider, AccessAuthorization authorization)
Parameters
rederivationStoreIStoredMailRederivationStoreReads what the walk has left and writes what one email's re-reading produced.
runStoreIStoredMailRederivationRunStoreHolds the run this walk is advancing, which each batch adds what it read to.
contentStoreIEmailContentStoreReads back the raw MIME an earlier run stored.
mimeReaderIEmailMimeReaderTurns that raw MIME into normalized metadata.
concurrencyRetryPolicyOptimisticConcurrencyRetryPolicyCommits a batch, retrying a conflict with a competing writer.
timeProviderTimeProviderStamps the instant the walk reached the end of its scope.
authorizationAccessAuthorizationAnswers which principal reached this use case.
Exceptions
- ArgumentNullException
Thrown when any argument is null.