HangfireIO / HangfireIO/Hangfire

IPerformContextAccessor like IHttpContextAccessor

Open
#2,045 2 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

Is it possible to have something like IHttpContextAccessor in ASP.NET (let's call it IPerformContextAccessor ) where we would be able to inject it to get current job execution context?

For example we have IUser interface that resolves by injecting IHttpContextAccessor and reading claims for current user.
For hangfire scenario we would like to do the same but instead of reading claims from HttpContext we would like to access job information.

Is this possible to achieve?

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by determining whether Hangfire exposes a current job execution context that could support an injectable accessor like IHttpContextAccessor. Done would require an agreed accessor design and documented behavior for resolving the current job context.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.