using System; namespace ET { [ActorMessageHandler] public class C2M_GetMailHandler : AMActorLocationRpcHandler { protected override async ETTask Run(Unit unit, C2M_GetMail request, M2C_GetMail response, Action reply) { var count = await MailComponent.Instance.GetMail(unit.Id, request.Page, response.MailList); response.MailCount = count; reply(); await ETTask.CompletedTask; } } }