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