Quartz.Extensions.Hosting
1.0.0
Prefix Reserved
See the version list below for details.
dotnet add package Quartz.Extensions.Hosting --version 1.0.0
NuGet\Install-Package Quartz.Extensions.Hosting -Version 1.0.0
<PackageReference Include="Quartz.Extensions.Hosting" Version="1.0.0" />
paket add Quartz.Extensions.Hosting --version 1.0.0
#r "nuget: Quartz.Extensions.Hosting, 1.0.0"
// Install Quartz.Extensions.Hosting as a Cake Addin #addin nuget:?package=Quartz.Extensions.Hosting&version=1.0.0 // Install Quartz.Extensions.Hosting as a Cake Tool #tool nuget:?package=Quartz.Extensions.Hosting&version=1.0.0
Quartz Hosting
Do you want to write services the dotnet core way, using the IHostedService interface? Is Quartz server too much for your current need? Then use this extension to run your applicaton with quartz.
Install
Quartz.Extensions.Hosting is available as a Nuget-package. From the Package Manager Console enter:
Install-Package Quartz.Extensions.Hosting
How to use in a console application
Build a generic host the normal way. Use the HostBuilder class as you normally do when building a console app. Then add in quartz and any scheduler configuration.
var builder = new HostBuilder()
.ConfigureServices((hostContext, services) =>
{
services.AddQuartz(scheduler =>
{
scheduler.ScheduleJob(
JobBuilder
.Create(typeof(HelloJob))
.Build(),
TriggerBuilder
.Create()
.WithSimpleSchedule(s => s
.WithIntervalInSeconds(5)
.RepeatForever())
.Build());
});
});
How to use in an MVC application
In Startup.cs, use the extension method in ConfigureServices. Order is not important with registration.
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);
services.AddQuartz(scheduler =>
{
scheduler.ScheduleJob(
JobBuilder
.Create(typeof(HelloJob))
.Build(),
TriggerBuilder
.Create()
.WithSimpleSchedule(s => s
.WithIntervalInSeconds(5)
.RepeatForever())
.Build());
});
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.2 is compatible. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
-
.NETCoreApp 2.2
- Microsoft.Extensions.DependencyInjection (>= 2.2.0)
- Microsoft.Extensions.Hosting (>= 2.2.0)
- Quartz (>= 3.0.7)
NuGet packages (70)
Showing the top 5 NuGet packages that depend on Quartz.Extensions.Hosting:
Package | Downloads |
---|---|
Quartz.AspNetCore
Quartz.NET ASP.NET Core integration; Quartz Scheduling Framework for .NET |
|
MassTransit.Quartz
MassTransit Quartz.NET scheduler support; MassTransit provides a developer-focused, modern platform for creating distributed applications without complexity. |
|
Elsa.Activities.Temporal.Quartz
Elsa is a set of workflow libraries and tools that enable lean and mean workflowing capabilities in any .NET Core application. This package provides a Quartz timer provider. |
|
Onion.Quartz
Package Description |
|
SeedBt.Library.Core
Package Description |
GitHub repositories (18)
Showing the top 5 popular GitHub repositories that depend on Quartz.Extensions.Hosting:
Repository | Stars |
---|---|
MassTransit/MassTransit
Distributed Application Framework for .NET
|
|
elsa-workflows/elsa-core
A .NET workflows library
|
|
openiddict/openiddict-core
Flexible and versatile OAuth 2.0/OpenID Connect stack for .NET
|
|
oskardudycz/EventSourcing.NetCore
Examples and Tutorials of Event Sourcing in .NET
|
|
CodeMazeBlog/CodeMazeGuides
The main repository for all the Code Maze guides
|
Version | Downloads | Last updated |
---|---|---|
3.13.1 | 213,903 | 11/2/2024 |
3.13.0 | 1,302,685 | 8/10/2024 |
3.12.0 | 168,663 | 8/3/2024 |
3.11.0 | 783,598 | 7/7/2024 |
3.10.0 | 213,559 | 6/26/2024 |
3.9.0 | 1,102,314 | 5/9/2024 |
3.8.1 | 1,902,605 | 2/17/2024 |
3.8.0 | 2,216,852 | 11/18/2023 |
3.7.0 | 2,101,739 | 8/4/2023 |
3.6.3 | 815,224 | 6/25/2023 |
3.6.2 | 2,989,461 | 2/25/2023 |
3.6.1 | 3,609 | 2/25/2023 |
3.6.0 | 703,763 | 1/29/2023 |
3.5.0 | 2,991,247 | 9/18/2022 |
3.4.0 | 3,726,683 | 3/27/2022 |
3.3.3 | 4,138,657 | 8/1/2021 |
3.3.2 | 1,096,439 | 4/9/2021 |
3.3.1 | 44,915 | 4/8/2021 |
3.3.0 | 15,341 | 4/7/2021 |
3.2.4 | 675,235 | 1/19/2021 |
3.2.3 | 590,370 | 10/31/2020 |
3.2.2 | 44,539 | 10/19/2020 |
3.2.1 | 10,970 | 10/18/2020 |
3.2.0 | 27,257 | 10/2/2020 |
1.0.0 | 25,435 | 5/30/2019 |
Targets netstandard2.2