private void IvrNotification() { Thread.Sleep(5000); //timerIvrNotification.Stop(); while (true) { bool CDYNE_ACCOUNT = GenStoreInfo.GetInstance().CDYNE_ACCOUNT == "" ? false : true; target.ProcessIVRNotification(); //target.DialNumber(); } }
private void IvrNotification() { Thread.Sleep(5000); //ProcessThreadCollection threadlist = ivrProcess.Threads; while (true) { _target.ProcessIVRNotification(); //added on 02/17/2012 Pradeep I //to execute current conditional loop every 5 seconds instead of running continuously Thread.Sleep(5000); } }