开发者

Is there a project that implements a scheduler based on a .NET service?

Is there an implementation of a Windows service that can call custom .NET code that can be scheduled to run on specific intervals?

Or should I implem开发者_开发问答ent my own (which I am currently doing), but I think it's better not to reinvent the wheel :)

I don’t want to use Windows Task Scheduler.


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.


Try something like Writing a Useful Windows Service in .NET in Five Minutes [Dave Fetterman].


It's better to develop your own Windows service application. It should not take much effort with Visual Studio. Surely you will find a sample application at MSDN or on the web.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜