Exemplo n.º 1
0
        private async void GetMoney()
        {
            try
            {
                //MoneyProgressRing.IsActive = true;
                this.ViewModel.Money.Clear();
                var res = WebServiceConsumer.GetMoney(GetMoneyAddress(), () => { });

                await res.ContinueWith((t) =>
                {
                    this.HandleMoneyResults(t.Result);
                    // this.OnDataComplete();
                }, TaskScheduler.FromCurrentSynchronizationContext());
            }
            catch (AggregateException aex)
            {
                this.ViewModel.SetErrorAlert();
            }
        }