From 2cc4dfef234b47bef364edf798b5051a25f33217 Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期五, 30 八月 2024 10:58:56 +0800 Subject: [PATCH] 1 --- WIDESEAWCS_Server/WIDESEAWCS_Communicator/BaseCommunicator.cs | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/WIDESEAWCS_Server/WIDESEAWCS_Communicator/BaseCommunicator.cs b/WIDESEAWCS_Server/WIDESEAWCS_Communicator/BaseCommunicator.cs index 0a0707d..d028bd8 100644 --- a/WIDESEAWCS_Server/WIDESEAWCS_Communicator/BaseCommunicator.cs +++ b/WIDESEAWCS_Server/WIDESEAWCS_Communicator/BaseCommunicator.cs @@ -17,10 +17,11 @@ using HslCommunication; using HslCommunication.LogNet; +using System.Diagnostics.CodeAnalysis; namespace WIDESEAWCS_Communicator { - public abstract class BaseCommunicator + public abstract class BaseCommunicator: IDisposable { /// <summary> /// 鏋勯�犲嚱鏁� @@ -106,6 +107,8 @@ public abstract T ReadCustomer<T>(string address) where T : IDataTransfer, new(); - public abstract bool WriteCustomer<T>(string address, T value) where T : IDataTransfer, new(); + public abstract bool WriteCustomer<T>(string address, [NotNull] T value) where T : IDataTransfer, new(); + + public abstract void Dispose(); } } -- Gitblit v1.9.3