The use of quartz.net summary

Recommended for you: Get network issues from WhatsUp Gold. Not end users.

.net in the use of third party DLL must pay attention to the version of the problem: many online code is right, you not implementation, sometimes is the DLL version of the problem

Stick a tried available for your reference:

app.config:

<?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" />

    <sectionGroup name="common">

      <section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />

    </sectionGroup>

    <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />

  </configSections>

  <common>

    <logging>

      <factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4Net1211">

        <arg key="configType" value="FILE-WATCH" />

        <arg key="configFile" value="~/systemconfig/log4net.xml" />

        <arg key="level" value="ALL" />

      </factoryAdapter>

    </logging>

  </common>

<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /></startup>

</configuration>

packages.config(Optional. Project will be very useful):

<?xml version="1.0" encoding="utf-8"?>

<packages>

  <package id="Common.Logging" version="2.1.2" targetFramework="net40" />

  <package id="Common.Logging.Log4Net1211" version="2.1.2" targetFramework="net40" />

  <package id="log4net" version="2.0.0" targetFramework="net40" />

  <package id="TopShelf" version="3.1.0" targetFramework="net40" />

</packages>

quartz.config

# You can configure your scheduler in either <quartz> configuration section

# or in quartz properties file

# Configuration section has precedence

quartz.scheduler.instanceName = SurferSMSScheduler

# configure thread pool info

quartz.threadPool.type = Quartz.Simpl.SimpleThreadPool, Quartz

quartz.threadPool.threadCount = 10

quartz.threadPool.threadPriority =Normal

# job initialization plugin handles our xml reading, without it defaults are used

quartz.plugin.xml.type = Quartz.Plugin.Xml.XMLSchedulingDataProcessorPlugin, Quartz

quartz.plugin.xml.fileNames = ~/systemconfig/quartz_jobs.xml

# job store

quartz.jobStore.misfireThreshold =60000

quartz.jobStore.type = Quartz.Simpl.RAMJobStore, Quartz

quartz_jobs.xml   This two log4net.xml online a lot, basically the. The non stick

Link sharing:

(This attention to the DLL version)

(This attention to the DLL version)

(This article is to solve the problem)

 

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Lyndon at November 17, 2013 - 2:03 PM