Skip to content
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

Check if all services are registered #182

Open
linkdotnet opened this issue Jan 26, 2025 · 0 comments
Open

Check if all services are registered #182

linkdotnet opened this issue Jan 26, 2025 · 0 comments
Labels
enhancement New feature or request Needs Design

Comments

@linkdotnet
Copy link
Member

Follow up to #177

Check if all jobs and their dependencies are registered probably (inside UseNCronJob).

Additional info:

  • We want to offer this in the ASP.NET style:
builder.Host.UseDefaultServiceProvider((_, options) =>
{
    options.ValidateScopes = true;
    options.ValidateOnBuild = true;
});

So, basically, UseNCronJob gets an optional parameter with an options object that has a ValidateOnBuild flag as well. And if IsDevelopment is true we might even wanna enable that to be aligned with ASP.NET.

  • We might want to include Minimal Jobs as well. But that means we have to dissect the lambda.
@linkdotnet linkdotnet added enhancement New feature or request Needs Design labels Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Needs Design
Projects
None yet
Development

No branches or pull requests

1 participant