JXMovies/Core/JXCMS.Core/Utils/ConfigHelper.cs

15 lines
333 B
C#
Raw Permalink Normal View History

2020-02-16 22:11:24 +08:00
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;
}
}
}