File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9999 config . Path = "/allservices" ;
100100} ) ;
101101
102- // Bind configuration "eShopWeb:Settings" section to the Settings object
103- builder . Services . Configure < SettingsViewModel > ( builder . Configuration . GetSection ( "eShopWeb:Settings" ) ) ;
104102// Initialize useAppConfig parameter
105103var useAppConfig = false ;
106104Boolean . TryParse ( builder . Configuration [ "UseAppConfig" ] , out useAppConfig ) ;
136134// Add Feature Management AFTER Azure App Configuration is loaded
137135builder . Services . AddFeatureManagement ( ) ;
138136
137+ // Bind configuration "eShopWeb:Settings" section to the Settings object
138+ // This must be AFTER Azure App Configuration is added so it picks up remote values
139+ builder . Services . Configure < SettingsViewModel > ( builder . Configuration . GetSection ( "eShopWeb:Settings" ) ) ;
140+
139141// blazor configuration
140142var configSection = builder . Configuration . GetRequiredSection ( BaseUrlConfiguration . CONFIG_NAME ) ;
141143builder . Services . Configure < BaseUrlConfiguration > ( configSection ) ;
You can’t perform that action at this time.
0 commit comments