35 lines
934 B
C#
35 lines
934 B
C#
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;
|
|
}
|
|
}
|
|
}
|