• Quartz.Net 配置


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

    image

    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.

    image

    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.

    image

    part1: config job

    part2: config trigger

    3. app.config configuration

    image

    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.

    image

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

    image

  • 相关阅读:
    文件系统管理
    软件包管理
    用户和用户组管理
    权限管理
    漏洞验证系列--MongoDB未授权访问
    【Jenkins】三、设置定时任务
    在CentOS Linux 7.5上安装MySQL
    CentOS7使用yum时File contains no section headers.解决办法
    Windows批处理(cmd/bat)常用命令学习
    Fiddler抓包工具总结
  • 原文地址:https://www.cnblogs.com/philzhou/p/2772533.html
Copyright © 2020-2023  润新知