Microsoft documentation suggests to use the Options pattern so configuration settings can be used from within Startup::ConfigureServices().
Startup::ConfigureServices()
I, however, don\'