using Microsoft.Extensions.Options; using System; namespace SlnMesnac.Config { /// /// 系统配置 /// public class AppConfig : IOptions { /// /// 日志文件路径 /// public string logPath { get; set; } /// /// MES 数据库连接字符串 /// public string mesConnStr { get; set; } /// /// MCS 数据库连接字符串 /// public string mcsConnStr { get; set; } public AppConfig Value => this; } }