|
|
|
@ -36,9 +36,14 @@ namespace test
|
|
|
|
// Set up configuration sources.
|
|
|
|
// Set up configuration sources.
|
|
|
|
|
|
|
|
|
|
|
|
var builder = new ConfigurationBuilder()
|
|
|
|
var builder = new ConfigurationBuilder()
|
|
|
|
.AddEnvironmentVariables()
|
|
|
|
|
|
|
|
.AddJsonFile("appsettings.json")
|
|
|
|
.AddJsonFile("appsettings.json")
|
|
|
|
.AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true);
|
|
|
|
.AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true)
|
|
|
|
|
|
|
|
.AddEnvironmentVariables();
|
|
|
|
|
|
|
|
if (env.IsDevelopment())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
// For more details on using the user secret store see http://go.microsoft.com/fwlink/?LinkID=532709
|
|
|
|
|
|
|
|
builder.AddUserSecrets();
|
|
|
|
|
|
|
|
}
|
|
|
|
Configuration = builder.Build();
|
|
|
|
Configuration = builder.Build();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|