示例#1
0
        void RefreshChannelList()
        {
            var logServerAddress = txtLogServerAddress.Text;

            if (string.IsNullOrEmpty(logServerAddress))
            {
                return;
            }

            SavedValueRegistry.SaveValue("LogServerAddress", logServerAddress);


            if (m_StreamDirectory == null || m_StreamDirectory.ServerAddress != logServerAddress)
            {
                if (m_StreamDirectory != null)
                {
                    m_StreamDirectory.Dispose();
                }

                m_StreamDirectory = new StreamDBDirectory(StreamDBDirectory.DirectoryMode.Broker);
                m_StreamDirectory.Initialize(logServerAddress);
            }

            m_StreamDirectory.RequestStreamList();
        }
示例#2
0
        protected override void OnClosing(CancelEventArgs e)
        {
            base.OnClosing(e);

            m_TickTimer.Stop();
            m_TickTimer = null;

            if (m_StreamDirectory != null)
            {
                m_StreamDirectory.Dispose();
            }
            m_StreamDirectory = null;

            GlobalEngine.Stop();
        }