コード例 #1
0
        void IScheduledJob.Initialize(DateTimeOffset now, IJobExecutor executor, JobSchedule schedule)
        {
            var status = schedule.Find(JobType);

            LastExecution = status.LastExecution;

            var next = Scheduler.ScheduleNextTime(now, LastExecution);

            schedule.Schedule(JobType, next);

            executor.Schedule(this, next);
        }