![]() |
VOOZH | about |
dotnet add package Hangfire.Console.Extensions --version 2.1.1
NuGet\Install-Package Hangfire.Console.Extensions -Version 2.1.1
<PackageReference Include="Hangfire.Console.Extensions" Version="2.1.1" />
<PackageVersion Include="Hangfire.Console.Extensions" Version="2.1.1" />Directory.Packages.props
<PackageReference Include="Hangfire.Console.Extensions" />Project file
paket add Hangfire.Console.Extensions --version 2.1.1
#r "nuget: Hangfire.Console.Extensions, 2.1.1"
#:package Hangfire.Console.Extensions@2.1.1
#addin nuget:?package=Hangfire.Console.Extensions&version=2.1.1Install as a Cake Addin
#tool nuget:?package=Hangfire.Console.Extensions&version=2.1.1Install as a Cake Tool
Hangfire.Console with .net core dependency injectionIn .NET Core's Startup.cs:
public void ConfigureServices(IServiceCollection services)
{
services.AddHangfire((serviceProvider, configuration) => configuration
.UseConsole()
.SetDataCompatibilityLevel(CompatibilityLevel.Version_180)
.UseSimpleAssemblyNameTypeSerializer()
.UseRecommendedSerializerSettings()
.UseMemoryStorage());
services.AddHangfireConsoleExtensions();
services.AddHangfireServer();
}
To start a job you can use the IJobManager, it will automatically check if you are currently inside a job, if that is the case it will mark the started job as a Continuation.
Instead of logging using the extension method on PerformContext you can now just use the ILogging and it will get logged to both normal logging facilities and Hangfire.Console.
To create a progress bar you can use IProgressBarFactory.
Just take the IJobCancellationToken as a constructor parameter to get a hold of the cancellation token.
Contains a extension method for AddOrUpdateManuallyTriggered if you have a job that should only be run manually.
Add WithHangfireContext to Enrich and add Hangfire as a WriteTo target
Example:
"Serilog": {
"Enrich": [ "WithHangfireContext" ],
"WriteTo": [
{
"Name": "Hangfire",
"Args": {
"restrictedToMinimumLevel": "Information"
}
}
]
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 netstandard2.1 is compatible. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on Hangfire.Console.Extensions:
| Package | Downloads |
|---|---|
|
Hangfire.Console.Extensions.Serilog
Makes it easier to use Hangfire.Console with serilog |
|
|
Hangfire.AspNetCore.Plus
Package Description |
|
|
HiZLabs.Libraries.Jobs
Package Description |
|
|
GLaDOS.Hangfire
Package Description |
|
|
Corsinvest.AppHero.HangFire
Package Description |
Showing the top 1 popular GitHub repositories that depend on Hangfire.Console.Extensions:
| Repository | Stars |
|---|---|
|
Corsinvest/cv4pve-admin
Web management platform for Proxmox VE clusters — like vCenter but for Proxmox
|