File tree Expand file tree Collapse file tree
src/AspNetCoreFileUploadFileTable Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,20 +13,13 @@ public class Startup
1313 {
1414 private readonly IHostingEnvironment _environment ;
1515
16- public Startup ( IHostingEnvironment env )
16+ public Startup ( IHostingEnvironment env , IConfiguration configuration )
1717 {
18- var builder = new ConfigurationBuilder ( )
19- . SetBasePath ( env . ContentRootPath )
20- . AddJsonFile ( "appsettings.json" , optional : true , reloadOnChange : true )
21- . AddJsonFile ( $ "appsettings.{ env . EnvironmentName } .json", optional : true ) ;
22-
18+ Configuration = configuration ;
2319 _environment = env ;
24-
25- builder . AddEnvironmentVariables ( ) ;
26- Configuration = builder . Build ( ) ;
2720 }
2821
29- public IConfigurationRoot Configuration { get ; }
22+ public IConfiguration Configuration { get ; }
3023
3124 public void ConfigureServices ( IServiceCollection services )
3225 {
You can’t perform that action at this time.
0 commit comments