I'm developing a windows service in .Net to do some polling. I was going to build it asynchronously to help performance and management of the threads, however I have a question about handling timeouts.
How do I handle a timeout using the begin invoke / end invoke?
I've seen the wait handles but not sure if that's what I want to be using.
Essentially the flow should look like:
wait X seconds (as defined by database)
handle timeout (if there is one)
Links to coding examples or explanations would be great.