Where is the documentation for Quartz.NET configuration files?

这一生的挚爱 提交于 2019-11-29 21:18:36

I was having a heck of a time finding info on the config format as well. Turns out the Quartz.Net source contains a nice sample App.config file in src/Quartz.Examples. It looks like the snippet below, except that I've omitted the Common.Logging configuration, which is explained in detail (with an example) in the Common.Logging documentation.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="quartz" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.5000.0,Culture=neutral, PublicKeyToken=b77a5c561934e089" />
  </configSections>
  <quartz>
    <add key="quartz.scheduler.instanceName" value="ExampleDefaultQuartzScheduler" />
    <add key="quartz.threadPool.type" value="Quartz.Simpl.SimpleThreadPool, Quartz" />
    <add key="quartz.threadPool.threadCount" value="10" />
    <add key="quartz.threadPool.threadPriority" value="2" />
    <add key="quartz.jobStore.misfireThreshold" value="60000" />
    <add key="quartz.jobStore.type" value="Quartz.Simpl.RAMJobStore, Quartz" />
  </quartz>
</configuration>

J has a discussion of other configuration options in How Does Quartz.Net Configuration Work?, and I expect the best place to find a "complete" list of possible properties is the Java Quartz documentation that Andreas linked, though it should probably only be used as a guide to see Quartz.Net's potential rather than true documentation per se since there are at least a couple differences.

There is no complete documentation for quartz.net, but you are free to write one and share. However you can have a look at the Java Quartz documentation:

http://www.quartz-scheduler.org/documentation/quartz-2.x/configuration/

90% of the configuration settings are equal e.g.:

quartz.scheduler.instanceName = DefaultQuartzScheduler
quartz.threadPool.type = Quartz.Simpl.SimpleThreadPool, Quartz
quartz.threadPool.threadCount = 10
quartz.threadPool.threadPriority = Normal
quartz.jobStore.type = Quartz.Simpl.RAMJobStore, Quartz
quartz.jobStore.misfireThreshold = 60000

In addition you can look at the source: https://github.com/quartznet/quartznet

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!