Which is the best timer approach for a C# console batch application that has to process as follows:
- Connect to datasources
- process batch until timeout occurs or processing complete. ‘Do something with datasources’
- stop console app gracefully.
related question: How do you add a timer to a C# console application
Sorry for this being an entire console app… but here’s a complete console app that will get you started. Again, I appologize for so much code, but everyone else seems to be giving a ‘oh, all you have to do is do it’ answer 🙂