15 lines
333 B
C#
15 lines
333 B
C#
|
using Microsoft.Extensions.Configuration;
|
|||
|
|
|||
|
namespace JXCMS.Core.Utils
|
|||
|
{
|
|||
|
public class ConfigHelper
|
|||
|
{
|
|||
|
public static IConfiguration Configs { get; set; }
|
|||
|
|
|||
|
public static string GetValue(string key)
|
|||
|
{
|
|||
|
var res = Configs.GetSection(key).Value;
|
|||
|
return res;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|