Blog for Scheduler Job using with Quartz .Net

.NET Framework

This blog describes a scheduler job’s source project and the use of the QuartZ.net package. That is a powerful way to simply use scheduler jobs. There is a lot to learn and create with Quartz.Net, but in this blog, I will describe some simple steps for creating and running an application for the scheduler job.

Step 1. Create Project in .NET Framework

To get started, launch the.NET Framework Console Application version 4.8 and create a new project. After that, you can enter the project name.

Console Application

Step 2. Install-Package

The second step is to install the console application’s required packages. Quartz is the name of the package, and the version number is 2.3.3.

Install-Package

Step 3. Create a Class for Call jobs

Create a class to receive Quartz request calls. In this class, call the IJob Interface and create a method, giving it an exact name like “Execute” (IJobExecutionContext context).

 Call jobs

Step 4. Write Program in Program.cs

In the main class, write the Scheduler method for starting the scheduler service. In this method, add some cron job time, like adding some time to trigger the class.

Program.cs

Step 5. Output from this console application

This is the actual output of this program. Every two seconds trigger the class and get the response.

Output