Esempio n. 1
0
 public void CancelAsync(string groupName)
 {
     if (groupName == null)
     {
         this.CancelAsync();
     }
     else
     {
         lock (this._syncGroupMap.SyncRoot)
         {
             SyncGroupHelper helper = (SyncGroupHelper)this._syncGroupMap[groupName];
             if (helper != null)
             {
                 helper.CancelAsync();
             }
         }
     }
 }
Esempio n. 2
0
 public void CancelAsync(string groupName)
 {
     if (groupName == null)
     {
         this.CancelAsync();
     }
     else
     {
         lock (this._syncGroupMap.SyncRoot)
         {
             SyncGroupHelper local_2 = (SyncGroupHelper)this._syncGroupMap[(object)groupName];
             if (local_2 == null)
             {
                 return;
             }
             local_2.CancelAsync();
         }
     }
 }