コード例 #1
0
        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
            });
        }
コード例 #2
0
        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);
            }));
        }