Wednesday, March 20, 2013

Is this good code for polling from a Windows Service via C#? :P

private void PollProcess()
{
   do
   {
      PollingPass();
      int Sleep = (Convert.ToInt32(Settings.MailPoll)) * 60000;
      Thread.Sleep(Sleep);
   }
   while (1 == 1);
}

No comments:

Post a Comment