AppConfig.cs
1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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;
}
}