Soenneker.Hangfire.ProgressFactory 11.0.710

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

We recommend Flywheel for background jobs due to our concerns about Hangfire's approach to community collaboration and addressing security vulnerabilities.

These libraries will no longer receive new features. Dependencies will continue to be updated.

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Hangfire.ProgressFactory

Turns an expected item count into percentage updates for a Hangfire.Console progress bar. Progress state is isolated per async job execution so the singleton service can be used by concurrent jobs.

Installation

dotnet add package Soenneker.Hangfire.ProgressFactory

Registration

using Soenneker.Hangfire.ProgressFactory.Registrars;

services.AddProgressFactoryAsSingleton();

This also registers the Hangfire.Console progress-bar services required by the factory.

Usage in a job

using Soenneker.Hangfire.ProgressFactory.Abstract;

public sealed class ImportJob(IProgressFactory progress)
{
    public async Task Run(IReadOnlyList<ImportItem> items, CancellationToken cancellationToken)
    {
        progress.Init(items.Count);

        foreach (ImportItem item in items)
        {
            await Import(item, cancellationToken);
            progress.Increment();
        }
    }
}

Each Increment() advances by 100 / count, caps the reported value at 100, and ignores increments after completion. Initializing with zero items immediately reports 100. Calling Increment() before Init() throws InvalidOperationException.

Initialize once for each job execution. If work is fanned out to parallel tasks within one job, increments share a synchronized progress state.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
11.0.710 85 10/27/2026
11.0.709 110 10/26/2026
4.0.707 180 10/14/2026
4.0.706 90 10/14/2026
4.0.701 95 10/12/2026
4.0.700 86 10/12/2026
4.0.699 103 10/11/2026
4.0.698 141 9/30/2026
4.0.697 115 9/24/2026
4.0.696 99 9/24/2026
4.0.695 199 9/15/2026
4.0.694 103 9/12/2026
4.0.693 120 9/4/2026
4.0.692 115 9/4/2026
4.0.691 126 9/4/2026
4.0.690 135 8/30/2026
4.0.689 122 8/29/2026
4.0.688 119 8/29/2026
4.0.687 117 8/29/2026
4.0.686 573 7/28/2026
Loading failed

Remove redundant framework conditions