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