XFEExtension.NetCore.ServerInteractive
[DLL] Server interaction extension, including user identity verification and querying in conjunction with AutoConfig
关注
0
Fork
0
Star
0
using XFEExtension.NetCore.ServerInteractive.Attributes;
using XFEExtension.NetCore.ServerInteractive.Implements.CoreService;
namespace XFEExtension.NetCore.ServerInteractive.TServer.Services;
/// <summary>
/// Echo服务:将客户端发送的消息原样返回
/// </summary>
public partial class EchoCoreService : ServerCoreStandardServiceBase
{
[EntryPoint("echo")]
public async Task EchoEntryPoint()
{
var message = Json?["message"]?.GetValue<string>() ?? string.Empty;
await Close(message);
}
}
using XFEExtension.NetCore.ServerInteractive.Attributes;
using XFEExtension.NetCore.ServerInteractive.Implements.CoreService;
namespace XFEExtension.NetCore.ServerInteractive.TServer.Services;
/// <summary>
/// Echo服务:将客户端发送的消息原样返回
/// </summary>
public partial class EchoCoreService : ServerCoreStandardServiceBase
{
[EntryPoint("echo")]
public async Task EchoEntryPoint()
{
var message = Json?["message"]?.GetValue<string>() ?? string.Empty;
await Close(message);
}
}