protected void CreateSMS() { var msgGenerator = new RandomMessageGenerator(); while (_createSMS) { RaiseSMSReceived(msgGenerator.Next()); Thread.Sleep(2000); } }
public void CreateSMS() { _createSms = true; var msgGenerator = new RandomMessageGenerator(); while (_createSms) { RaiseSMSReceived(msgGenerator.Next()); System.Threading.Thread.Sleep(2000); } }