-
Notifications
You must be signed in to change notification settings - Fork 307
First class Configuration and Logging in WebHostBuilder #955
Comments
|
Sounds great! How will users be able to get the configuration object? |
Would I be able to resolve |
At the moment I think we will just put IConfigurationRoot in DI. We are hearing from many people that it's what they want. Not completely obvious in this, but relevent to you @cwe1ss is that this will play into the other issue about deprecating AddProvider on LoggerFactory and allowing Serilog, NLog, etc to replace the LoggerFactory instead of having a provider. |
Having IConfiguration in DI doesn't stop you from using multiple, but you would need to define them yourselves and pick which one is the one that goes into DI. Ideally use Options as well instead of Configuration directly. |
Yep, just wanted to point it out... it might not be an issue.
Awesome!! |
PS: I'm using Options most of the time, yes. So again, not sure how important the IConfiguration scenario really is. |
We want to enable the following program main:
This issue is to track the WebHostBuilder part of this.
The text was updated successfully, but these errors were encountered: