HangfireIO / HangfireIO/Hangfire

Add .Net 6 support

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

Description

We are using a .Net 6 app with hangfire but run into the issue that we can't use the default .net serviceprovider in .Net 6

It seems we are missing the public static IServiceCollection AddHangfireServer([NotNull] this IServiceCollection services, [NotNull] Action optionsAction) method for .Net containers in the .Net 6 as referenced here as it is hidden behind preprocessor directive that don't include the latest .Net versions: https://github.com/HangfireIO/Hangfire/blob/master/src/Hangfire.AspNetCore/HangfireServiceCollectionExtensions.cs#L107

Contributor guide

Open the contributing guide

Research direction

Start in src/Hangfire.AspNetCore/HangfireServiceCollectionExtensions.cs at the AddHangfireServer overload around line 107, and inspect the preprocessor directive that hides it for .NET 6. Verify that the public IServiceCollection extension is available to a .NET 6 application and that the reported default service-provider integration can compile and use it.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.