using System; namespace ET { [ActorMessageHandler] public class C2M_StopGatherHandler: AMActorLocationRpcHandler { protected async override ETTask Run(Unit unit, C2M_StopGather request, M2C_StopGather response, Action reply) { try { response.Error = GatherOperate.StopGather(unit, request.GatherId, request.PeopleId); reply(); } catch (Exception e) { response.Error = ErrorCode.ERR_StopGatherFail; response.Message = e.Message; reply(); } await ETTask.CompletedTask; } } }