Quartz.NET Scheduled Jobs
Define jobs and triggers with Quartz.NET, use cron expressions, and integrate with ASP.NET Core DI.
Why Quartz.NET?
When you need cron expressions, job persistence, clustering, retry policies, and job chains — Quartz.NET provides a production-grade scheduler beyond what PeriodicTimer offers. It's the .NET port of the popular Java Quartz scheduler.
Installing Quartz.NET
Add the Quartz and Quartz.AspNetCore packages. The ASP.NET integration automatically registers the scheduler as a hosted service.
# Install packages
dotnet add package Quartz
dotnet add package Quartz.AspNetCore
# Optional: persistence (requires Quartz.Serialization.Json too)
# dotnet add package Quartz.Jobs
# dotnet add package Quartz.PluginsAll lessons in this course
- IHostedService & BackgroundService
- Worker Service Projects
- Periodic Tasks & Timers
- Quartz.NET Scheduled Jobs