public void Dispose() { try { Timer.Dispose(); } catch (Exception e) { Log.Exception(e); } }
private static void Loop() { try { if (InitTimeFromServer()) { _timer.Dispose(); } } catch (Exception e) { Log.Exception(e); } }
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); }
protected override void CleanUp_Managed_Resources() { _timer.Dispose(); }