Interface IScheduledJobSource
- Namespace
- MailFathom.Application.Jobs.Scheduling
- Assembly
- MailFathom.Application.dll
Hands out the recurring dispatches this instance's configuration currently declares.
public interface IScheduledJobSource
Remarks
Read once per pass rather than held, because the declarations come from configuration and a reload replaces them. A schedule an edit removed stops being dispatched at the next pass, and one it added is dispatched from the next pass onwards; neither needs the process restarted and neither reaches a pass that has already begun.
An implementation returns what it declares and decides nothing about time. Whether an occasion has passed, whether one was missed, and whether the previous run is still going all belong to JobSchedulePass, so a consumer contributes what it wants repeated and gets the mechanism's guarantees without restating them.
Methods
- ReadSchedules()
Reads the schedules this source declares as they stand now.