Beispiel #1
0
 /// <summary>
 /// 开启调度任务,检测数据库待执行的任务,将任务有效率
 /// </summary>
 public void startShedule()
 {
     if (scheduleTask)
     {
         ThreadFactory.newBackgroudThread(new ThreadStart(ScheduleProductionTask.getScheduleTask().sheduleTask)).Start();
     }
     if (scheduleInstruction)
     {
         ThreadFactory.newBackgroudThread(new ThreadStart(ScheduleProductionInstruction.getScheduleInstruction().scheduleInstruction)).Start();
     }
 }
		public static ScheduleProductionTask getScheduleTask() {
			if (scheduleProductionTask == null) {
				scheduleProductionTask = new ScheduleProductionTask();
			}
			return scheduleProductionTask;
		}