Constructor StoredMailRederivationHandler
- Namespace
- MailFathom.Application.Mail.Maintenance
- Assembly
- MailFathom.Application.dll
StoredMailRederivationHandler(StoredMailRederivation, IStoredMailRederivationRunStore, IJobStore, OptimisticConcurrencyRetryPolicy, IWorkLeaseRunner, JobExecutionSettings, TimeProvider, IStoredMailRederivationTelemetry)
Initializes the handler from the walk it drives and the record it keeps.
public StoredMailRederivationHandler(StoredMailRederivation rederivation, IStoredMailRederivationRunStore runStore, IJobStore jobs, OptimisticConcurrencyRetryPolicy commitPolicy, IWorkLeaseRunner leases, JobExecutionSettings jobSettings, TimeProvider timeProvider, IStoredMailRederivationTelemetry telemetry)
Parameters
rederivationStoredMailRederivationRuns one bounded pass over the scope's stored mail, advancing the run as it commits.
runStoreIStoredMailRederivationRunStoreReads whether the scope still has a run to carry, and moves it on to its next segment.
jobsIJobStoreEnqueues the segment that carries whatever this attempt did not reach.
commitPolicyOptimisticConcurrencyRetryPolicyAdvances the segment from a fresh read, resolving a race with an overlapping attempt.
leasesIWorkLeaseRunnerWalks the scope only while this segment holds its lease.
jobSettingsJobExecutionSettingsNames how long a lease runs, which is how long a segment refused the scope defers its successor.
timeProviderTimeProviderStamps the instant a deferred successor becomes claimable.
telemetryIStoredMailRederivationTelemetryPublishes the segment and the passes beneath it.
Exceptions
- ArgumentNullException
Thrown when a collaborator is null.