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