XFEExtension.NetCore.ServerInteractive
[DLL] Server interaction extension, including user identity verification and querying in conjunction with AutoConfig
关注
0
Fork
0
Star
0
返回提交历史
Modified
XFEExtension.NetCore.ServerInteractive/Utilities/Server/Services/CoreService/ServerCoreExceptionProcessService.cs
+1
-1
Modified
XFEExtension.NetCore.ServerInteractive/Utilities/Server/XFEServerCore.cs
+2
-2
Modified
XFEExtension.NetCore.ServerInteractive/XFEExtension.NetCore.ServerInteractive.csproj
+6
-3
XFEstudio/XFEExtension.NetCore.ServerInteractive
优化日志输出及版本号升级至1.1.3
- 异常警告信息输出由 Console.WriteLine 改为 Console.Write,避免自动换行,堆栈信息仍保持换行输出。 - 请求处理完成日志由“成功!”改为“[耗时 xxx]”,突出耗时信息。 - 项目版本号由 1.1.2 升级至 1.1.3。
a3658c4
代码差异
3 个文件
+9
-6
@@ -37,7 +37,7 @@ public class ServerCoreExceptionProcessService : ServerCoreOriginalServiceBase
37
37
currentException = currentException.InnerException;
38
38
}
39
39
}
40
Console.WriteLine($"[WARN]【{e.CyberCommRequestEventArgs.ClientIP}】{errorMessage}");
40
Console.Write($"[WARN]【{e.CyberCommRequestEventArgs.ClientIP}】{errorMessage}");
41
41
if (e.ServerException?.StackTrace is not null)
42
42
Console.WriteLine($"[TRACE]{e.ServerException?.StackTrace}");
43
43
try
@@ -132,7 +132,7 @@ public abstract class XFEServerCore : ServerCoreServiceBase
132
132
}
133
133
//Console.WriteLine($"【{e.ClientIP}】请求处理完成:{execute}");
134
134
stopWatch.Stop();
135
Console.WriteLine($"\t成功![{InteractiveHelper.GetStopWatchTime(stopWatch)}]");
135
Console.WriteLine($"\t[耗时 {InteractiveHelper.GetStopWatchTime(stopWatch)}]");
136
136
return;
137
137
}
138
138
foreach (var key in standardMultiCoreServiceDictionary.Keys)
@@ -162,7 +162,7 @@ public abstract class XFEServerCore : ServerCoreServiceBase
162
162
});
163
163
}
164
164
stopWatch.Stop();
165
Console.WriteLine($"\t成功![{InteractiveHelper.GetStopWatchTime(stopWatch)}]");
165
Console.WriteLine($"\t[耗时 {InteractiveHelper.GetStopWatchTime(stopWatch)}]");
166
166
return;
167
167
}
168
168
}
@@ -5,7 +5,7 @@
5
5
<ImplicitUsings>enable</ImplicitUsings>
6
6
<Nullable>enable</Nullable>
7
7
<GenerateDocumentationFile>True</GenerateDocumentationFile>
8
<Version>1.1.2</Version>
8
<Version>1.1.3</Version>
9
9
<Title>XFEExtension.NetCore.ServerInteractive</Title>
10
10
<RepositoryUrl>https://github.com/XFEstudio/XFEExtension.NetCore.ServerInteractive</RepositoryUrl>
11
11
<AnalysisLevel>latest</AnalysisLevel>
@@ -20,10 +20,13 @@
20
20
<PackageTags>XFE;Server;服务器;XFEExtension</PackageTags>
21
21
<PackageReleaseNotes>
22
22
## 调整
23
24
优化日志输出及版本号升级至1.1.3
23
25
24
优化错误处理机制,提升代码一致性与性能
26
- 异常警告信息输出由 Console.WriteLine 改为 Console.Write,避免自动换行,堆栈信息仍保持换行输出。
27
- 请求处理完成日志由“成功!”改为“[耗时 xxx]”,突出耗时信息。
28
- 项目版本号由 1.1.2 升级至 1.1.3。
25
29
26
本次更新统一错误处理为抛出异常,重构 Error 方法并新增 CloseWithError,接口同步调整。服务类错误逻辑简化,部分 Console 输出优化。版本号升级至 1.1.2,提升整体性能与代码结构。
27
30
28
31
## 新增
29
32