How can I check for a missing configuration section when using the Options pattern? – Asp.net
I have a simple controller that reads some configuration from appsettings.json using the Options pattern. It works fine as long as appsettings.json is configured correctly. However, what if my configuration section is missing from appsettings.json? I hoped to get an…