From 2adfc785179e551e6f99fd6799e7eebe360dd6c3 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期六, 25 四月 2026 18:44:19 +0800
Subject: [PATCH] refactor(RobotJob): 移除HandleClientAsync方法中未使用的robotCrane参数
---
Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/RobotJob/RobotClientManager.cs | 2 +-
Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/RobotJob/Abstractions/ISocketClientGateway.cs | 2 +-
Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SocketServer/SocketClientGateway.cs | 4 ++--
Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SocketServer/TcpSocketServer.Messaging.cs | 3 +--
4 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/RobotJob/Abstractions/ISocketClientGateway.cs b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/RobotJob/Abstractions/ISocketClientGateway.cs
index 0d56122..f736b8f 100644
--- a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/RobotJob/Abstractions/ISocketClientGateway.cs
+++ b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/RobotJob/Abstractions/ISocketClientGateway.cs
@@ -50,6 +50,6 @@
/// <param name="clientId">瀹㈡埛绔爣璇嗭紙閫氬父鏄� IP 鍦板潃锛�</param>
/// <param name="cancellationToken">鍙栨秷浠ょ墝</param>
/// <param name="robotCrane">鏈哄櫒浜虹姸鎬佸璞�</param>
- Task HandleClientAsync(TcpClient client, string clientId, CancellationToken cancellationToken, RobotSocketState robotCrane);
+ Task HandleClientAsync(TcpClient client, string clientId, CancellationToken cancellationToken);
}
}
diff --git a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/RobotJob/RobotClientManager.cs b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/RobotJob/RobotClientManager.cs
index c021204..62241f4 100644
--- a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/RobotJob/RobotClientManager.cs
+++ b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/RobotJob/RobotClientManager.cs
@@ -146,7 +146,7 @@
// 寮傛鍚姩瀹㈡埛绔秷鎭鐞嗗惊鐜�
// 浣跨敤 TaskContinuationOptions.OnlyOnFaulted 鎹曡幏寮傚父鎯呭喌
- _ = _tcpSocket.HandleClientAsync(tcpClient, robotCrane.IPAddress, _tcpSocket._cts.Token, latestStateForSubscribe)
+ _ = _tcpSocket.HandleClientAsync(tcpClient, robotCrane.IPAddress, _tcpSocket._cts.Token)
.ContinueWith(t =>
{
// 濡傛灉澶勭悊鍑虹幇寮傚父
diff --git a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SocketServer/SocketClientGateway.cs b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SocketServer/SocketClientGateway.cs
index 7142a7b..bbf3377 100644
--- a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SocketServer/SocketClientGateway.cs
+++ b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SocketServer/SocketClientGateway.cs
@@ -66,9 +66,9 @@
/// <param name="cancellationToken">鍙栨秷浠ょ墝</param>
/// <param name="robotCrane">鏈哄櫒浜虹姸鎬�</param>
/// <returns>浠诲姟</returns>
- public Task HandleClientAsync(TcpClient client, string clientId, CancellationToken cancellationToken, RobotSocketState robotCrane)
+ public Task HandleClientAsync(TcpClient client, string clientId, CancellationToken cancellationToken)
{
- return _tcpSocket.HandleClientAsync(client, clientId, cancellationToken, robotCrane);
+ return _tcpSocket.HandleClientAsync(client, clientId, cancellationToken);
}
}
}
diff --git a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SocketServer/TcpSocketServer.Messaging.cs b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SocketServer/TcpSocketServer.Messaging.cs
index f49e018..6c5b0ef 100644
--- a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SocketServer/TcpSocketServer.Messaging.cs
+++ b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SocketServer/TcpSocketServer.Messaging.cs
@@ -23,8 +23,7 @@
/// <param name="client">TCP 瀹㈡埛绔繛鎺�</param>
/// <param name="clientId">瀹㈡埛绔敮涓�鏍囪瘑</param>
/// <param name="cancellationToken">鍙栨秷浠ょ墝</param>
- /// <param name="robotCrane">鏈哄櫒浜虹姸鎬�</param>
- public async Task HandleClientAsync(TcpClient client, string clientId, CancellationToken cancellationToken, RobotSocketState robotCrane)
+ public async Task HandleClientAsync(TcpClient client, string clientId, CancellationToken cancellationToken)
{
using (client)
using (NetworkStream networkStream = client.GetStream())
--
Gitblit v1.9.3