예제 #1
0
        /// <summary>
        /// Releases any resources used by the component.
        /// </summary>
        public void CleanUp()
        {
            if (m_itrainer != null)
            {
                m_itrainer.Shutdown(3000);
                m_itrainer = null;
            }

            shutdown();
        }
예제 #2
0
        private void cleanup(int nWait, bool bCallShutdown = false)
        {
            lock (m_syncObj)
            {
                if (m_itrainer != null)
                {
                    m_itrainer.Shutdown(nWait);
                    m_itrainer = null;
                }

                if (bCallShutdown)
                {
                    shutdown();
                }
            }
        }