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

Microsoft DI integration does not working with Microsoft.Extensions.Hosting v7 preview #1544

Closed
AntonioFalcaoJr opened this issue Mar 16, 2022 · 4 comments · Fixed by #1552
Closed
Milestone

Comments

@AntonioFalcaoJr
Copy link

Describe the bug

Configuration using appsettings.json, QuartzOptions and configuration section Quartz does not work with Microsoft.Extensions.Hosting in version 7 (preview).

Version used

Quartz: 3.3.3
.NET: 7.0.100-preview.1.22110.4
Microsoft.Extensions.Hosting: 7.0.0-preview.2.22152.2

To Reproduce

appsettings.json

{
  "Quartz": {
    "quartz.scheduler.instanceName": "Quartz ASP.NET Core Sample Scheduler"
  }
}

Startup.ConfigureServices

public void ConfigureServices(IServiceCollection services)
{
    services.Configure<QuartzOptions>(Configuration.GetSection("Quartz"));
}
@lahma
Copy link
Member

lahma commented Mar 20, 2022

And the said setup worked for you with the earlier version?

@AntonioFalcaoJr
Copy link
Author

And the said setup worked for you with the earlier version?

Yes @lahma! with Microsoft.Extensions.Hosting in version 6.0.1

@lahma
Copy link
Member

lahma commented Mar 21, 2022

There should be a new release on MyGet feed shortly, please try if it fixes the problem - based on my testing it should now work.

@AntonioFalcaoJr
Copy link
Author

There should be a new release on MyGet feed shortly, please try if it fixes the problem - based on my testing it should now work.

It's working now man, thanks for that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants