using System; namespace ET { public class C2M_GoConstructHandler:AMActorLocationRpcHandler { protected async override ETTask Run(Unit unit, C2M_GoConstruct request, M2C_GoConstruct response, Action reply) { try { response.Error = ConstructOperate.GoConstruct(unit,request.Id,request.PeopleIdList); reply(); } catch (Exception e) { response.Message = e.ToString(); response.Error = ErrorCode.ERR_OperateFail; reply(); } await ETTask.CompletedTask; } } }