public Startup(IHostingEnvironment env, IApplicationEnvironment app) { var path = app.ApplicationBasePath; var configuration = new ConfigurationBuilder(path) .AddJsonFile($"{path}\\Config.json") .AddJsonFile($"{path}\\config.{env.EnvironmentName}.json", optional: true); if (env.IsEnvironment("Development")) { // This reads the configuration keys from the secret store. // For more details on using the user secret store see http://go.microsoft.com/fwlink/?LinkID=532709 //configuration.AddUserSecrets(); } configuration.AddEnvironmentVariables(); Configuration = configuration.Build(); startUpManager = new DependencyInjection.StartupManager(Configuration); }
public Startup(IHostingEnvironment env, IApplicationEnvironment app) { var path = app.ApplicationBasePath; var configuration = new ConfigurationBuilder(path) .AddJsonFile($"{path}\\Config.json") .AddJsonFile($"{path}\\config.{env.EnvironmentName}.json", optional: true); if (env.IsEnvironment("Development")) { // This reads the configuration keys from the secret store. // For more details on using the user secret store see http://go.microsoft.com/fwlink/?LinkID=532709 //configuration.AddUserSecrets(); } configuration.AddEnvironmentVariables(); Configuration = configuration.Build(); startUpManager = new DependencyInjection.StartupManager(Configuration); }