C# Console Application - Keep it running
问题 I am about to develop a console application that will be required to continually run and carry out work at specific times. My question is what is are best methods or practices to keep your application alive? My thought were: A loop that never ends? A timer that sleeps and then jumps to routine when required (after set sleep period)? I will be compiling the application into an exe and then running it as a service using AlwaysUp. Regards.. Peter 回答1: A better solution would be to write a