Fewbit.Bricks.Jobs.PeriodicService
1.0.9
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Fewbit.Bricks.Jobs.PeriodicService --version 1.0.9
NuGet\Install-Package Fewbit.Bricks.Jobs.PeriodicService -Version 1.0.9
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.0.9" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Fewbit.Bricks.Jobs.PeriodicService --version 1.0.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Fewbit.Bricks.Jobs.PeriodicService, 1.0.9"
#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.PeriodicService as a Cake Addin #addin nuget:?package=Fewbit.Bricks.Jobs.PeriodicService&version=1.0.9 // Install Fewbit.Bricks.Jobs.PeriodicService as a Cake Tool #tool nuget:?package=Fewbit.Bricks.Jobs.PeriodicService&version=1.0.9
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 | net6.0 is compatible. 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 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Fewbit.Bricks.Jobs.Abstractions (>= 1.0.9)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 7.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 7.0.1)
- Scrutor (>= 4.2.2)
-
net7.0
- Fewbit.Bricks.Jobs.Abstractions (>= 1.0.9)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 7.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 7.0.1)
- Scrutor (>= 4.2.2)
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.9 | 85 | 10/6/2024 |
1.1.8 | 80 | 10/6/2024 |
1.1.7 | 92 | 6/11/2024 |
1.1.6 | 119 | 4/23/2024 |
1.1.5 | 97 | 4/22/2024 |
1.1.4 | 107 | 4/22/2024 |
1.1.3 | 93 | 4/22/2024 |
1.1.2 | 96 | 4/22/2024 |
1.1.1 | 93 | 4/22/2024 |
1.1.0 | 99 | 4/22/2024 |
1.0.14 | 121 | 4/7/2024 |
1.0.13 | 108 | 4/6/2024 |
1.0.12 | 146 | 1/17/2024 |
1.0.11 | 130 | 12/22/2023 |
1.0.10 | 170 | 11/14/2023 |
1.0.9 | 160 | 10/15/2023 |
1.0.8 | 138 | 10/15/2023 |
1.0.7 | 133 | 10/15/2023 |
1.0.6 | 129 | 10/15/2023 |
1.0.5 | 137 | 10/12/2023 |
1.0.4 | 139 | 10/10/2023 |