Microsoft DI integration does not working with Microsoft.Extensions.Hosting .NET 7
See original GitHub issueDescribe the bug
Configuration using appsettings.json
, QuartzOptions
, and configuration section Quartz
does not work with Microsoft.Extensions.Hosting
in 7.
Version used
Quartz: 3.5.0 .NET: 7.0.100 Microsoft.Extensions.Hosting: 7.0.0
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
[12:01:15 INF] Initialized Scheduler Signaller of type: Quartz.Core.SchedulerSignalerImpl
[12:01:15 INF] Quartz Scheduler created
[12:01:15 INF] RAMJobStore initialized.
[12:01:15 INF] Quartz Scheduler 3.5.0.0 - 'QuartzScheduler' with instanceId 'NON_CLUSTERED' initialized
[12:01:15 INF] Using thread pool 'Quartz.Simpl.DefaultThreadPool', size: 10
[12:01:15 INF] Using job store 'Quartz.Simpl.RAMJobStore', supports persistence: False, clustered: False
[12:01:15 INF] Adding 0 jobs, 0 triggers.
[12:01:15 INF] JobFactory set to: MassTransit.QuartzIntegration.MassTransitJobFactory
[12:01:15 INF] Scheduler QuartzScheduler_$_NON_CLUSTERED started.
Issue Analytics
- State:
- Created 9 months ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Microsoft DI integration does not working with Microsoft ...
Configuration using appsettings.json , QuartzOptions and configuration section Quartz does not work with Microsoft.Extensions.Hosting in version ...
Read more >NET Generic Host in ASP.NET Core
Use .NET Core Generic Host in ASP.NET Core apps. Generic Host is responsible for app startup and lifetime management.
Read more >Integration test non-ASP.NET IHost
I am building a .NET application that will listen to a RabbitMQ queue and respond to messages received from it. The application is...
Read more >New dependency injection features in .NET 6
One obvious place that would need to support IAsyncDisposable is the DI container in Microsoft.Extensions.DependencyInjection, used by ASP.
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 >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
No worries, enjoy Quartz!
Sorry about that; it’s working.