private void cleanup(int nWait, bool bCallShutdown) { lock (m_syncObj) { if (m_itrainer != null) { m_itrainer.Shutdown(nWait); m_itrainer = null; } if (bCallShutdown) { shutdown(); } } }
/// <summary> /// Releases any resources used by the component. /// </summary> public void CleanUp() { if (m_itrainer != null) { m_itrainer.Shutdown(3000); m_itrainer = null; } shutdown(); }