using ARI.EAP.HOST.SRD; using Glorysoft.SECS.EQP; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ARI.EAP.HOST.MQ { [Serializable] public class MQMessage { public Header header; public object body; public MQMessage() => header = new Header(); } [Serializable] public class Header { public string transactionId; public string messageName; public string messageType; public string from; public string to; public string equipmentId; public string sendTimestamp; public Header() { messageType = "Request"; from = "EAP"; to = "MES"; transactionId = $"{Configurations.conf.connectSetting.name}_{System.DateTime.Now.ToString("yyyyMMddHHmmss")}" + new Random().Next(100).ToString(); equipmentId = Configurations.conf.connectSetting.equipmentName1; } } }