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
While you should really be using a service for this, if you need/want to do this anyway, you can use a ManualResetEvent
to do this:
private ManualResetEvent Wait = new ManualResetEvent(false);
When you're finished 'starting' and want to just wait, you'd then do:
Wait.WaitOne();
When you want to stop and let it exit, you can then do:
Wait.Set();