Fewbit.Bricks.Jobs.PeriodicService
1.2.2
dotnet add package Fewbit.Bricks.Jobs.PeriodicService --version 1.2.2
NuGet\Install-Package Fewbit.Bricks.Jobs.PeriodicService -Version 1.2.2
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.PeriodicService" Version="1.2.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fewbit.Bricks.Jobs.PeriodicService" Version="1.2.2" />
<PackageReference Include="Fewbit.Bricks.Jobs.PeriodicService" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Fewbit.Bricks.Jobs.PeriodicService --version 1.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Fewbit.Bricks.Jobs.PeriodicService, 1.2.2"
#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.
#:package Fewbit.Bricks.Jobs.PeriodicService@1.2.2
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Fewbit.Bricks.Jobs.PeriodicService&version=1.2.2
#tool nuget:?package=Fewbit.Bricks.Jobs.PeriodicService&version=1.2.2
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. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
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.2)
- 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.2 | 173 | 12/23/2025 |
| 1.2.1 | 180 | 12/26/2024 |
| 1.1.9 | 186 | 10/6/2024 |
| 1.1.8 | 173 | 10/6/2024 |
| 1.1.7 | 185 | 6/11/2024 |
| 1.1.6 | 205 | 4/23/2024 |
| 1.1.5 | 180 | 4/22/2024 |
| 1.1.4 | 185 | 4/22/2024 |
| 1.1.3 | 179 | 4/22/2024 |
| 1.1.2 | 188 | 4/22/2024 |
| 1.1.1 | 182 | 4/22/2024 |
| 1.1.0 | 175 | 4/22/2024 |
| 1.0.14 | 209 | 4/7/2024 |
| 1.0.13 | 196 | 4/6/2024 |
| 1.0.12 | 229 | 1/17/2024 |
| 1.0.11 | 202 | 12/22/2023 |
| 1.0.10 | 232 | 11/14/2023 |
| 1.0.9 | 221 | 10/15/2023 |
| 1.0.8 | 198 | 10/15/2023 |
| 1.0.7 | 213 | 10/15/2023 |
| 1.0.6 | 217 | 10/15/2023 |
| 1.0.5 | 210 | 10/12/2023 |
| 1.0.4 | 203 | 10/10/2023 |