Exemplo n.º 1
0
 /// <summary>
 /// 获取配置对象
 /// </summary>
 /// <param name="key"></param>
 /// <returns></returns>
 public static IConfigurationSection GetSection(string key)
 {
     return(Appsettings.Section(key));
 }
Exemplo n.º 2
0
 /// <summary>
 /// 获取配置文件
 /// </summary>
 /// <param name="key"></param>
 public static string GetConf(string key)
 {
     return(Appsettings.Key(key));
 }