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