Quartz.Extensions.DependencyInjection 3.18.2
Quartz.Extensions.DependencyInjection
Quartz.Extensions.DependencyInjection provides Microsoft Dependency Injection integration for Quartz.NET, wrapping the configuration properties with a strongly-typed API.
Note: Quartz 3.1 or later required.
Installation
dotnet add package Quartz.Extensions.DependencyInjection
Usage
Configure Quartz with AddQuartz. Configuration can come from code and/or the Quartz section of appsettings.json:
services.AddQuartz(q =>
{
var jobKey = new JobKey("awesome job", "awesome group");
q.AddJob<ExampleJob>(jobKey, j => j.WithDescription("my awesome job"));
q.AddTrigger(t => t
.ForJob(jobKey)
.WithIdentity("Cron Trigger")
.WithCronSchedule("0/3 * * * * ?"));
});
Read hierarchical JSON configuration with the IConfiguration overload:
services.AddQuartz(Configuration.GetSection("Quartz"), q =>
{
// additional code-based configuration
});
Note: As of Quartz.NET 3.7 all jobs are created as scoped and MS DI is configured by default — there is no need to call the
UseMicrosoftDependencyInjection*overloads. By default Quartz resolves the job type from the container, falling back toActivatorUtilities(the job should have a single public constructor).
Warning: With persistent job stores, always declare explicit job and trigger names so existence checks work correctly across application restarts.
Pair this with Quartz.Extensions.Hosting (or Quartz.AspNetCore) to manage the scheduler lifecycle, and see Multiple Schedulers for hosting several schedulers in one app.
Documentation
📖 Full documentation, including defining jobs and triggers in JSON: https://www.quartz-scheduler.net/documentation/quartz-3.x/packages/microsoft-di-integration.html
Showing the top 20 packages that depend on Quartz.Extensions.DependencyInjection.
| Packages | Downloads |
|---|---|
|
Quartz.Extensions.Hosting
Quartz.NET Generic Host integration; Quartz Scheduling Framework for .NET
|
27 |
|
Quartz.Extensions.Hosting
Quartz.NET Generic Host integration; Quartz Scheduling Framework for .NET
|
24 |
|
Quartz.Extensions.Hosting
Quartz.NET Generic Host integration; Quartz Scheduling Framework for .NET
|
23 |
|
Quartz.Extensions.Hosting
Quartz.NET Generic Host integration; Quartz Scheduling Framework for .NET
|
22 |
|
Quartz.Extensions.Hosting
Quartz.NET Generic Host integration; Quartz Scheduling Framework for .NET
|
21 |
|
Quartz.Extensions.Hosting
Quartz.NET Generic Host integration; Quartz Scheduling Framework for .NET
|
20 |
|
Quartz.Extensions.Hosting
Quartz.NET Generic Host integration; Quartz Scheduling Framework for .NET
|
19 |
|
Quartz.Extensions.Hosting
Quartz.NET Generic Host integration; Quartz Scheduling Framework for .NET
|
18 |
|
Quartz.Extensions.Hosting
Quartz.NET Generic Host integration; Quartz Scheduling Framework for .NET
|
17 |
.NET 10.0
- Quartz (>= 3.18.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Options (>= 10.0.0)
.NET 8.0
- Quartz (>= 3.18.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Options (>= 8.0.0)
.NET 9.0
- Quartz (>= 3.18.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Options (>= 9.0.0)
.NET Standard 2.0
- Quartz (>= 3.18.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 2.1.1)
- Microsoft.Extensions.Options (>= 2.1.1)
| Version | Downloads | Last updated |
|---|---|---|
| 3.18.2 | 2 | 06/29/2026 |
| 3.18.1 | 23 | 04/26/2026 |
| 3.18.0 | 21 | 04/13/2026 |
| 3.17.1 | 16 | 04/09/2026 |
| 3.17.0 | 31 | 03/30/2026 |
| 3.16.1 | 24 | 03/05/2026 |
| 3.16.0 | 20 | 03/02/2026 |
| 3.15.1 | 27 | 01/04/2026 |
| 3.15.0 | 28 | 12/15/2025 |
| 3.14.0 | 23 | 12/10/2025 |
| 3.13.1 | 25 | 12/12/2025 |
| 3.13.0 | 28 | 12/10/2025 |
| 3.12.0 | 23 | 12/14/2025 |
| 3.11.0 | 22 | 12/13/2025 |
| 3.10.0 | 25 | 12/13/2025 |
| 3.9.0 | 19 | 12/10/2025 |
| 3.8.1 | 16 | 12/11/2025 |
| 3.8.0 | 22 | 12/10/2025 |
| 3.7.0 | 22 | 12/13/2025 |
| 3.6.3 | 26 | 12/14/2025 |
| 3.6.2 | 25 | 12/12/2025 |
| 3.6.1 | 20 | 12/11/2025 |
| 3.6.0 | 28 | 12/10/2025 |
| 3.5.0 | 23 | 12/10/2025 |
| 3.4.0 | 19 | 12/11/2025 |
| 3.3.3 | 20 | 12/10/2025 |
| 3.3.2 | 20 | 12/10/2025 |
| 3.3.1 | 25 | 12/29/2025 |
| 3.3.0 | 23 | 12/10/2025 |
| 3.2.4 | 25 | 12/14/2025 |
| 3.2.3 | 26 | 12/13/2025 |
| 3.2.2 | 21 | 12/11/2025 |
| 3.2.1 | 25 | 12/10/2025 |
| 3.2.0 | 24 | 12/13/2025 |
| 3.1.0 | 26 | 12/13/2025 |
| 0.4.0 | 19 | 12/15/2025 |
| 0.3.0 | 24 | 12/10/2025 |
| 0.2.0 | 22 | 12/14/2025 |
| 0.1.1 | 28 | 12/10/2025 |
| 0.1.0 | 22 | 12/09/2025 |