Пример #1
0
 public void Cancel()
 {
     lock (this.syncRoot)
     {
         cancelled = true;
         tasks.Reset();
         Monitor.Pulse(this.syncRoot);
     }
 }