Beispiel #1
0
 public TimingJob(ITimingJob job)
 {
     fJob         = job;
     fInterval    = job.Interval;
     fAction      = job.Process;
     NextCalcTime = DateTime.Now + fInterval;
     Status       = JobStatus.Idle;
 }
 internal void FillTimingJobs(List <TimingJob> jobs)
 {
     EnumableCodePlugIn((regName, type, attr) =>
     {
         ITimingJob job      = CreateInstance <ITimingJob>(regName);
         TimingJob timingJob = new TimingJob(job);
         jobs.Add(timingJob);
     });
 }