refactoring
This commit is contained in:
commit
5c6d6ee687
73 changed files with 645 additions and 48758 deletions
|
|
@ -5,6 +5,7 @@ namespace Yavsc.Server.Helpers;
|
|||
|
||||
public static class ConfigHelpers
|
||||
{
|
||||
|
||||
public static IConfigurationBuilder AddConfiguration(this WebApplicationBuilder builder, string appName )
|
||||
{
|
||||
var rootConfig = builder.Configuration
|
||||
|
|
@ -13,5 +14,6 @@ public static class ConfigHelpers
|
|||
rootConfig.AddJsonFile($"appsettings-{appName}.{builder.Environment.EnvironmentName}.json", optional: true, reloadOnChange: false);
|
||||
|
||||
return rootConfig.AddEnvironmentVariables();
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue