Пример #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         // dispose managed resources
         _listTimer.Dispose();
         _serverTimer.Dispose();
         AbortSync();
     }
     // free native resources
 }
Пример #2
0
 public void Dispose()
 {
     _timer?.Dispose();
 }