XFEExtension.NetCore.ServerInteractive
[DLL] Server interaction extension, including user identity verification and querying in conjunction with AutoConfig
关注
0
Fork
0
Star
0
返回提交历史
Added
XFEExtension.NetCore.ServerInteractive/Utilities/Requester/Serviecs/ClearLogRequestService.cs
+20
-0
Added
XFEExtension.NetCore.ServerInteractive/Utilities/Requester/Serviecs/GetLogRequestService.cs
+22
-0
Modified
XFEExtension.NetCore.ServerInteractive/Utilities/Requester/Serviecs/ReloginRequestService.cs
+6
-7
XFEstudio/XFEExtension.NetCore.ServerInteractive
完善部分客户端服务
64fabc5
代码差异
3 个文件
+48
-7
@@ -0,0 +1,20 @@
1
using XFEExtension.NetCore.ServerInteractive.Implements.Requester;
2
3
namespace XFEExtension.NetCore.ServerInteractive.Utilities.Requester.Serviecs;
4
5
/// <summary>
6
/// 清除日志请求服务
7
/// </summary>
8
public class ClearLogRequestService : XFERequestServiceBase
9
{
10
/// <inheritdoc/>
11
public override object AnalyzeResponse(string response) => true;
12
13
/// <inheritdoc/>
14
public override object PostRequest(string execute, params object[] parameters) => new
15
{
16
execute,
17
session = XFEClientRequester.Session,
18
computerInfo = XFEClientRequester.ComputerInfo
19
};
20
}
@@ -0,0 +1,22 @@
1
using XFEExtension.NetCore.ServerInteractive.Implements.Requester;
2
3
namespace XFEExtension.NetCore.ServerInteractive.Utilities.Requester.Serviecs;
4
5
/// <summary>
6
/// 获取日志请求服务
7
/// </summary>
8
public class GetLogRequestService : XFERequestServiceBase
9
{
10
/// <inheritdoc/>
11
public override object AnalyzeResponse(string response) => response;
12
13
/// <inheritdoc/>
14
public override object PostRequest(string execute, params object[] parameters) => new
15
{
16
execute,
17
session = XFEClientRequester.Session,
18
computerInfo = XFEClientRequester.ComputerInfo,
19
startDateTime = parameters[0],
20
endDateTime = parameters[1],
21
};
22
}
@@ -8,14 +8,13 @@ namespace XFEExtension.NetCore.ServerInteractive.Utilities.Requester.Serviecs;
8
8
public class ReloginRequestService : XFERequestServiceBase
9
9
{
10
10
/// <inheritdoc/>
11
public override object AnalyzeResponse(string response)
12
{
13
throw new NotImplementedException();
14
}
11
public override object AnalyzeResponse(string response) => true;
15
12
16
13
/// <inheritdoc/>
17
public override object PostRequest(string execute, params object[] parameters)
14
public override object PostRequest(string execute, params object[] parameters) => new
18
15
{
19
20
}
16
execute,
17
session = XFEClientRequester.Session,
18
computerInfo = XFEClientRequester.ComputerInfo,
19
};
21
20
}