public int HandleRequestMessage(UDPModel uModel) { KevSocketModel <ChatTextMessageModel> ksModel_ctmModel = JsonHelper.ParseFromJson <KevSocketModel <ChatTextMessageModel> >(uModel); if (ksModel_ctmModel == null || ksModel_ctmModel.Data == null) { return(ResponseCode.AnalyticalDataError); } //界面上展示消息 KevRegister.Get <Dispatcher>(ClientItemsPrimaryKey.Dispatcher_MainThread).Invoke(() => { HomeForm hForm = KevRegister.Get <HomeForm>(ClientItemsPrimaryKey.Form_Home); ChatMessageCache.HandleMessage(ksModel_ctmModel.Data); hForm.HandleMessage(ksModel_ctmModel.Data); }); return(ResponseCode.Success); }