Esempio n. 1
0
 public TaskClient(TaskQueue taskQueue)
 {
     TaskQueue     = taskQueue;
     TaskScheduler = new TaskScheduler(TaskQueue);
     IsCanceled    = false;
 }
Esempio n. 2
0
 public TaskScheduler(TaskQueue taskQueue)
 {
     _taskQueue      = taskQueue;
     _scheduledTasks = new Dictionary <string, TaskSchedule>();
 }
Esempio n. 3
0
 public TaskScheduler(TaskQueue taskQueue, TimeSpan?updateFrequency = null)
 {
     _taskQueue          = taskQueue;
     _promotionFrequency = updateFrequency ?? TimeSpan.FromMilliseconds(100);
 }