-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Try resolving jobs from service provider before resorting to ActivatorUtilities #1159
Conversation
Should |
Good catch, added check for job's origin and only disposing if it came from |
Looks good. |
@@ -61,15 +61,10 @@ public void UseMicrosoftDependencyInjectionJobFactory(Action<JobFactoryOptions>? | |||
UseJobFactory<MicrosoftDependencyInjectionJobFactory>(configure); | |||
} | |||
|
|||
[Obsolete("Jobs are always created with some")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean ... with scope
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, working in parallel with two bug fixes seems to freeze the brain. Pushed fix commit.
I think we have the pieces together to patch the DI resolution support.. @kevinchalet and @ArturDorochowicz are you happy with this so I can merge? Thank you both for helping out and spotting problems. |
@lahma I think it addresses all concerns. Ship it! :) |
@lahma looks awesome, thanks for fixing it! 👏🏻 |
fixes #1157