views:

107

answers:

3

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

A: 

It'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.

Saar
actually its not very easy since i need to handle advanced scheduling timing options.like run on the minute 07 every hour and repeat for 10 minutes and so on
Karim
http://research.microsoft.com/en-us/projects/Dryad/It may help you.
Saar
+2  A: 

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.

jheddings
actually i am in the process of writing one right now but thought its better to use some open source project if its available
Karim
Updated answer to include Quartz.NET. Definitely check it out.
jheddings
quartz.net is nice but its too complex for my needs. so i think i will implement my own scheduling service :)
Karim
A: 

What about something like this http://blogs.msdn.com/bclteam/archive/2005/03/15/396428.aspx

Beached