Example #1
0
        public bool DeInit()
        {
            _messageQueue.Dispose();
            _messageQueue = null;

            _settings.SettingsChanged -= ReCreateConnections;

            if (_tvServers == null)
            {
                return(false);
            }

            try
            {
                foreach (ServerContext tvServer in _tvServers)
                {
                    if (tvServer.TvServer != null)
                    {
                        tvServer.TvServer.CancelCurrentTimeShifting(GetTimeshiftUserName(0));
                        tvServer.TvServer.CancelCurrentTimeShifting(GetTimeshiftUserName(1));
                    }
                }
            }
            catch (Exception) { }

            _tvServers = null;
            return(true);
        }
 public void Dispose()
 {
     if (_messageQueue != null)
     {
         _messageQueue.Dispose();
         _messageQueue = null;
     }
 }