A:增加 http 端口监听;增加http参数解析;增加websocket的客户端uuid识别和存储

This commit is contained in:
jimmy committed 2025-06-25 13:25:05 +08:00
1 parent 1b35e2dfd7
commit f2dc4441d4
16 files changed
+648 -158

No files matched your search

@@ -398,6 +398,13 @@ public static class Log
var str = GetLog(callerMemberName, Path.GetFileName(filePath), callerLineNumber, message);
Debug(str);
}
public static void Info(string message, params object[] args) => Information(message, args);
public static void Info4Ctx(string message, [CallerMemberName] string callerMemberName = "",
[CallerFilePath] string filePath = "", [CallerLineNumber] int callerLineNumber = 0)
{
Information4Ctx(message,callerMemberName,filePath,callerLineNumber);
}
public static void Information(string message, params object[] args) => Instance.LogInformation(message, args);
@@ -14,6 +14,9 @@ public static class SysHelper
/// <returns></returns>
public static int GetAvailablePort()
{
// todo: 2025/6/24 15:53 开发过程中使用固定端口
return 8267;
TcpListener listener = new TcpListener(IPAddress.Loopback, 0); // 端口号为0表示由系统自动分配
listener.Start();
int port = ((IPEndPoint)listener.LocalEndpoint).Port;