Folks,
I want to develop a long running windows service (it should be working without problems for months), and I wonder what is the better option here:
- Use a while(true) loop in the OnStop method
- Use a timer to tick each n seconds and trigger my code
- Any other options ?
Thanks Essam