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.

51 lines
1.2 KiB
C#

#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2025 WenJY
* CLR4.0.30319.42000
* Mr.Wen's MacBook Pro
* Sln.Imm.Daemon.Config
* 8304972C-4A1D-402B-8997-1E95920777C0
*
* WenJY
*
* 2025-09-05 10:50:20
* V1.0.0
*
*
*--------------------------------------------------------------------
*
*
*
*
* V1.0.0
*--------------------------------------------------------------------*/
#endregion << 版 本 注 释 >>
using Microsoft.Extensions.Options;
namespace Sln.Imm.Daemon.Config;
public class AppConfig: IOptions<AppConfig>
{
/// <summary>
/// 日志文件路径
/// </summary>
public string logPath { get; set; }
/// <summary>
/// Sql连接配置
/// </summary>
public List<SqlConfig> sqlConfig { get; set; }
/// <summary>
/// opc设备连接配置
/// </summary>
/// <typeparam name="OpcConfig"></typeparam>
/// <param name=""></param>
/// <returns></returns>
public List<OpcConfig> opcConfig { get;set; }
public AppConfig Value => this;
}