Пример #1
0
 public void Dispose()
 {
     if (null != RotItems)
     {
         RotItems.Dispose();
     }
 }
Пример #2
0
 private void Refresh()
 {
     try
     {
         lock (_lock)
         {
             IsCurrentlyRefresh = true;
             if (null != RotItems)
             {
                 RotItems.Dispose();
             }
             RotItems = RunningObjectTable.GetActiveProxyInformation("", "");
         }
     }
     catch (Exception)
     {
         throw;
     }
     finally
     {
         IsCurrentlyRefresh = false;
     }
 }