Table of Contents

Method ReadAsync

Namespace
MailFathom.Application.Jobs.Scheduling
Assembly
MailFathom.Application.dll

ReadAsync(IReadOnlyCollection<JobScheduleId>, CancellationToken)

Reads what these schedules have already done.

Task<IReadOnlyDictionary<string, JobScheduleState>> ReadAsync(IReadOnlyCollection<JobScheduleId> ids, CancellationToken cancellationToken)

Parameters

ids IReadOnlyCollection<JobScheduleId>

The schedules to read, which is every one the configuration declares.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<IReadOnlyDictionary<string, JobScheduleState>>

The state of each schedule that has one, keyed by identity; a schedule never dispatched is absent.

Exceptions

ArgumentNullException

Thrown when ids is null.