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.

54 lines
1.2 KiB
C#

#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* Mr.Wen's MacBook Pro
* Sln.IntelliBelt.Config
* 1FB5DDDF-2A9F-44A3-BFDD-1575E03E09B7
*
* WenJY
*
* 2026-04-24 14:50:17
* V1.0.0
*
*
*--------------------------------------------------------------------
*
*
*
*
* V1.0.0
*--------------------------------------------------------------------*/
#endregion << 版 本 注 释 >>
using Microsoft.Extensions.Options;
namespace Sln.IntelliBelt.Config;
public class AppConfig: IOptions<AppConfig>
{
/// <summary>
/// 日志文件路径
/// </summary>
public string logPath { get; set; }
/// <summary>
/// 终端编号
/// </summary>
public string terminalCode { get; set; }
/// <summary>
/// 监听端口
/// </summary>
public int listernTcpPort { get; set; }
/// <summary>
/// 监听端口
/// </summary>
public int listernWebSocketPort { get; set; }
public AppConfig Value => this;
}