Cultiv.Hangfire 5.0.0

dotnet add package Cultiv.Hangfire --version 5.0.0
                    
NuGet\Install-Package Cultiv.Hangfire -Version 5.0.0
                    
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="Cultiv.Hangfire" Version="5.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Cultiv.Hangfire" Version="5.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Cultiv.Hangfire" />
                    
Project file
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 Cultiv.Hangfire --version 5.0.0
                    
#r "nuget: Cultiv.Hangfire, 5.0.0"
                    
#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 Cultiv.Hangfire@5.0.0
                    
#: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=Cultiv.Hangfire&version=5.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Cultiv.Hangfire&version=5.0.0
                    
Install as a Cake Tool

Cultiv.Hangfire · GitHub license NuGet version (Cultiv.Hangfire) Twitter

Hangfire dashboard for Umbraco

This installs Hangfire and a dashboard in Umbraco, the dashboard is secured and is only available for users with access to the Settings section of Umbraco.

After installing this, you can add a Composer to start running scheduled tasks, for example:

using System.Threading;
using Hangfire;
using Hangfire.Console;
using Hangfire.Server;
using Umbraco.Cms.Core.Composing;
using Umbraco.Cms.Core.DependencyInjection;

namespace MyNamespace
{
    public class Composer : IComposer
    {
        public void Compose(IUmbracoBuilder builder)
        {            
            RecurringJob.AddOrUpdate(() => DoIt(null), Cron.Hourly());
        }
        
        public void DoIt(PerformContext context)
        {
            var progressBar =  context.WriteProgressBar();
            var items = new int[10]{ 2, 4, 6, 8, 10, 12, 14, 16, 18, 20 };

            foreach (var item in items.WithProgress(progressBar, items.Length))
            {
                context.WriteLine($"Number: {item}");
                Thread.Sleep(1000);
            }
        }
    }
}

In the Umbraco backoffice it will look a little something like this:

Screenshot of Cultiv.Hangfire installed in Umbraco

Notes for specific versions this package and Umbraco

  • Version 5+ of this package works with Umbraco versions 17 and above
  • Version 4+ of this package works with Umbraco versions 14 through 16
  • Version 3 and below works with Umbraco 9 through 13

Umbraco 13

  • You might need to add the following above your IComposers that schedule the jobs: [ComposeAfter(typeof(HangfireComposer))] (see this issue)
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Cultiv.Hangfire:

Package Downloads
uSync.Complete.Hangfire

Hangfire helpers for uSync.Complete

uSync.Hangfire

Hangfire helpers for uSync

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.0.0 184 11/28/2025
4.1.3 11,449 2/20/2025
4.1.2 268 2/20/2025
4.1.1 246 2/20/2025
4.1.0 234 2/20/2025
4.0.1 4,473 5/30/2024
4.0.0 373 5/8/2024
4.0.0-beta2 143 5/2/2024
4.0.0-beta1 193 3/7/2024
3.1.2 112,774 9/18/2023
3.1.1 259 9/18/2023
3.1.0 230 9/18/2023
3.0.0 4,107 8/21/2023
2.3.0 38,697 11/9/2022
2.2.1 2,308 11/3/2022
2.2.0 762 11/2/2022
2.2.0-rc001 282 11/2/2022
2.1.0 4,056 7/29/2022
2.0.1 1,684 7/19/2022
2.0.1-rc003 286 7/19/2022
2.0.1-rc002 280 7/19/2022
2.0.1-rc001 352 7/19/2022
2.0.0 741 6/23/2022
2.0.0-rc001 575 5/22/2022
1.0.1 5,207 3/7/2022
1.0.0 2,699 10/10/2021
1.0.0-rc001 438 9/19/2021