Esempio n. 1
0
        public void Track(ushort step, TasksManager manager)
        {
            if (manager == null)
            {
                throw new ArgumentNullException(nameof(manager));
            }

            ToDo.Add(step, manager.ToDo.Count);
            InProgress.Add(step, manager.InProgress.Count);
            Done.Add(step, manager.Done.Count);
            Cancelled.Add(step, manager.Cancelled.Count);
        }
Esempio n. 2
0
 /// <summary>
 ///     Constructor
 /// </summary>
 /// <param name="tasksLimit">Agent.Cognitive.TasksAndPerformance.TasksLimit</param>
 /// <param name="debug">Environment.Debug</param>
 public TaskProcessor(TasksLimit tasksLimit, bool debug)
 {
     TasksManager = new TasksManager(tasksLimit, debug);
     TasksManager.OnAfterSetTaskInProgress += AfterSetTaskInProgress;
     TasksManager.OnPrioritizeTasks        += PrioritizeTasks;
 }