HangfireIO / HangfireIO/Hangfire
inject PerformContext into task
- 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
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