This article is a mirror article of machine translation, please click here to jump to the original article.

View: 308516|Reply: 85

[Source] .net/c# Quartz.NET Remote Task Scheduling [with source code]

  [Copy link]
Posted on 5/4/2018 2:50:16 PM | | | |
Quartz.NET is an open-source job scheduling framework, which is very suitable for regular polling of database synchronization, scheduled email notifications, and regular processing of data in daily work.

Quartz.NET allows developers to schedule jobs based on time intervals (or days). It implements a many-to-many relationship between jobs and triggers, and can also associate multiple jobs with different triggers.

Applications that integrate Quartz.NET can reuse jobs from different events and combine multiple jobs for a single event.


  • Official Learning Documentation: http://www.quartz-scheduler.net/documentation/index.html
  • Usage examples: http://www.quartz-scheduler.net/documentation/quartz-2.x/quick-start.html
  • Official source code download: http://sourceforge.net/projects/quartznet/files/quartznet/


Quartz.net Remote task scheduling framework,.NET framework 4.5 is an example, other .net versions, please self-test

The project has two levels:
Job-Client (Execute Tasks) and Job-Server (Task Scheduling)

Job-Client

nuget install:
Install-Package Quartz -Version 2.6.1

Job-Server

nuget install:
Install-Package Quartz -Version 2.6.1
Install-Package CrystalQuartz.Remote -Version 4.2.1

As shown below:




The Job-Client code is as follows:

Quartz CronTrigger is the most complete configuration description
http://www.itsvse.com/thread-4573-1-1.html
(Source: Architect_Programmer)

Job-Server only needs to modify the web.config configuration


After we install CrystalQuartz.Remote, web.config will add the configuration as shown in the figure above, since we are not using port 555, we only need to modify the port


Once the modifications are complete, start the project

Browser input: http://localhost:port/CrystalQuartzPanel.axd

The full web.config configuration is as follows:


Start Job-Client first, and then start Job-Server, as shown in the following figure:



Pause the task



Resume mission



Finally, attach the source code:

Tourists, if you want to see the hidden content of this post, pleaseReply







Previous:svg path/glyph d attribute explained in detail
Next:External links to Discuz X forum posts add nofollow attribute
 Landlord| Posted on 5/4/2018 3:21:11 PM |
Here's a good example from GitHub:

SchedulerManager.cs code is as follows:


JobHelper.cs code is as follows:



Posted on 7/19/2018 3:25:47 PM |
This post was last edited by QWERTYU on 2018-7-19 15:32
Posted on 7/19/2018 2:10:24 PM |
nuget installs Quartz -Version 3.0.6 and returns an error after copying the code
Posted on 7/13/2018 11:09:04 AM |
Learn to learn
Posted on 7/13/2018 1:04:05 PM |
This thing is good, good, worth learning
Posted on 7/19/2018 9:54:24 AM |
Just need to thank the owner
Posted on 7/20/2018 3:05:51 PM |
Learn to learn...
Posted on 8/3/2018 10:55:49 AM |
Learn 。。。。。。。
Posted on 8/28/2018 11:16:28 PM |
Thank you for sharing the top person
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com