Skip to content

Add IServiceProvider access when registering scheduled job  #47

@stijnmoreels

Description

@stijnmoreels

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 an UnobservedTaskExceptionHandler, one might want to use the registered ILogger<> 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 the IServiceProvider and the registered services.

File to change

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions