public static IConfigurationRoot GetAppConfiguration(this IHostingEnvironment env)
 {
     return(AppConfigurations.Get(env.ContentRootPath, env.EnvironmentName, env.IsDevelopment()));
 }
示例#2
0
 public DefaultAppConfigurationAccessor()
 {
     Configuration = AppConfigurations.Get(Directory.GetCurrentDirectory());
 }