/// <summary> /// Releases any resources used by the component. /// </summary> public void CleanUp() { if (m_itrainer != null) { m_itrainer.Shutdown(3000); m_itrainer = null; } shutdown(); }
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(); } } }