问题描述
我是新来Quartz.NET所以忍耐一下吧。我想运行Quartz.NET因为它运行作业的独立的服务。我想创建一个包含所有我需要运行,并有石英作业的不同组件的设置可以从我的组装运行这些作业。
I am new to Quartz.NET so bear with me please.I would like to run Quartz.NET as a stand-alone service which runs jobs.I would like to create a different assembly containing all the jobs I need to run and have Quartz configured to run these jobs from my assembly.
因此,每当我创建一个新的工作,我将它添加到我的组装和所有我剩下要做的是,以取代旧的组件,然后重新启动石英服务。
Thus, whenever I create a new job, I add this to my assembly and all I am left to do is to replace the old assembly and restart the Quartz service.
这可能吗?
任何人都可以请告诉/重定向我到一个code例子,说明如何做到这一点。
Could anyone please show/redirect me to a code example showing how to do this.
推荐答案
为了寻求你的问题很好的解决方案,首先是Quartz.examples已经在example12和13,您可以通过Remoting.net一个创建独立服务器,这是非常简单的事,只是让自己复制粘贴;-)的方式。除此之外,您还需要添加您的岗位到服务器的组件组装的参考,以stablish为之至极execute()方法的通信必须EXE和例外情况来避免...那么你可以创建一个Clientremoting哪里你只需要选择您将安排并使用相同的端口,通道,比服务器绑定运行工作。让如果你想一些例子$ C $它CS我知道。
in order to seek a good solution for your question, first of all as Quartz.examples has in the example12 and 13, you can create via Remoting.net a stand-alone server, and it's very simple the way to do that just make yourself a copy-paste ;-). Besides you have to add a reference of your assembly of jobs into the server's assembly in order to stablish a communication of whom Wich "Execute() method" have to exe and for be avoid of exceptions... then you could create a Clientremoting where you just have to select the job that you would schedule and run it using the same port, channel and binding than the server. Let me know if you wanna some example codes of it.
这篇关于如何让我从不同的组件Quartz.NET运行的作业?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!