Ejemplo n.º 1
0
        internal void ScheduleInternal(ScheduleTask task)
        {
            ScheduleTask scheduleTask = this.updatingTask;

            if (this.dispatcherTokens[(int)task.Priority] != null)
            {
                return;
            }
            SchedulingService.DispatcherToken dispatcherToken = new SchedulingService.DispatcherToken(this, task.Priority);
            this.dispatcherTokens[(int)task.Priority] = dispatcherToken;
        }
Ejemplo n.º 2
0
 public void UnregisterTask(ScheduleTask task)
 {
     if (task.ReverseDependencies.Count > 0)
     {
         throw new ArgumentException(ExceptionStringTable.CantRemoveATaskThatOtherTasksDependOn);
     }
     foreach (ScheduleTask scheduleTask in task.Dependencies)
     {
         scheduleTask.ReverseDependencies.Remove(task);
     }
     task.Dependencies.Clear();
     this.taskDictionary.Remove(task.Name);
     this.taskList.Remove(task);
 }
Ejemplo n.º 3
0
 internal void SetUpdatingTaskInternal(ScheduleTask task)
 {
     this.updatingTask = task;
 }