using System; namespace ET { [ActorMessageHandler] public class C2M_DeleteFriendHandler : AMActorLocationRpcHandler { protected override async ETTask Run(Unit unit, C2M_DeleteFriend request, M2C_DeleteFriend response, Action reply) { string ret = await FriendComponent.Instance.DeleteFriend(unit, request.Id, response.FriendInfoList); if (!ret.Equals(string.Empty)) { response.Message = ret; reply(); return; } reply(); await ETTask.CompletedTask; } } }