예제 #1
0
 public void Dispose()
 {
     try
     {
         Timer.Dispose();
     }
     catch (Exception e)
     {
         Log.Exception(e);
     }
 }
예제 #2
0
 private static void Loop()
 {
     try
     {
         if (InitTimeFromServer())
         {
             _timer.Dispose();
         }
     }
     catch (Exception e)
     {
         Log.Exception(e);
     }
 }
예제 #3
0
 protected override void CleanUp_Managed_Resources()
 {
     Log.Info(string.Format("ChatDesk disposed,seller={0}", Seller));
     _isAlive = false;
     if (_timer != null)
     {
         _timer.Dispose();
     }
     if (EvClosed != null)
     {
         EvClosed(this, new ChatDeskEventArgs
         {
             Desk = this
         });
     }
     _buyerReader.Dispose();
     ClearDeskFromCache(this);
 }
예제 #4
0
 protected override void CleanUp_Managed_Resources()
 {
     _timer.Dispose();
 }