I need to implement some background components in an enterprise system. The components will run at a specific date/time.
What is the best way to implement using Windows Service?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I recomment Quartz.NET for this purpose. To quote the home page:
We are using it in a few of our products and we have been happy with it so far. We mostly use it in the exact scenario you describe – as a constantly running Windows service which periodically executes some tasks.
The documentation is very decent, the API is pleasant to work with. The features are quite rich (cron triggers, interval triggers, custom calendars, lots of other useful features). It plays well with UTC and local time (be sure to read the docs!).