Microsoft DI integration does not working with Microsoft.Extensions.Hosting RC1
See original GitHub issueDescribe the bug
Configuration using appsettings.json
, QuartzOptions
, and configuration section Quartz
does not work with Microsoft.Extensions.Hosting
in version RC1.
Version used
Quartz: 3.4.0 .NET: 7.0.100-rc.1.22431.12 Microsoft.Extensions.Hosting: 7.0.0-rc.1.22426.10
To Reproduce
appsettings.json
{
"Quartz": {
"quartz.scheduler.instanceName": "Quartz ASP.NET Core Sample Scheduler",
"quartz.scheduler.instanceId": "AUTO",
"quartz.jobStore.dataSource": "default",
"quartz.dataSource.default.provider": "SqlServer",
"quartz.serializer.type": "json",
"quartz.jobStore.type": "Quartz.Impl.AdoJobStore.JobStoreTX, Quartz",
"quartz.jobStore.clustered": true,
"quartz.jobStore.driverDelegateType": "Quartz.Impl.AdoJobStore.SqlServerDelegate, Quartz"
}
}
Startup.ConfigureServices
public void ConfigureServices(IServiceCollection services)
{
services.Configure<QuartzOptions>(Configuration.GetSection("Quartz"));
}
Logging
[11:20:41 INF] Initialized Scheduler Signaller of type: Quartz.Core.SchedulerSignalerImpl
[11:20:41 INF] Quartz Scheduler created
[11:20:41 INF] RAMJobStore initialized.
[11:20:41 INF] Scheduler meta-data: Quartz Scheduler (v3.4.0.0) 'QuartzScheduler' with instanceId 'NON_CLUSTERED'
Scheduler class: 'Quartz.Core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'Quartz.Simpl.DefaultThreadPool' - with 10 threads.
Using job-store 'Quartz.Simpl.RAMJobStore' - which does not support persistence. and is not clustered.
[11:20:41 INF] Quartz scheduler 'QuartzScheduler' initialized
[11:20:41 INF] Quartz scheduler version: 3.4.0.0
[11:20:41 INF] Adding 0 jobs, 0 triggers.
[11:20:41 INF] JobFactory set to: MassTransit.QuartzIntegration.MassTransitJobFactory
[11:20:41 INF] Scheduler QuartzScheduler_$_NON_CLUSTERED started.
Issue Analytics
- State:
- Created a year ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
ASP.NET Core updates in .NET 8 Preview 7
NET 8 Preview 7 is now available and includes many great new improvements to ASP.NET Core. Here's a summary of what's new in...
Read more >Could not load file or assembly 'Microsoft.Extensions. ...
I have an API and a separate Azure Functions app. I upgraded my API app to .NET 5 and it's working fine. In...
Read more >Asp.net core RC1 to RC2 integration testing
Exception was unhandled by user code HResult=-2146233088 Message=Could not resolve a service of type 'Microsoft.Extensions.Configuration.
Read more >ASP.NET Core — Autofac 7.0.0 documentation
NET Core introduces a conforming container mechanism via Microsoft.Extensions.DependencyInjection, including a unified notion of request lifetime scope, ...
Read more >Infinite suggested action never ends. - Developer Community
[severity:I'm unable to use this version of Visual Studio] [regression] [worked-in:Visual Studio Community 16.7.6] Hello,. This happens on visual studio ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Everything is OK on 3.5.0, Thanks again!
OK it seems that you were the original reporter for the earlier problem, so you might have some insight in the issue, sorry about that 😄