Beispiel #1
0
        public override string Run(string id)
        {
            CmdTask task   = CmdTasks.Remove(id);
            string  status = task?.Status;

            task?.Dispose();
            return(status);
        }
Beispiel #2
0
        public override object[] Run(string id)
        {
            CmdTask task = CmdTasks.Get(id);

            if (task == null)
            {
                return(new object[0]);
            }
            return(new object[] { task.Status, task.Queue.Count });
        }
Beispiel #3
0
 public static void Remove(CmdTask task)
 {
     All.Remove(task.ID);
 }
Beispiel #4
0
 public static void Add(CmdTask task)
 {
     All[task.ID] = task;
 }