Changeset 2129 for trunk/eraser/Eraser.Manager/DirectExecutor.cs
- Timestamp:
- 5/15/2010 1:22:08 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/eraser/Eraser.Manager/DirectExecutor.cs (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser/Eraser.Manager/DirectExecutor.cs
r2036 r2129 323 323 ((RecurringSchedule)task.Schedule).Reschedule(DateTime.Now); 324 324 325 //If the task is an execute on restart task , it is only run326 //on ce and can now be restored to an immediately executedtask327 if (task.Schedule == Schedule.RunOnRestart )328 task.Schedule = Schedule.Run Now;325 //If the task is an execute on restart task or run immediately task, it is 326 //only run once and can now be restored to a manually run task 327 if (task.Schedule == Schedule.RunOnRestart || task.Schedule == Schedule.RunNow) 328 task.Schedule = Schedule.RunManually; 329 329 330 330 //And the task finished event. … … 396 396 list.Insert(index, item); 397 397 398 //Call all the event handlers who registered to be notified of tasks 399 //being added. 400 Owner.OnTaskAdded(new TaskEventArgs(item)); 401 398 402 //If the task is scheduled to run now, break the waiting thread and 399 403 //run it immediately … … 408 412 Owner.ScheduleTask(item); 409 413 } 410 411 //Call all the event handlers who registered to be notified of tasks412 //being added.413 Owner.OnTaskAdded(new TaskEventArgs(item));414 414 } 415 415 … … 519 519 { 520 520 Owner.OnTaskAdded(new TaskEventArgs(task)); 521 if (task.Schedule is RecurringSchedule) 521 if (task.Schedule == Schedule.RunNow) 522 Owner.QueueTask(task); 523 else if (task.Schedule is RecurringSchedule) 522 524 Owner.ScheduleTask(task); 523 525 }
Note: See TracChangeset
for help on using the changeset viewer.
