HangfireIO / HangfireIO/Hangfire

IServiceCollection.AddHangfireServer example configuration

Open
#1,986 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
10.1k
Forks
1.8k
Avg merge
1h 19m
Merged PRs (30d)
1

Description

Hi all,

I'm using Hangfire for quite some time.
Is it possible to provide the new configuration for the extension method IServiceCollection AddHanfireServer to pass additional processes and a BackgroundJobServerOptions instance to this new method?

The previous method (IApplicationBuilder AddHangfireServer) is now obsolete and now it requires a NotNull instance of JobStorage on ConfigureServices method.

![image](https://user-images.githubusercontent.com/26621392/147242622-b26a047a-10ca-4f42-970d-002efbcea816.png)

![image](https://user-images.githubusercontent.com/26621392/147242927-6a09095a-63c1-4341-af62-590b28e16d0e.png)

@odinserj

Contributor guide

Open the contributing guide

Research direction

Start by examining the IServiceCollection.AddHangfireServer extension and compare it with the obsolete IApplicationBuilder.AddHangfireServer method described in the issue. Trace how JobStorage, additional processes, and BackgroundJobServerOptions are currently supplied; done means the new method supports the requested configuration and has an example showing its use.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.