12345678910111213141516171819202122232425262728293031 |
- using Microsoft.Extensions.Configuration;
- namespace TEAMModelOS.SDK.Context.Configuration
- {
- public class BaseConfigModel
- {
- 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;
- }
- }
- }
|