Exemple #1
0
 private void butTask1_Click(object sender, EventArgs e)
 {
     ActionScheduleTask ActionScheduleTask = new ActionScheduleTask(TestAction.Test);
     var job = ScheduleService.AddJob(ActionScheduleTask, DateTime.Now.AddSeconds(Int32.Parse(txtFileName.Text)), true, 30, false);
     ActionScheduleTask ActionScheduleTask2 = new ActionScheduleTask(TestAction.Test2);
     var job2 = ScheduleService.AddJob(ActionScheduleTask2, DateTime.Now.AddSeconds(Int32.Parse(txtFileName.Text)), true, 30, false);
 }
Exemple #2
0
 public ScheduleJobInfo AddJob(ScheduleJobInfo dto)
 {
     return(_scheduleService.AddJob(dto));
 }