Fewbit.Bricks.Jobs.Hangfire 1.1.6

dotnet add package Fewbit.Bricks.Jobs.Hangfire --version 1.1.6
NuGet\Install-Package Fewbit.Bricks.Jobs.Hangfire -Version 1.1.6
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Fewbit.Bricks.Jobs.Hangfire" Version="1.1.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Fewbit.Bricks.Jobs.Hangfire --version 1.1.6
#r "nuget: Fewbit.Bricks.Jobs.Hangfire, 1.1.6"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Fewbit.Bricks.Jobs.Hangfire as a Cake Addin
#addin nuget:?package=Fewbit.Bricks.Jobs.Hangfire&version=1.1.6

// Install Fewbit.Bricks.Jobs.Hangfire as a Cake Tool
#tool nuget:?package=Fewbit.Bricks.Jobs.Hangfire&version=1.1.6

Hangfire Job Processor

const string jobId = "1";

StartAndBuildProcessor()
    .ScheduleRecurringCall<IHeartBeatJob, HeartBeatJobData>(
        new HeartBeatJobData(DateTimeOffset.Now),
        Cron.Minutely(),
        jobId
    );

GlobalJobFilters.Filters.Add(
    new AutomaticRetryAttribute { Attempts = 0, OnAttemptsExceeded = AttemptsExceededAction.Delete }
);

using var server = new BackgroundJobServer();
Console.ReadKey();
return;

static IJobProcessor StartAndBuildProcessor()
{
    var services = new ServiceCollection();
    services.AddLogging(configuration =>
    {
        configuration.AddConsole();
    });
    services.AddSingleton<IJobProcessor, HangfireJobProcessor>();
    services.AddTransient<IHeartBeatJob, HeartBeatJob>();
    services.AddHangfire(configuration =>
    {
        configuration.UseSQLiteStorage("test.db");
    });
    services.AddHangfireServer();
    var serviceProvider = services.BuildServiceProvider();
    return serviceProvider.GetRequiredService<IJobProcessor>();
}
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.6 83 4/23/2024
1.1.5 72 4/22/2024
1.1.4 78 4/22/2024
1.1.3 72 4/22/2024
1.1.2 73 4/22/2024
1.1.1 78 4/22/2024
1.1.0 73 4/22/2024
1.0.14 93 4/7/2024
1.0.13 81 4/6/2024
1.0.12 113 1/17/2024
1.0.11 121 12/22/2023
1.0.10 146 11/14/2023
1.0.9 144 10/15/2023
1.0.8 116 10/15/2023
1.0.7 118 10/15/2023
1.0.6 122 10/15/2023
1.0.5 116 10/12/2023
1.0.4 115 10/10/2023
1.0.3 112 10/9/2023
1.0.2 109 10/9/2023
1.0.1 111 9/28/2023
1.0.0 109 9/28/2023
1.0.0-preview9 89 9/23/2023
1.0.0-preview8 83 9/23/2023
1.0.0-preview7 86 9/23/2023
1.0.0-preview6 89 9/22/2023
1.0.0-preview5 79 9/22/2023
1.0.0-preview4 86 9/22/2023
1.0.0-preview3 79 9/22/2023
1.0.0-preview2 85 9/22/2023
1.0.0-preview11 81 9/28/2023
1.0.0-preview10 80 9/28/2023
1.0.0-preview1 77 9/22/2023