Hangfire.Stashbox 1.0.2

There is a newer version of this package available.
See the version list below for details.
Install-Package Hangfire.Stashbox -Version 1.0.2
dotnet add package Hangfire.Stashbox --version 1.0.2
<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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Hangfire.Stashbox, 1.0.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. 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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.


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

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
3.1.0 199 11/22/2021
3.0.3 95 5/26/2021
3.0.2 127 3/16/2021
3.0.1 272 11/15/2020
3.0.0 241 10/19/2020
1.2.2 223 6/8/2020
1.2.1 223 6/8/2020
1.2.0 192 6/8/2020
1.1.0 298 9/11/2019
1.0.2 287 5/9/2019