Example #1
0
 public void RemoveRunningTask(RunningTaskInformation runningTask)
 {
     lock (runningTasks) {
         runningTasks.Remove(runningTask);
         runningTask.IsRunning = false;
     }
 }
Example #2
0
 public void AddRunningTask(RunningTaskInformation runningTask)
 {
     lock (runningTasks) {
         runningTasks.Add(runningTask);
     }
 }