private void PingTc() { while (true) { m_ManualResetEvent.WaitOne(); m_TeamAdapter.DynamicGet("/app/rest/projects/id:{0}", m_PingBranch); Thread.Sleep(m_PingRate); } }