56 lines
1.2 KiB
C#
56 lines
1.2 KiB
C#
|
|
namespace YunDa.Server.ISMSTcp.Configuration
|
||
|
|
{
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// ISMS服务器连接配置
|
||
|
|
/// </summary>
|
||
|
|
public class ISMSServerConfiguration
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// 服务器IP地址
|
||
|
|
/// </summary>
|
||
|
|
public string ServerIP { get; set; } = "192.168.65.33";
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 服务器端口
|
||
|
|
/// </summary>
|
||
|
|
public int ServerPort { get; set; } = 43916;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 重连延迟时间(秒)
|
||
|
|
/// </summary>
|
||
|
|
public int ReconnectDelaySeconds { get; set; } = 5;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 最大重试次数
|
||
|
|
/// </summary>
|
||
|
|
public int MaxRetries { get; set; } = 3;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 不完整数据超时时间(秒)
|
||
|
|
/// </summary>
|
||
|
|
public int IncompleteDataTimeoutSeconds { get; set; } = 5;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 缓冲区大小
|
||
|
|
/// </summary>
|
||
|
|
public int BufferSize { get; set; } = 1024;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Web API配置
|
||
|
|
/// </summary>
|
||
|
|
public class WebApiConfiguration
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// Web API端口
|
||
|
|
/// </summary>
|
||
|
|
public int Port { get; set; } = 38094;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 报警数据上传端点
|
||
|
|
/// </summary>
|
||
|
|
public string AlarmEndpoint { get; set; } = "http://localhost:38090/api/services/SOMS/AlarmLiveData/UploadISMSAlarmMsg";
|
||
|
|
}
|
||
|
|
}
|