Exemplo n.º 1
0
 internal ScheduleInfo(ScheduleManager.ScheduleDelegateParam scheduleDelegate, ConfigScheduleEntity configSchedule)
 {
     if (scheduleDelegate == null)
     {
         throw new Exception("Init ScheduleInfo fail,scheduleDelegate is null");
     }
     _launcher = new ScheduleLauncherParam(scheduleDelegate, configSchedule.Parameters);
     Init(configSchedule);
 }
Exemplo n.º 2
0
 internal ScheduleInfo(ScheduleManager.ScheduleDelegateNextTime scheduleDelegate, ConfigScheduleEntity configSchedule)
 {
     if (scheduleDelegate == null)
     {
         throw new Exception("Init ScheduleInfo fail,scheduleDelegate is null");
     }
     Init(configSchedule);
     _launcher = new ScheduleLauncherNextTime(scheduleDelegate, _timeConfig.GetIntervalTime());
 }