我想用 Quartz.NET 安排我的 windows 服务。我尝试了一些示例,但是我无法安排我的 windows 服务。我该怎么做?
谢谢。
我想用 Quartz.NET 安排我的 windows 服务。我尝试了一些示例,但是我无法安排我的 windows 服务。我该怎么做?
谢谢。
好吧,您实际上并没有“调度”您的 Windows 服务。Quartz.Net服务器可以作为 Windows 服务运行,然后查看您的 quartz_jobs.xml 以确定触发您定义的作业的时间/频率(或您设置为触发器的任何内容)。
查看此博客文章系列以获取更多信息 - http://jvilalta.blogspot.com/2009/03/getting-started-with-quartznet-part-1.html
与 Quartz.Net 网站上的教程相比,这对我很有帮助。
这对我有用:
“使用 Autofac、Quartz 和 Atlas 创建 Windows 服务的快速方法”
http://www.markjourdan.name/a-quick-way-to-create-a-windows-service-using-autofac-quartz-and-atlas