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

View: 26177|Reply: 2

[Source] Quartz.net Simple configuration tutorial

[Copy link]
Posted on 12/1/2017 11:25:23 AM | | |
Brief introduction
Quartz.NET is an open-source job scheduling framework that you can use to create simple or complex scheduling for a job. It has many features such as: database support, clustering, plugins, support for cron-like expressions, etc. 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 documentation

Primary application







Previous:.net/c# to determine if the current time is on a business day
Next:Uncaught TypeError: Cannot read property 'trigger' of undefined
Posted on 12/4/2017 11:47:21 AM |
I don't understand what it is for
Posted on 6/1/2018 2:42:05 PM |
IScheduler scheduler = null;
scheduler = StdSchedulerFactory.GetDefaultScheduler();
            scheduler. Start();
            IJobDetail job2 = JobBuilder.Create<CreateDicJob>(). Build();
            ITrigger trigger2 = TriggerBuilder.Create()
              . WithIdentity("test", "groupName2")
                              . WithCronSchedule("0 0 9,10,11 * * ? ") // Executed once a day at 9:10:11
                              . Build();
            scheduler. ScheduleJob(job2, trigger2);


public class CreateDicJob : IJob
    {
        public void Execute(IJobExecutionContext context)
        {
            throw new NotImplementedException();
        }
    }
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