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.
23 lines
676 B
23 lines
676 B
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 BatDataInfoResHandler: IBaseHandler
|
|
{
|
|
private static readonly ILog Log = LogManager.GetLogger(typeof(BatDataInfoResHandler));
|
|
|
|
public bool CanHandle(string cmd)
|
|
{
|
|
return CloudConst.batDataInfoRes== cmd;
|
|
}
|
|
|
|
public void Handle(string t)
|
|
{
|
|
BatDataInfoRes? res = JsonConvert.DeserializeObject<BatDataInfoRes>(t);
|
|
Log.Info($"receive BatDataInfoRes res={res} {JsonConvert.SerializeObject(res)}"); }
|
|
} |