You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.2 KiB
C#
50 lines
1.2 KiB
C#
using Microsoft.Extensions.Options;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace SlnMesnac.Config
|
|
{
|
|
/// <summary>
|
|
/// 系统配置
|
|
/// </summary>
|
|
public class AppConfig : IOptions<AppConfig>
|
|
{
|
|
/// <summary>
|
|
/// 日志文件路径
|
|
/// </summary>
|
|
public string logPath { get; set; }
|
|
|
|
/// <summary>
|
|
/// MCS 开仓地址
|
|
/// </summary>
|
|
public string mcsOpenAddr { get; set; }
|
|
|
|
/// <summary>
|
|
/// MCS料仓状态起始地址
|
|
/// </summary>
|
|
public string mcsBinStatusAddr { get; set; }
|
|
|
|
/// <summary>
|
|
/// CWSS 开仓地址
|
|
/// </summary>
|
|
public string cwssOpenAddr { get; set; }
|
|
|
|
/// <summary>
|
|
/// CWSS料仓状态起始地址
|
|
/// </summary>
|
|
public string cwssBinStatusAddr { get; set; }
|
|
|
|
/// <summary>
|
|
/// Sql连接配置
|
|
/// </summary>
|
|
public List<SqlConfig> sqlConfig { get; set; }
|
|
|
|
/// <summary>
|
|
/// PLC连接配置
|
|
/// </summary>
|
|
public List<PlcConfig> plcConfig { get; set; }
|
|
|
|
public AppConfig Value => this;
|
|
}
|
|
}
|