Table of Contents

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

job LeasedJob

The job this attempt holds.

stoppingToken CancellationToken

Stops 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 job is null.