Fewbit.Bricks.Jobs.Hangfire
1.2.1
dotnet add package Fewbit.Bricks.Jobs.Hangfire --version 1.2.1
NuGet\Install-Package Fewbit.Bricks.Jobs.Hangfire -Version 1.2.1
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.2.1" />
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.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Fewbit.Bricks.Jobs.Hangfire, 1.2.1"
#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.2.1 // Install Fewbit.Bricks.Jobs.Hangfire as a Cake Tool #tool nuget:?package=Fewbit.Bricks.Jobs.Hangfire&version=1.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- Fewbit.Bricks.Jobs.Abstractions (>= 1.2.1)
- Hangfire.Core (>= 1.8.17)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)
- Scrutor (>= 5.1.0)
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.2.1 | 33 | 12/26/2024 |
1.1.9 | 105 | 10/6/2024 |
1.1.8 | 93 | 10/6/2024 |
1.1.7 | 108 | 6/11/2024 |
1.1.6 | 127 | 4/23/2024 |
1.1.5 | 107 | 4/22/2024 |
1.1.4 | 119 | 4/22/2024 |
1.1.3 | 108 | 4/22/2024 |
1.1.2 | 112 | 4/22/2024 |
1.1.1 | 112 | 4/22/2024 |
1.1.0 | 110 | 4/22/2024 |
1.0.14 | 126 | 4/7/2024 |
1.0.13 | 118 | 4/6/2024 |
1.0.12 | 152 | 1/17/2024 |
1.0.11 | 150 | 12/22/2023 |
1.0.10 | 179 | 11/14/2023 |
1.0.9 | 178 | 10/15/2023 |
1.0.8 | 146 | 10/15/2023 |
1.0.7 | 149 | 10/15/2023 |
1.0.6 | 159 | 10/15/2023 |
1.0.5 | 154 | 10/12/2023 |
1.0.4 | 149 | 10/10/2023 |
1.0.3 | 148 | 10/9/2023 |
1.0.2 | 139 | 10/9/2023 |
1.0.1 | 148 | 9/28/2023 |
1.0.0 | 150 | 9/28/2023 |
1.0.0-preview9 | 121 | 9/23/2023 |
1.0.0-preview8 | 110 | 9/23/2023 |
1.0.0-preview7 | 113 | 9/23/2023 |
1.0.0-preview6 | 121 | 9/22/2023 |
1.0.0-preview5 | 111 | 9/22/2023 |
1.0.0-preview4 | 114 | 9/22/2023 |
1.0.0-preview3 | 109 | 9/22/2023 |
1.0.0-preview2 | 116 | 9/22/2023 |
1.0.0-preview11 | 110 | 9/28/2023 |
1.0.0-preview10 | 109 | 9/28/2023 |
1.0.0-preview1 | 108 | 9/22/2023 |