Пример #1
0
        private void Destroy()
        {
            DataFeed proxy = m_proxy;

            m_proxy = null;
            if (null != proxy)
            {
                proxy.Tick -= OnTick;
                proxy.Dispose();
            }
        }
Пример #2
0
        private void DoDispose()
        {
            DataFeed feed = m_feed;

            m_feed = null;
            if ((null != feed) && IsInitialized)
            {
                feed.Stop();
                feed.Dispose();
            }
            m_continue = false;
            m_event.Set();
            if (null != m_thread)
            {
                m_thread.Join();
                m_thread = null;
            }
        }