Quartz.Extensions.DependencyInjection 3.20.1

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 to ActivatorUtilities (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
OpenIddict.Quartz
Quartz.NET integration package for OpenIddict.
126
OpenIddict.Quartz
Quartz.NET integration package for OpenIddict.
127
OpenIddict.Quartz
Quartz.NET integration package for OpenIddict.
129
OpenIddict.Quartz
Quartz.NET integration package for OpenIddict.
130
OpenIddict.Quartz
Quartz.NET integration package for OpenIddict.
132
OpenIddict.Quartz
Quartz.NET integration package for OpenIddict.
138
OpenIddict.Quartz
Quartz.NET integration package for OpenIddict.
145
Quartz.Extensions.Hosting
Quartz.NET Generic Host integration; Quartz Scheduling Framework for .NET
129
Quartz.Extensions.Hosting
Quartz.NET Generic Host integration; Quartz Scheduling Framework for .NET
130
Quartz.Extensions.Hosting
Quartz.NET Generic Host integration; Quartz Scheduling Framework for .NET
131
Quartz.Extensions.Hosting
Quartz.NET Generic Host integration; Quartz Scheduling Framework for .NET
132
Quartz.Extensions.Hosting
Quartz.NET Generic Host integration; Quartz Scheduling Framework for .NET
136
Quartz.Extensions.Hosting
Quartz.NET Generic Host integration; Quartz Scheduling Framework for .NET
140

https://github.com/quartznet/quartznet/releases

Version Downloads Last updated
4.0.1 3 09/09/2026
3.21.0 1 09/10/2026
3.20.1 6 09/04/2026
3.20.0 10 08/28/2026
3.19.1 20 07/26/2026
3.19.0 19 07/25/2026
3.18.2 26 06/28/2026
3.18.1 45 04/25/2026
3.18.0 35 04/11/2026
3.17.1 37 04/03/2026
3.17.0 35 03/30/2026
3.16.1 45 03/05/2026
3.16.0 44 03/05/2026
3.15.1 92 10/27/2025
3.15.0 100 08/04/2025
3.14.0 154 03/20/2025
3.13.1 139 03/20/2025
3.13.0 132 03/29/2025
3.12.0 131 03/29/2025
3.11.0 120 03/29/2025
3.10.0 127 03/29/2025
3.9.0 136 03/30/2025
3.8.1 129 03/30/2025
3.8.0 114 03/30/2025
3.7.0 124 03/30/2025
3.6.3 131 03/30/2025
3.6.2 114 03/30/2025
3.6.1 140 03/30/2025
3.6.0 120 03/30/2025
3.5.0 129 03/30/2025
3.4.0 117 03/30/2025
3.3.3 108 03/30/2025
3.3.2 129 03/30/2025
3.3.1 122 03/30/2025
3.3.0 113 03/30/2025
3.2.4 130 03/30/2025
3.2.3 123 03/30/2025
3.2.2 133 03/30/2025
3.2.1 120 03/30/2025
3.2.0 124 03/30/2025
3.1.0 115 03/30/2025
0.4.0 120 03/30/2025
0.3.0 102 03/30/2025
0.2.0 117 03/30/2025
0.1.1 127 03/30/2025
0.1.0 126 03/30/2025