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.
|
|
|
|
using HybirdFrameworkCore.Autofac.Attribute;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using Service.Cloud.Client;
|
|
|
|
|
using Service.Cloud.Common;
|
|
|
|
|
using Service.Cloud.Msg.Cloud.Req;
|
|
|
|
|
using Service.Cloud.Msg.Host.Resp;
|
|
|
|
|
using Service.Init;
|
|
|
|
|
|
|
|
|
|
namespace Service.Cloud.Handler;
|
|
|
|
|
|
|
|
|
|
[Scope("InstancePerDependency")]
|
|
|
|
|
public class ParameterAcquisitionHandler : IBaseHandler
|
|
|
|
|
{
|
|
|
|
|
public bool CanHandle(string cmd)
|
|
|
|
|
{
|
|
|
|
|
return CloudConst.getConfig == cmd;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Handle(string t)
|
|
|
|
|
{
|
|
|
|
|
ParameterAcquisition? req = JsonConvert.DeserializeObject<ParameterAcquisition>(t);
|
|
|
|
|
if (req != null)
|
|
|
|
|
{
|
|
|
|
|
ParameterAcquisitionResp resp = new ParameterAcquisitionResp();
|
|
|
|
|
resp.chsoc = Char.Parse(StaticStationInfo.SwapSoc);
|
|
|
|
|
resp.eid = StaticStationInfo.Eid;
|
|
|
|
|
resp.oid = StaticStationInfo.Oid;
|
|
|
|
|
resp.ceid = StaticStationInfo.Ceid;
|
|
|
|
|
CloudClientMgr.CloudClient?.Publish(resp);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|