I was wondering if there is any implementation of a windows service that can call custom .net code that can be scheduled to run on specific intervals? or i should i implement my own (which i am currently doing) but i think its better not to reinvinte the wheel :) I don’t want to use windows scheduler. Thanks
views:
107answers:
3It's better to develop own win service app. Should not take much effort with visual studio. Surely you will find. sample application at msdn or web.
If you are just looking to call a function periodically, use System.Threading.Timer. Using this, it would be easy to write a simple service that performs whatever tasks you want at your chosen intervals.
A good library for scheduling jobs is Quartz.NET. You can either run it as a stand-alone application, or as a part of your own application. It has a very good API with many features out of the box. There is also a tutorial to get you started. It is a port of the Java Quartz scheduling framework.
If you are looking for a replacement to the Windows Scheduler, try VisualCron. It's not free, but it has many features.
What about something like this http://blogs.msdn.com/bclteam/archive/2005/03/15/396428.aspx