Hangfire.Stashbox 1.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Hangfire.Stashbox --version 1.0.2
NuGet\Install-Package Hangfire.Stashbox -Version 1.0.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="Hangfire.Stashbox" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Hangfire.Stashbox --version 1.0.2
#r "nuget: Hangfire.Stashbox, 1.0.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.
// Install Hangfire.Stashbox as a Cake Addin
#addin nuget:?package=Hangfire.Stashbox&version=1.0.2

// Install Hangfire.Stashbox as a Cake Tool
#tool nuget:?package=Hangfire.Stashbox&version=1.0.2


Appveyor build status Travis CI build status NuGet Version

This project provides Stashbox integration for Hangfire, using Stashbox container and Scopes to resolve jobs and their dependencies.

Common usage

To integrate Stashbox as the default JobActivator into Hangfire, you can use the UseStashboxActivator extension method on the IGlobalConfiguration interface.

var container = new StashboxContainer();



As the ASP.NET Core extension of Hangfire uses the configured IServiceProvider to resolve jobs through an AspNetCoreJobActivator, so for using Stashbox as the default job activator you can simply just use the ASP.NET Core integration of Stashbox which will replace the default IServiceProvider with a Stashbox container.

However you also have the option to tell Hangfire that it should use the StashboxJobActivator directly.

public IServiceProvider ConfigureService(IServiceCollection services)
    services.AddHangfire((provider, config) => 

    return services.UseStashbox();

.NET Generic Host

using (var host = new HostBuilder()
    .ConfigureContainer<IStashboxContainer>((context, container) =>
        container.Register<JobActivator, StashboxJobActivator>();
    .ConfigureServices((context, services) =>
    // start and use your host
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.3 is compatible.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Additional computed target framework(s)
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
4.7.0 446 6/21/2023
4.6.0 447 6/5/2023
4.5.2 500 3/29/2023
4.5.1 503 3/29/2023
4.5.0 539 2/28/2023
4.4.0 603 12/6/2022
4.3.2 602 11/29/2022
4.3.1 700 10/14/2022
4.3.0 675 10/12/2022
4.2.3 686 9/9/2022
4.2.2 737 6/2/2022
4.2.1 710 5/17/2022
4.2.0 710 5/3/2022
4.1.1 756 3/12/2022
4.1.0 730 3/7/2022
4.0.1 749 2/10/2022
4.0.0 707 2/9/2022
3.1.0 782 11/22/2021
3.0.3 642 5/26/2021
3.0.2 739 3/16/2021
3.0.1 873 11/15/2020
3.0.0 802 10/19/2020
1.2.2 810 6/8/2020
1.2.1 783 6/8/2020
1.2.0 756 6/8/2020
1.1.0 924 9/11/2019
1.0.2 890 5/9/2019