using HybirdFrameworkCore.Autofac.Attribute; using log4net; using Newtonsoft.Json; using Service.Cloud.Common; using Service.Cloud.Msg.Cloud.Resp; namespace Service.Cloud.Handler; [Scope("InstancePerDependency")] public class StationChnRunStatusResHandler: IBaseHandler { private static readonly ILog Log = LogManager.GetLogger(typeof(StationChnRunStatusResHandler)); public bool CanHandle(string cmd) { return CloudConst.stationChnRunStatusRes== cmd; } public void Handle(string t) { StationChnRunStatusRes? res = JsonConvert.DeserializeObject(t); Log.Info($"receive StationChnRunStatusRes res={res} {JsonConvert.SerializeObject(res)}"); } }