StableVersion4.3/HL_FristAidPlatform_Token/BaseConfigModel.cs

35 lines
934 B
C#
Raw Permalink Normal View History

2024-03-11 09:47:34 +08:00
using Microsoft.Extensions.Configuration;
namespace HL_FristAidPlatform_Token
{
public class BaseConfigModel
{
/// <summary>
///
/// </summary>
public static IConfiguration Configuration { get; set; }
/// <summary>
///
/// </summary>
public static string ContentRootPath { get; set; }
/// <summary>
///
/// </summary>
public static string WebRootPath { get; set; }
/// <summary>
///
/// </summary>
/// <param name="config"></param>
/// <param name="contentRootPath"></param>
/// <param name="webRootPath"></param>
public static void SetBaseConfig(IConfiguration config, string contentRootPath, string webRootPath)
{
Configuration = config;
ContentRootPath = contentRootPath;
WebRootPath = webRootPath;
}
}
}