/// <inheritdoc /> public IWebHostBuilder ConfigureAppConfiguration(Action <WebHostBuilderContext, IConfigurationBuilder> configureDelegate) { // Run these immediately so that they are observable by the imperative code configureDelegate(_context, _configuration); _environment.ApplyConfigurationSettings(_configuration); return(this); }
/// <inheritdoc /> public IHostBuilder ConfigureHostConfiguration(Action <IConfigurationBuilder> configureDelegate) { // HACK: We need to evaluate the host configuration as they are changes so that we have an accurate view of the world configureDelegate(_hostConfiguration); _environment.ApplyConfigurationSettings(_hostConfiguration.Build()); Configuration.ChangeFileProvider(_environment.ContentRootFileProvider); _operations += b => b.ConfigureHostConfiguration(configureDelegate); return(this); }