天津投入产出系统后端
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.

45 lines
1.2 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QM.Exchange.Interface;
namespace QM.Exchange.Custom.Commands.Samples
{
/// <summary>
/// 远程开灯命令
/// </summary>
public class RShutLightCommand:DataCommand
{
public RShutLightCommand(CommonMessage message)
: base(message)
{
}
/// <summary>
/// 执行
/// </summary>
public override void Execute(IExChangeContext exChangeContext, CommonMessage message)
{
//解析消息(分析出目标控制客户端ID和设备ID)
//定义远程关灯消息
//根据客户端ID获取客户端会话ID
List<WorkerBase> workers = exChangeContext.GetWokerList().ToList<WorkerBase>();
//根据会话ID获取客户端会话
//发送消息
////定义消息
//CommonMessge msg = new CommonMessge();
//msg.MsgID = Guid.NewGuid().ToString();
//msg.MsgType = "UpdateSystemTime";
//msg.Content = QMFrameWork.Common.Serialization.JsonConvertHelper.GetSerializes(DateTime.Now);
}
}
}