Table of Contents

Constructor JobExecutor

Namespace
MailFathom.Application.Jobs.Execution
Assembly
MailFathom.Application.dll

JobExecutor(IJobStore, JobHandlerRegistry, IJobFailureClassifier, JobExecutionSettings, TimeProvider)

Initializes the executor from the queue it writes to and the bounds it runs under.

public JobExecutor(IJobStore store, JobHandlerRegistry handlers, IJobFailureClassifier failureClassifier, JobExecutionSettings settings, TimeProvider timeProvider)

Parameters

store IJobStore

Renews, completes, retries, dead-letters, and releases the lease this attempt holds.

handlers JobHandlerRegistry

Answers which handler runs the job's type.

failureClassifier IJobFailureClassifier

Decides whether a failure is worth attempting again, and names it safely.

settings JobExecutionSettings

The execution timeout, the lease duration, the attempt bound, and the retry delays.

timeProvider TimeProvider

Times the attempt, the timeout, the renewal interval, and the next attempt's instant.

Exceptions

ArgumentNullException

Thrown when a collaborator is null.