AppConfig.cs 1.62 KB
using RCS.Dal;

namespace RCS.WinClient
{
    /// <summary>
    /// 应用程序配置类
    /// </summary>
    public class AppConfig
    {
        /// <summary>
        /// 数据库配置
        /// </summary>
        public DalOptions DalOptions { get; set; }
        /// <summary>
        /// RCS的Socket地址
        /// </summary>
        public string ServiceIP { get; set; }
        /// <summary>
        /// RCS的Socket端口
        /// </summary>
        public int ServicePort { get; set; }
        /// <summary>
        /// RCS的WebApi服务的地址和端口
        /// </summary>
        public string RcsWebApi { get; set; }
        /// <summary>
        /// RCS任务回传的上游系统地址和端口
        /// </summary>
        public string ToWebApi { get; set; }
        /// <summary>
        /// 数据维护间隔时间,单位为分钟
        /// </summary>
        public int DataMaintainInterval { get; set; }
        /// <summary>
        /// 日志过期时间,单位为天
        /// </summary>
        public int DataPeriod { get; internal set; }


        public string WMSToken { get; set; }

        public string ToIOTApi { get; set; }

        public string MapName { get; set; }


        /// <summary>
        /// 异常超时时间(秒)
        /// </summary>
        public int ErrorTimeOut { get; set; } = 10;
        /// <summary>
        /// 异常数据更新间隔(秒)
        /// </summary>
        public int ErrorUpdateGap { get; set; } = 3;
        /// <summary>
        /// 异常最小持续时间(秒)
        /// </summary>
        public int ErrorMinDuration { get; set; } = 3;
    }
}