Quartz.Extensions.Hosting 1.0.0 Prefix Reserved

There is a newer version of this package available.
See the version list below for details.
Install-Package Quartz.Extensions.Hosting -Version 1.0.0
dotnet add package Quartz.Extensions.Hosting --version 1.0.0
<PackageReference Include="Quartz.Extensions.Hosting" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Quartz.Extensions.Hosting --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Quartz.Extensions.Hosting, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// 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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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());
        });
    }

NuGet packages (12)

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

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

Cogito.Quartz

Provides utilites and extensions for Quartz.

HwApp.Quartz

HwApp Quartz & Quartzmin

GitHub repositories (4)

Showing the top 4 popular GitHub repositories that depend on Quartz.Extensions.Hosting:

Repository Stars
openiddict/openiddict-core
Versatile OpenID Connect stack for ASP.NET Core and Microsoft.Owin (compatible with ASP.NET 4.6.1)
andrewlock/asp-dot-net-core-in-action-2e
Source code examples for ASP.NET Core in Action, Second Edition
lithnet/access-manager
Access Manager provides web-based access to local admin (LAPS) passwords, BitLocker recovery keys, and just-in-time administrative access to Windows computers in a modern, secure, and user-friendly way.
thomasduft/openiddict-ui
A headless UI for the OpenIddict-Core stack.
Version Downloads Last updated
3.3.3 527,152 8/1/2021
3.3.2 487,670 4/9/2021
3.3.1 10,353 4/8/2021
3.3.0 6,125 4/7/2021
3.2.4 314,536 1/19/2021
3.2.3 211,920 10/31/2020
3.2.2 25,543 10/19/2020
3.2.1 2,739 10/18/2020
3.2.0 18,048 10/2/2020
1.0.0 2,440 5/30/2019

Targets netstandard2.2