public override RequestResult <List <MeterialGroupThicknessDto> > WebRequest(MaterialInfoEventData eventData) { MaterialClientServiceProxy materialClientServiceProxy = new MaterialClientServiceProxy(apiHost, httpClient); var res = materialClientServiceProxy.GetMaterialAllAsync(eventData.IsCheckSon, 0, 50).Result; return(new RequestResult <List <MeterialGroupThicknessDto> >() { Result = res.Result.Items.ToList(), Error = res.Error, Success = res.Success, TargetUrl = res.TargetUrl, UnAuthorizedRequest = res.UnAuthorizedRequest }); }
public void RefreshData() { Messenger.Default.Send(new MainSystemNoticeModel() { EventType = EventEnum.StartLoad }); var model = new MaterialInfoEventData { IsCheckSon = true, SuccessAction = LoadData }; Task.Factory.StartNew(new Action(() => { EventBus.Default.Trigger(model); })); }