-
Notifications
You must be signed in to change notification settings - Fork 203
Add Clear() to IConfigurationBuilder #680
Comments
Love it. Are there equivalents on the other builders we should also consider? |
For the behavior, would Clear only clear the config sources, or also clear the Properties metadata that stores the base path/default file provider as well? Maybe we should just change Sources to be an |
I think in the past maybe we had special logic in Add, but its just a straight add now, so there's nothing that prevents us from exposing the ability for people to directly add to the sources |
Maybe it should implement IList or ICollection |
We discussed this in triage and we want Sources to be an |
@HaoK This is fixed right? |
Yup, fixed via 6b4f1f8 |
|
Amazing, just had a case to use this 🎉 Thanks for changing this! |
This will make it possible to remove all registered providers and start over. Specifically, when using
WebHost.CreateDefaultBuilder()
, this would allow application code to change all previously configured options without losing the other benefits of calling that method./cc @glennc @divega @DamianEdwards @ajcvickers @HaoK
The text was updated successfully, but these errors were encountered: