I understand that you compile the Quartz solution into an exe that can run as a Windows Service. And that somehow this Quartz server runs jobs. What I don’t get is, where do I put all my Job code that actually does the work? Like let’s say I want my “job” to call a stored proc, or to call a web service every hour. Or what if I have native VB code I want to execute? (And I don’t want to create yet another standalone VB app that gets called from the command line.) It wasn’t obvious where all these types of job config would get stored, coded, configured.
Share
I would suggest you to read the tutorials first.
You can find lot of useful information on Jay Vilalta’s blog.
Getting Started With Quartz.Net: Part 1
Getting Started With Quartz.Net: Part 2
Getting Started With Quartz.Net: Part 3
and
Scheduling Jobs Programmatically in Quartz.Net 1.0
or
Scheduling Jobs Programmatically in Quartz.Net 2.0
and then you can have a look at the github code and try the examples which are very well documented.
UPDATE:
The server is the scheduler.
It’s a windows service application which runs constantly and runs the job you’ve scheduled with a client application.
You can even write your own server (windows services), as I did, since I didn’t want to use remoting to talk to that layer.
You can decide to schedule and run jobs in a console application (I wouldn’t suggest that)
with few lines of code:
This is the job:
You can download a test project here (VerySimpleQuartzApp).
The application above does not store trigger/jobs information.
You can decide if you want to save the information of your jobs/trigger in a XML file as explained here and here.
Or you can store your jobs/triggers in a database so that the scheduler – usually a windows service – can read those info and run the jobs.
If you’re looking for an example where you can communicate with the server (via remoting) and schedule a job and run it, this is the one.
There are a few open source projects (managers) which you can use to start/stop or schedule jobs. Read my answer here.