Shun 2 năm trước cách đây
mục cha
commit
cde6153332

+ 6 - 1
src/YSAI.DAQ/YSAI.Pack.Param/Program.cs

@@ -5,6 +5,7 @@ using YSAI.DB;
 using YSAI.Kafka;
 using YSAI.Modbus.client;
 using YSAI.Mqtt.client;
+using YSAI.Netty.client;
 using YSAI.Opc.da.client;
 using YSAI.Opc.da.http;
 using YSAI.Opc.ua.client;
@@ -38,8 +39,9 @@ namespace YSAI.Pack.Param
             BodyHandler body8 = new BodyHandler { Body = new OpcUaClientData.Basics(), FileName = "OpcUa.json", Namespace = "YSAI.Opc.ua.client.OpcUaClientOperate" };
             BodyHandler body9 = new BodyHandler { Body = new RabbitMQData.Basics(), FileName = "RabbitMQ.json", Namespace = "YSAI.RabbitMQ.RabbitMQOperate" };
             BodyHandler body10 = new BodyHandler { Body = new S7ClientData.Basics(), FileName = "S7.json", Namespace = "YSAI.S7.client.S7ClientOperate" };
+            BodyHandler body11 = new BodyHandler { Body = new NettyClientData.Basics(), FileName = "Netty.json", Namespace = "YSAI.Netty.client.NettyClientOperate" };
 
-            List<BodyHandler> bodys = new List<BodyHandler> { body1, body2, body3, body4, body5, body6, body7, body8, body9, body10 };
+            List<BodyHandler> bodys = new List<BodyHandler> { body1, body2, body3, body4, body5, body6, body7, body8, body9, body10,body11 };
 
             foreach (var item in bodys)
             {
@@ -80,6 +82,9 @@ namespace YSAI.Pack.Param
                     case "S7ClientData.Basics":
                         libInstanceParams = ReflexTool.GetClassAllPropertyData<S7ClientData.Basics>();
                         break;
+                    case "NettyClientData.Basics":
+                        libInstanceParams = ReflexTool.GetClassAllPropertyData<NettyClientData.Basics>();
+                        break;
                 }
 
 

+ 1 - 0
src/YSAI.DAQ/YSAI.Pack.Param/YSAI.Pack.Param.csproj

@@ -13,6 +13,7 @@
     <ProjectReference Include="..\YSAI.Kafka\YSAI.Kafka.csproj" />
     <ProjectReference Include="..\YSAI.Modbus\YSAI.Modbus.csproj" />
     <ProjectReference Include="..\YSAI.Mqtt\YSAI.Mqtt.csproj" />
+    <ProjectReference Include="..\YSAI.Netty\YSAI.Netty.csproj" />
     <ProjectReference Include="..\YSAI.Opc\YSAI.Opc.csproj" />
     <ProjectReference Include="..\YSAI.RabbitMQ\YSAI.RabbitMQ.csproj" />
     <ProjectReference Include="..\YSAI.S7\YSAI.S7.csproj" />

+ 93 - 0
src/YSAI.DAQ/YSAI.Pack/Netty.json

@@ -0,0 +1,93 @@
+{
+    "Code": "Netty",
+    "Name": "Netty",
+    "Description": "Netty",
+    "Subset": [
+        {
+            "Name": "Netty",
+            "Description": "Netty",
+            "Propertie": [
+                {
+                    "DataCate": "text",
+                    "Default": null,
+                    "Description": "唯一标识符",
+                    "PropertyName": "SN",
+                    "Value": null,
+                    "IsShow": true,
+                    "IsMust": false,
+                    "Options": null
+                },
+                {
+                    "DataCate": "text",
+                    "Default": null,
+                    "Description": "主机",
+                    "PropertyName": "Host",
+                    "Value": null,
+                    "IsShow": true,
+                    "IsMust": false,
+                    "Options": null
+                },
+                {
+                    "DataCate": "text",
+                    "Default": null,
+                    "Description": "端口",
+                    "PropertyName": "Port",
+                    "Value": null,
+                    "IsShow": true,
+                    "IsMust": false,
+                    "Options": null
+                },
+                {
+                    "DataCate": "text",
+                    "Default": null,
+                    "Description": "SSL文件路径",
+                    "PropertyName": "SslFilePath",
+                    "Value": null,
+                    "IsShow": true,
+                    "IsMust": false,
+                    "Options": null
+                },
+                {
+                    "DataCate": "text",
+                    "Default": null,
+                    "Description": "SSL文件密码",
+                    "PropertyName": "SslFilePassword",
+                    "Value": null,
+                    "IsShow": true,
+                    "IsMust": false,
+                    "Options": null
+                },
+                {
+                    "DataCate": "text",
+                    "Default": null,
+                    "Description": "任务数量",
+                    "PropertyName": "TaskNumber",
+                    "Value": null,
+                    "IsShow": true,
+                    "IsMust": false,
+                    "Options": null
+                },
+                {
+                    "DataCate": "text",
+                    "Default": null,
+                    "Description": "任务处理间隔(毫秒)",
+                    "PropertyName": "TaskHandleInterval",
+                    "Value": null,
+                    "IsShow": true,
+                    "IsMust": false,
+                    "Options": null
+                },
+                {
+                    "DataCate": "text",
+                    "Default": null,
+                    "Description": "实现类名",
+                    "PropertyName": "ServiceName",
+                    "Value": "YSAI.Netty.client.NettyClientOperate",
+                    "IsShow": false,
+                    "IsMust": false,
+                    "Options": null
+                }
+            ]
+        }
+    ]
+}