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.

102 lines
2.5 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* 版权所有 (c) 2025 WenJY 保留所有权利。
* CLR版本4.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 Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Options;
namespace Sln.Iot.Config
{
public class AppConfig: IOptions<AppConfig>
{
/// <summary>
/// 日志文件路径
/// </summary>
public string logPath { get; set; }
/// <summary>
/// 节拍时间(秒)
/// </summary>
public int CycleTime1 { get; set; }
/// <summary>
/// 节拍时间(秒)
/// </summary>
public int CycleTime2 { get; set; }
/// <summary>
/// 节拍时间(秒)
/// </summary>
public int CycleTime3 { get; set; }
/// <summary>
/// 节拍时间(秒)
/// </summary>
public int CycleTime4 { get; set; }
/// <summary>
/// PLC配置
/// </summary>
public List<PLCConfig> PLCConfig { get; set; }
/// <summary>
/// CFX配置-真空箱
/// </summary>
public CFXConfig VacuumConfig { get; set; }
/// <summary>
/// CFX配置-烤炉
/// </summary>
public CFXConfig OvenConfig { get; set; }
/// <summary>
/// MES的URL
/// </summary>
public string MESURL { get; set; }
/// <summary>
/// MES的URN
/// </summary>
public string MESURN { get; set; }
/// <summary>
/// 是否输出报警日志
/// </summary>
public bool IsAlarmLog { get; set; }
/// <summary>
/// 是否输出MES日志
/// </summary>
public bool IsMESLog { get; set; }
/// <summary>
/// 是否输出CFX日志
/// </summary>
public bool IsCFXLog { get; set; }
/// <summary>
/// Gets the current application configuration instance.
/// </summary>
public AppConfig Value => this;
}
}