public void Remove(string name)
        {
            int channelID = 0;

            lock (chan_ids)
            {
                if (chan_ids.TryGetValue(name, out channelID))
                {
                    chan_ids.Remove(name);
                }
                else
                {
                    return;
                }
            }
            m_server.removeChannel(channelID);
        }
        /// <summary>
        /// Remove channel
        /// </summary>
        /// <param name="channelId"></param>
        public void RemoveChannel(int channelId)
        {
            // remove remote
            _server.removeChannel(channelId);

            // remove from cache
            if (_entity.Channels.ContainsKey(channelId))
            {
                _entity.Channels.Remove(channelId);
            }
        }