✅ .NET Worker service doesn't load appsettings.json into a class
Hello,
I am trying to load configuration values into a class or record, but it doesn't work. The properties remain
I do the following:
Loading config values this way works in a Web API project, but I don't understand why it wouldn't in an other type of project.
I've also added the
I am trying to load configuration values into a class or record, but it doesn't work. The properties remain
null.I do the following:
Loading config values this way works in a Web API project, but I don't understand why it wouldn't in an other type of project.
I've also added the
DnsRecords configuration to appsettings.json and appsetting.Development.json, but the outcome was the same.