89 рядки
2.7 KiB
C#
89 рядки
2.7 KiB
C#
#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; }
|
||
}
|
||
} |