Jelajahi Sumber

接口继承更新

Shun 2 tahun lalu
induk
melakukan
95a9f7cae5

+ 1 - 0
README.md

@@ -9,6 +9,7 @@
 8. 采集与转发协议接口统一   
 9. 事件结果统一   
 10. Core: 支持HTTP、TCP客户端、TCP服务端、UDP、WS客户端、WS服务端、串口、脚本、redis、反射、自定义订阅、虚拟点   
+11. 已实现一套通过反射 + 接口 实现热加载
 
 ## 采集协议
 1. OpcUaClient   		

+ 1 - 1
src/YSAI.DAQ/YSAI.Core/YSAI.Core.csproj

@@ -5,7 +5,7 @@
     <ImplicitUsings>enable</ImplicitUsings>
     <Nullable>enable</Nullable>
     <GeneratePackageOnBuild>True</GeneratePackageOnBuild>
-    <Version>1.0.0.34</Version>
+    <Version>1.0.0.35</Version>
     <Authors>Shun</Authors>
     <Company>YSAI</Company>
     <Product>SCADA</Product>

+ 1 - 3
src/YSAI.DAQ/YSAI.Core/interface/ICommunication.cs

@@ -3,7 +3,5 @@
     /// <summary>
     /// 底层通信接口
     /// </summary>
-    public interface ICommunication : IOn, IOff, ISend, ISendWait, IGetObject, IGetStatus, IDisposable
-    {
-    }
+    public interface ICommunication : IOn, IOff, ISend, ISendWait, IGetObject, IGetStatus, IEvent,IDisposable { }
 }

+ 1 - 3
src/YSAI.DAQ/YSAI.Core/interface/IDaq.cs

@@ -3,7 +3,5 @@
     /// <summary>
     /// 数采接口
     /// </summary>
-    public interface IDaq : IOn, IOff, IRead, IWrite, ISubscribe, IGetStatus, IEvent, IDisposable
-    {
-    }
+    public interface IDaq : IOn, IOff, IRead, IWrite, ISubscribe, IGetStatus, IEvent, IDisposable { }
 }

+ 1 - 4
src/YSAI.DAQ/YSAI.Core/interface/IRelay.cs

@@ -3,8 +3,5 @@
     /// <summary>
     /// 转发接口
     /// </summary>
-    public interface IRelay : IOn, IOff, IProducer, IConsumer, IGetStatus, IDisposable
-    {
-
-    }
+    public interface IRelay : IOn, IOff, IProducer, IConsumer, IGetStatus, IEvent, IDisposable { }
 }

+ 3 - 1
src/YSAI.DAQ/YSAI.Core/interface/ISend.cs

@@ -21,7 +21,9 @@ namespace YSAI.Core.@interface
         /// <returns>统一出参</returns>
         Task<OperateResult> SendAsync(byte[] Data);
     }
-
+    /// <summary>
+    /// Udp 特殊发送接口
+    /// </summary>
     public interface IUdpSend
     {
         /// <summary>