Quartz 3.2.x won't read from appsettings.json
See original GitHub issueDescribe the bug
Configuration section "Quartz"
is not applied
Version used
latest 3.2.3
To Reproduce
Expected behavior
Documentation mentioned that the section "Quartz"
in appsettings.json
will be applied automatically.
Additional context
I have read the source code and it seems that starting from release 3.2.x
, the extension method AddQuartz
from Quartz.Extensions.DependencyInjection doesn’t touch the section "Quartz"
, it does in 3.1.0
though.
PR #878 added the feature in (for issue #877) but this PR #978 removed it (for issue #955)
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Net Core Worker Service appsettings.json not being read
I created a .net core worker service, had IConfiguration injected into it so I can read a property from appsettings.json but everytime I...
Read more >Microsoft DI Integration | Quartz.NET
Hosting allows you to have a background service for your application that handles starting and stopping the scheduler. Example appsettings.json.
Read more >Untitled
Net Core appsettings.json best practices - Stack Overflow Quartz 3.2.x won Web7 feb 2010 · to Quartz.NET I forget where I found this...
Read more >All configuration options
AWS Lambda Type Default
AWS Lambda Common Type Default
AWS Lambda Gateway REST API Type Default
Agroal ‑ Database connection pool Type Default
Read more >reading arrays of objects from appsettings.json
I am able to read single properties of objects however i cant read the whole array at once. Preferably i'd like to parse...
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
I had a closer look. It’s not really straight forward to automatically load the config section
"Quartz"
fromappsettings.json
. It’s not possible to accessIConfiguration
fromIServiceCollection
, will need to passIConfiguration
as parameterThe current way of doing thing, users of the library can actually configure a section of their choice for Quartz, doesn’t have to be
"Quartz"
I think I’ll settle with this
Thanks for your quick response.
The release notes and the documentation gave impressions that
"Quartz"
section will be loaded automatically 😃