dc/Common/Configuration.cs
13118993771@163.com 562bd7a7b8 新版
2023-02-23 11:33:23 +08:00

89 行
2.7 KiB
C#

此文件含有模棱两可的 Unicode 字符

此文件含有可能会与其他字符混淆的 Unicode 字符。 如果您是想特意这样的,可以安全地忽略该警告。 使用 Escape 按钮显示他们。

#region << >>
/*----------------------------------------------------------------
* 创建者Hupe
* 创建时间2021/11/15 15:15:17
* 版本V1.0.0
* 描述:
*
* ----------------------------------------------------------------
* 修改人:
* 时间:
* 修改说明:
*
* 版本V1.0.1
*----------------------------------------------------------------*/
#endregion << >>
using ARI.EAP.HOST.MQ;
using Glorysoft.SECS.EQP;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace ARI.EAP.HOST.SRD
{
/// <summary>
/// Configuration 的摘要说明
/// xml配置文件的实体类
/// </summary>
[Serializable]
public class Configurations
{
[XmlIgnore]
public static Configurations conf { get; set; }
public ConnectSetting connectSetting { get; set; }
public EAPMonitorSetting eapMonitorSetting { get; set; }
public MQConnectionCfg mQConnectionCfg { get; set; }
public HttpConfiguration httpConfiguration { get; set; }
public ScenarioCollection scenarioCollection { get; set; }
public CommandContentCollection commandContentCollection { get; set; }
public SRDConfiguration sRDConfiguration { get; set; }
public Configurations()
{
connectSetting = new ConnectSetting();
eapMonitorSetting = new EAPMonitorSetting();
mQConnectionCfg = new MQConnectionCfg();
httpConfiguration = new HttpConfiguration();
scenarioCollection = new ScenarioCollection();
sRDConfiguration = new SRDConfiguration();
commandContentCollection = new CommandContentCollection();
}
}
[Serializable]
public class ConnectSetting
{
[XmlAttribute]
public string name { get; set; }
[XmlAttribute]
public string deviceId { get; set; }
[XmlAttribute]
public string remoteIp { get; set; }
[XmlAttribute]
public string remotePort { get; set; }
[XmlAttribute]
public string equipmentName1 { get; set; }
[XmlAttribute]
public string equipmentName2 { get; set; }
}
[Serializable]
public class EAPMonitorSetting
{
[XmlAttribute]
public string IPAddress { get; set; }
[XmlAttribute]
public string Port { get; set; }
}
[Serializable]
public class HttpConfiguration
{
public string heartBitUrl { get; set; }
public string fileDownloadUrl { get; set; }
public string contentType { get; set; }
}
}