Windows Service needs to wait, Thread.Sleep?

Posted by Dan on Stack Overflow See other posts from Stack Overflow or by Dan
Published on 2010-04-06T20:25:36Z Indexed on 2010/04/06 20:33 UTC
Read the original article Hit count: 378

Filed under:
|
|
|

I have a c# windows service that needs to execute a database query every 60 seconds (or whatever interval is set in the config file). I'm using Thread.sleep(60) in a while loop to accomplish this. Is there a better way to do this?

Thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET