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