From 0a99c0aaead26505aa2d9abebb208760b20aebaf Mon Sep 17 00:00:00 2001 From: Giorgi Chkhikvadze Date: Fri, 17 Sep 2021 02:02:55 +0400 Subject: [PATCH] add ConfigurationUi source at end of sources list. --- ConfigurationUi/Extensions/HostBuilderExtensions.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ConfigurationUi/Extensions/HostBuilderExtensions.cs b/ConfigurationUi/Extensions/HostBuilderExtensions.cs index d97d84e..2adbcc8 100644 --- a/ConfigurationUi/Extensions/HostBuilderExtensions.cs +++ b/ConfigurationUi/Extensions/HostBuilderExtensions.cs @@ -16,11 +16,10 @@ public static IHostBuilder AddConfigurationUi(this IHostBuilder ho var optionsBuilder = new ConfigurationUiOptionsBuilder(); - hostBuilder.ConfigureAppConfiguration((_, builder) => { optionsBuilder.UseJsonFileStorage(filePath, builder.GetFileProvider()).WithSchemeFromType(); - builder.Sources.Insert(0, new JsonConfigurationSource() { Path = filePath }); + builder.Sources.Add(new JsonConfigurationSource() { Path = filePath }); }); hostBuilder.ConfigureServices((_, services) =>