[API Proposal]: Like WebApplicationBuilder allow us to put a finished IConfiugration instance into a HostBuilder #110051
Labels
area-Extensions-Configuration
needs-author-action
An issue or pull request that requires more info or actions from the author.
question
Answer questions and provide assistance, not an issue with source code or documentation.
Milestone
For internal reasons we create and validate the IConfiguration instance before building hosts. The .NET 6 WebApplicationBuilder lets us register this instance directly at the container:
However, for our non-web background services we can't do the same with
HostBuilder
. To our knowledge there is only theConfigureAppConfiguration
method which already puts in some defaults and lets you work with aConfigurationBuilder
but there is no way to put a finishedIConfiguration
instance in, is there?Best regards,
D.R.
The text was updated successfully, but these errors were encountered: