What's the accepted way to write a C# TSR?

Posted by dlanod on Stack Overflow See other posts from Stack Overflow or by dlanod
Published on 2010-06-07T05:48:54Z Indexed on 2010/06/07 5:52 UTC
Read the original article Hit count: 239

Filed under:
|

I'm using C# to write a WCF router which I want to stay running without using the Console.ReadKey "hack". I was wondering if there's an accepted way to do this within C# that's more elegant than

while (true)
    Thread.Sleep(100);

© Stack Overflow or respective owner

Related posts about c#

Related posts about thread