private void ProcessSms() { Thread.Sleep(5000); while (true) { target.ProcessSms(); Thread.Sleep(5000); } }
private void ProcessSms() { Thread.Sleep(5000); while (true) { _target.ProcessSms(); //added on 02/17/2012 Pradeep I //to execute current conditional loop every 5 seconds instead of running continuously Thread.Sleep(5000); } }