forked from wenjy/Sln.Iot
1
0
Fork 0
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.

75 lines
1.9 KiB
C#

#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2025 WenJY
* CLR4.0.30319.42000
* Mr.Wen's MacBook Pro
* Sln.Iot.Config
* 132376EA-435B-4340-B8F3-44D61AAE1E99
*
* WenJY
*
* 2025-04-11 10:54:31
* V1.0.0
*
*
*--------------------------------------------------------------------
*
*
*
*
* V1.0.0
*--------------------------------------------------------------------*/
#endregion << 版 本 注 释 >>
using System.Collections.Generic;
using Microsoft.Extensions.Options;
namespace Sln.Iot.Config
{
public class AppConfig: IOptions<AppConfig>
{
/// <summary>
/// 日志文件路径
/// </summary>
public string logPath { get; set; }
/// <summary>
/// 监听端口
/// </summary>
public int listernPort { get; set; }
/// <summary>
/// 虚拟值用于过滤FFFFFF
/// </summary>
public long virtualValue { get; set; }
/// <summary>
/// 是否启用虚拟值
/// </summary>
public bool virtualFlag { get; set; }
/// <summary>
/// 电力数据采集间隔
/// </summary>
public int electricTimeInterval { get; set; }
/// <summary>
/// 流体数据采集间隔
/// </summary>
public int fluidTimeInterval { get; set; }
/// <summary>
/// Sql连接配置
/// </summary>
public List<SqlConfig> sqlConfig { get; set; }
/// <summary>
/// Redis配置
/// </summary>
public string redisConfig { get; set; }
public AppConfig Value => this;
}
}