XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEExtension.NetCore.ServerInteractive

[DLL] Server interaction extension, including user identity verification and querying in conjunction with AutoConfig

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFEExtension.NetCore.ServerInteractive

Fix routing: align ConnectService entry point with client, fix greet_empty route, address review feedback

Agent-Logs-Url: https://github.com/XFEstudio/XFEExtension.NetCore.ServerInteractive/sessions/1dc495ce-466f-4bcc-9e3a-a40c15a28ceb Co-authored-by: XFEstudio <132526994+XFEstudio@users.noreply.github.com>

554ede3
copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
提交于

代码差异

5 个文件 +6 -10
Modified XFEExtension.NetCore.ServerInteractive.TServer/Services/EchoCoreService.cs +1 -1
@@ -12,6 +12,6 @@ public partial class EchoCoreService : ServerCoreStandardServiceBase
12 12 public async Task EchoEntryPoint()
13 13 {
14 14 var message = Json?["message"]?.GetValue<string>() ?? string.Empty;
15 await Close(new { echo = message });
15 await Close(message);
16 16 }
17 17 }
Modified XFEExtension.NetCore.ServerInteractive.TServer/Services/MathCoreService.cs +1 -2
@@ -1,5 +1,4 @@
1 using System.Net;
2 using XFEExtension.NetCore.ServerInteractive.Attributes;
1 using XFEExtension.NetCore.ServerInteractive.Attributes;
3 2 using XFEExtension.NetCore.ServerInteractive.Implements.CoreService;
4 3
5 4 namespace XFEExtension.NetCore.ServerInteractive.TServer.Services;
Modified XFEExtension.NetCore.ServerInteractive.TServer/Services/StatusCoreService.cs +2 -1
@@ -11,11 +11,12 @@ public partial class StatusCoreService : ServerCoreStandardServiceBase
11 11 [EntryPoint("status")]
12 12 public async Task StatusEntryPoint()
13 13 {
14 var version = typeof(StatusCoreService).Assembly.GetName().Version?.ToString() ?? "unknown";
14 15 await Close(new
15 16 {
16 17 status = "running",
17 18 timestamp = DateTime.UtcNow,
18 version = "1.0.0"
19 version
19 20 });
20 21 }
21 22 }
Modified XFEExtension.NetCore.ServerInteractive.Test/Program.cs +1 -5
@@ -43,10 +43,6 @@ internal class Program
43 43 execute = "greet",
44 44 name = parameters.Length > 0 ? parameters[0] : string.Empty
45 45 }, response => response)
46 .AddRequest("greet_empty", (_, _, _) => new
47 {
48 execute = "greet"
49 }, response => response)
50 46 .AddRequest("time", (_, _, _) => new
51 47 {
52 48 execute = "time"
@@ -373,7 +369,7 @@ internal class Program
373 369 [SMTest]
374 370 public static async Task GreetEmptyNameTest()
375 371 {
376 var result = await s_xFEClientRequester.Request<string>("greet_empty");
372 var result = await s_xFEClientRequester.Request<string>("greet");
377 373 Console.WriteLine($"空名称状态码:{result.StatusCode}");
378 374 Console.WriteLine($"空名称消息:{result.Message}");
379 375 }
Modified XFEExtension.NetCore.ServerInteractive/Utilities/Server/Services/CoreService/ConnectService.cs +1 -1
@@ -12,7 +12,7 @@ public partial class ConnectService : ServerCoreStandardServiceBase
12 12 /// <summary>
13 13 /// 连接检查入口点
14 14 /// </summary>
15 [EntryPoint("connect")]
15 [EntryPoint("check_connect")]
16 16 public async Task Connect()
17 17 {
18 18