Quartz.Net is a very useful secheduling component, it can hanlde Interval, simple, cronExpresion pattern scheduling with some simple configuration.

 

Quartz.Net 配置

1. create a windows application with following reference.

C5 is the generic collection class set as a complementary of .net framework.

Since Quartz using Common.Logging as logging component, so Common.Logging is required.

log4net is the most popular logging component, common.logging.log4net providing an adapter for common.logging to use common.logging.log4net.

 

2. add configuration files

quartz.config: to configure the scheudler’s basic properties.

Quartz.Net 配置

 

part2: quartz.plugin.xml.fileNames sepcified the scheduling jobs & triggers config file.

part3: config remote access parameter.

 

quartz_jobs.xml: to config jobs and triggers.

Quartz.Net 配置

part1: config job

part2: config trigger

 

3. app.config configuration

Quartz.Net 配置

part1. config log4net section and the section handler Log4NetConfigurationHandler.

part2. config section group common and section logging.

part3. config a logging adaper for common logging.

part4. config log4net .

 

4. coding.

Quartz.Net 配置

you should shutdown the server before exiting the application to close the scheduling thread.

Quartz.Net 配置

相关文章:

  • 2021-08-05
  • 2022-01-08
  • 2021-05-22
  • 2021-07-09
  • 2021-08-14
猜你喜欢
  • 2022-03-03
  • 2021-12-02
  • 2022-12-23
  • 2021-10-04
  • 2022-12-23
相关资源
相似解决方案