HangfireIO / HangfireIO/Hangfire

inject PerformContext into task

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

Description

It would be convenient to be able to inject PerformContext into an enqueued or scheduled task. I haven't figured out if there is a way to do this and if I'm just missing it. I'm using AutoFac, so I think I'd have to somehow get PerformContext into the AutoFac container. Any thoughts on how this might be possible?

Thanks!

Contributor guide

Open the contributing guide

Research direction

Start by reviewing how PerformContext is made available to enqueued and scheduled tasks, then examine the Autofac integration entry point. The issue does not name files or tests; done would require defining and implementing a supported injection approach and verifying it for both task types.

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.