You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

35 lines
975 B

using FrameWork.Log;
using Monitor.FrameWork;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WorkStationBase
{
public class SendMsg
{
public static void SendMsgToStation( string stationCode,string verifyCode, object msgContent)
{
try
{
MsgStruct msg = new MsgStruct();
msg.MsgSource = "Scada";
msg.MsgTarget = "WorkStation";
msg.StationCode = stationCode;
msg.MsgVerifyCode = verifyCode == null ? "" : verifyCode;
msg.MsgContent = msgContent == null ? new object() : msgContent;
msg.datetime = DateTime.Now;
UpperCommunication.Mq_Adapter.SendMsg(msg);
}
catch (Exception ex)
{
LogHelper.WriteLog(LogHelper.GetMethodInfo(), ex);
}
}
}
}