2021-04-08 20:09:59 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace ET
|
|
|
|
|
{
|
|
|
|
|
[MessageHandler]
|
|
|
|
|
public class C2G_PingHandler : AMRpcHandler<C2G_Ping, G2C_Ping>
|
|
|
|
|
{
|
|
|
|
|
protected override async ETTask Run(Session session, C2G_Ping request, G2C_Ping response, Action reply)
|
|
|
|
|
{
|
|
|
|
|
response.Time = TimeHelper.ServerNow();
|
2021-04-24 17:39:11 +08:00
|
|
|
|
response.Token = Game.IdGenerater.GenerateId();
|
2021-04-08 20:09:59 +08:00
|
|
|
|
reply();
|
|
|
|
|
await ETTask.CompletedTask;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|