Quartz.Extensions.Hosting 3.13.1
Quartz.Extensions.Hosting provides integration with hosted services.
Quartz 3.2 or later required for Quartz.Extensions.Hosting. You can use package Quartz.AspNetCore with version 3.1.
Installation
You need to add NuGet package reference to your project which uses Quartz.
Quartz 3.1
Install-Package Quartz.AspNetCore
Quartz 3.2 onwards
Install-Package Quartz.Extensions.Hosting
Using
You can add Quartz configuration by invoking an extension method AddQuartzHostedService
on IServiceCollection
.
This will add a hosted quartz server into process that will be started and stopped based on applications lifetime.
See Quartz.Extensions.DependencyInjection documentation to learn more about configuring Quartz scheduler, jobs and triggers.
Example program utilizing hosted services configuration
public class Program
{
public static void Main(string[] args)
{
Log.Logger = new LoggerConfiguration()
.Enrich.FromLogContext()
.WriteTo.Console()
.CreateLogger();
CreateHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.UseSerilog()
.ConfigureServices((hostContext, services) =>
{
// see Quartz.Extensions.DependencyInjection documentation about how to configure different configuration aspects
services.AddQuartz(q =>
{
// your configuration here
});
// Quartz.Extensions.Hosting hosting
services.AddQuartzHostedService(options =>
{
// when shutting down we want jobs to complete gracefully
options.WaitForJobsToComplete = true;
});
});
}
Showing the top 20 packages that depend on Quartz.Extensions.Hosting.
Packages | Downloads |
---|---|
Quartz.AspNetCore
Quartz.NET ASP.NET Core integration; Quartz Scheduling Framework for .NET
|
8 |
Quartz.AspNetCore
Quartz.NET ASP.NET Core integration; Quartz Scheduling Framework for .NET
|
10 |
Quartz.AspNetCore
Quartz.NET ASP.NET Core integration; Quartz Scheduling Framework for .NET
|
12 |
Quartz.AspNetCore
Quartz.NET ASP.NET Core integration; Quartz Scheduling Framework for .NET
|
13 |
Quartz.AspNetCore
Quartz.NET ASP.NET Core integration; Quartz Scheduling Framework for .NET
|
15 |
Quartz.AspNetCore
Quartz.NET ASP.NET Core integration; Quartz Scheduling Framework for .NET
|
27 |
Quartz.AspNetCore
Quartz.NET ASP.NET Core integration; Quartz Scheduling Framework for .NET
|
30 |
Quartz.AspNetCore
Quartz.NET ASP.NET Core integration; Quartz Scheduling Framework for .NET
|
31 |
Quartz.AspNetCore
Quartz.NET ASP.NET Core integration; Quartz Scheduling Framework for .NET
|
32 |
Quartz.AspNetCore
Quartz.NET ASP.NET Core integration; Quartz Scheduling Framework for .NET
|
33 |
Quartz.AspNetCore
Quartz.NET ASP.NET Core integration; Quartz Scheduling Framework for .NET
|
43 |
Quartz.AspNetCore
Quartz.NET ASP.NET Core integration; Quartz Scheduling Framework for .NET
|
47 |
Quartz.AspNetCore
Quartz.NET ASP.NET Core integration; Quartz Scheduling Framework for .NET
|
58 |
Quartz.AspNetCore
Quartz.NET ASP.NET Core integration; Quartz Scheduling Framework for .NET
|
64 |
Quartz.AspNetCore
Quartz.NET ASP.NET Core integration; Quartz Scheduling Framework for .NET
|
11,314 |
Quartz.AspNetCore
Quartz.NET ASP.NET Core integration; Quartz Scheduling Framework for .NET
|
12,165 |
.NET 6.0
- Quartz.Extensions.DependencyInjection (>= 3.13.1)
- Microsoft.Extensions.Hosting.Abstractions (>= 6.0.0)
.NET 8.0
- Quartz.Extensions.DependencyInjection (>= 3.13.1)
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
.NET Standard 2.0
- Quartz.Extensions.DependencyInjection (>= 3.13.1)
- Microsoft.Extensions.Hosting.Abstractions (>= 2.1.1)
Version | Downloads | Last updated |
---|---|---|
3.13.1 | 3 | 11/21/2024 |
3.13.0 | 8 | 08/10/2024 |
3.12.0 | 7 | 08/04/2024 |
3.11.0 | 7 | 07/21/2024 |
3.10.0 | 5 | 07/21/2024 |
3.9.0 | 6 | 05/21/2024 |
3.8.1 | 8 | 03/12/2024 |
3.8.0 | 12 | 11/29/2023 |
3.7.0 | 15 | 08/17/2023 |
3.6.3 | 11 | 06/27/2023 |
3.6.2 | 35 | 04/03/2023 |
3.6.1 | 27 | 04/09/2023 |
3.6.0 | 30 | 04/09/2023 |
3.5.0 | 12,176 | 09/27/2022 |
3.4.0 | 31 | 06/27/2022 |
3.3.3 | 11,277 | 06/27/2022 |
3.3.2 | 19 | 08/20/2022 |
3.3.1 | 28 | 08/20/2022 |
3.3.0 | 36 | 08/20/2022 |
3.2.4 | 52 | 08/20/2022 |
3.2.3 | 37 | 08/21/2022 |
3.2.2 | 31 | 08/20/2022 |
3.2.1 | 63 | 08/20/2022 |
3.2.0 | 79 | 08/21/2022 |
1.0.0 | 31 | 08/20/2022 |