From 8e42d0c1b7ae36cff2e7c69999117911a4b6f300 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期四, 26 三月 2026 17:31:06 +0800
Subject: [PATCH] feat(WCS): 完善 WIDESEAWCS_Tasks 模块代码注释

---
 Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SocketServer/TcpSocketServer.Dispose.cs |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SocketServer/TcpSocketServer.Dispose.cs b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SocketServer/TcpSocketServer.Dispose.cs
index d8f5ec9..94c439e 100644
--- a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SocketServer/TcpSocketServer.Dispose.cs
+++ b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SocketServer/TcpSocketServer.Dispose.cs
@@ -5,13 +5,29 @@
 {
     public partial class TcpSocketServer
     {
+        /// <summary>
+        /// 閲婃斁鏈嶅姟鍣ㄨ祫婧�
+        /// </summary>
+        /// <remarks>
+        /// 鍋滄鐩戝惉銆佸彇娑堟墍鏈夊鎴风浠诲姟銆佸叧闂洃鍚櫒銆侀噴鏀句俊鍙烽噺銆�
+        /// 璋冪敤姝ゆ柟娉曞悗锛屾湇鍔″櫒鏃犳硶鍐嶆浣跨敤銆�
+        /// </remarks>
         public void Dispose()
         {
+            // 鍙栨秷鎵�鏈夋搷浣�
             _cts?.Cancel();
+
+            // 鍋滄鐩戝惉鍣�
             _listener?.Stop();
+
+            // 閲婃斁鍙栨秷浠ょ墝婧�
             _cts?.Dispose();
+
+            // 閲婃斁鎵�鏈夊鎴风淇″彿閲�
             foreach (var sem in _clientLocks.Values) { try { sem.Dispose(); } catch { } }
             _clientLocks.Clear();
+
+            // 璁板綍鍋滄鏃ュ織
             Log($"[{DateTime.Now}] TcpSocketServer stopped");
         }
     }

--
Gitblit v1.9.3