-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add IServiceProvider
access when registering scheduled job
#47
Comments
Closed
@stijnmoreels I am sorry for the delay in merging your changes. I completed your changes here #50 |
Oh, that's great! 🥳 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the feature you would like to have:
Currently, a scheduled job can be added without any
IServiceProvider
access. This can be rather tedious as when registering anUnobservedTaskExceptionHandler
, one might want to use the registeredILogger<>
instead.In the sample app in this repo, we see the same problem recurring.
A possible way, is to add an overload that takes in
Action<SchedulerBuilder, IServiceProvider>
or something like that, so the configuration can access theIServiceProvider
and the registered services.File to change
The text was updated successfully, but these errors were encountered: