I have a console application that checks a mail server using the pop protocol, processes any emails it finds, and terminates.
I plan to schedule it using the Task Scheduler. The problem is that I can only schedule it to run every minute (or longer)but nothing less.
Speed is a critical factor for this application, and so I'm hoping I can schedule it so its always checking for emails. I'm wondering what the best approach for this would be.
Is an infinite loop the only way?
I thought of making it a windows service, but wouldn't that also need an infinite loop?
Thanks