Method RunAsync
- Namespace
- MailFathom.Application.Jobs.Execution
- Assembly
- MailFathom.Application.dll
RunAsync(LeasedJob, CancellationToken)
Runs one job this process holds a lease on, and reports what the attempt did.
Task<JobExecutionResult> RunAsync(LeasedJob job, CancellationToken stoppingToken)
Parameters
jobLeasedJobThe job this attempt holds.
stoppingTokenCancellationTokenStops the work because the host is stopping; the job is then released rather than failed.
Returns
- Task<JobExecutionResult>
What the attempt did, in terms that carry no mail content.
Exceptions
- ArgumentNullException
Thrown when
jobis null.