Hangfire.Stashbox
1.0.2
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
<PackageReference Include="Hangfire.Stashbox" Version="1.0.2" />
paket add Hangfire.Stashbox --version 1.0.2
#r "nuget: Hangfire.Stashbox, 1.0.2"
// 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
stashbox-hangfire
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();
GlobalConfiguration.Configuration.UseStashboxActivator(container);
ASP.NET Core
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) =>
config.UseStashboxActivator(provider.GetService<IDependencyResolver>()));
return services.UseStashbox();
}
.NET Generic Host
using (var host = new HostBuilder()
.UseStashbox()
.ConfigureContainer<IStashboxContainer>((context, container) =>
{
container.Register<JobActivator, StashboxJobActivator>();
})
.ConfigureServices((context, services) =>
{
services.AddHangfireServer();
})
.Build())
{
// start and use your host
}
Product | Versions 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. |
-
.NETFramework 4.5
- Hangfire.Core (>= 1.7.2)
- Stashbox (>= 2.7.4)
-
.NETStandard 1.3
- Hangfire.Core (>= 1.7.2)
- NETStandard.Library (>= 1.6.1)
- Stashbox (>= 2.7.4)
-
.NETStandard 2.0
- Hangfire.Core (>= 1.7.2)
- Stashbox (>= 2.7.4)
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 | 608 | 6/21/2023 |
4.6.0 | 592 | 6/5/2023 |
4.5.2 | 643 | 3/29/2023 |
4.5.1 | 652 | 3/29/2023 |
4.5.0 | 683 | 2/28/2023 |
4.4.0 | 735 | 12/6/2022 |
4.3.2 | 733 | 11/29/2022 |
4.3.1 | 848 | 10/14/2022 |
4.3.0 | 796 | 10/12/2022 |
4.2.3 | 822 | 9/9/2022 |
4.2.2 | 873 | 6/2/2022 |
4.2.1 | 853 | 5/17/2022 |
4.2.0 | 848 | 5/3/2022 |
4.1.1 | 895 | 3/12/2022 |
4.1.0 | 850 | 3/7/2022 |
4.0.1 | 871 | 2/10/2022 |
4.0.0 | 846 | 2/9/2022 |
3.1.0 | 907 | 11/22/2021 |
3.0.3 | 774 | 5/26/2021 |
3.0.2 | 870 | 3/16/2021 |
3.0.1 | 980 | 11/15/2020 |
3.0.0 | 958 | 10/19/2020 |
1.2.2 | 960 | 6/8/2020 |
1.2.1 | 921 | 6/8/2020 |
1.2.0 | 878 | 6/8/2020 |
1.1.0 | 1,079 | 9/11/2019 |
1.0.2 | 1,035 | 5/9/2019 |