using Microsoft.Extensions.Options; using System; using System.Collections.Generic; namespace SlnMesnac.Config { /// /// 系统配置 /// public class AppConfig : IOptions { /// /// 日志文件路径 /// public string logPath { get; set; } /// /// TcpServer监听端口 /// public int listernPort { get; set; } /// /// 仓库编号 /// public string storeCode { get; set; } /// /// Sql连接配置 /// public List sqlConfig { get; set; } /// /// PLC连接配置 /// public List plcConfig { get; set; } /// /// RFID连接配置 /// public List rfidConfig { get; set; } public AppConfig Value => this; } }