コード例 #1
0
ファイル: Home.cs プロジェクト: martinmthomas/subweb
        private async Task HandleException(Exception ex)
        {
            Console.WriteLine(ex.StackTrace); //Write to a log destination in server? Not for now, as the aim is to do Client side hosting only.

            await AlertService.ErrorAsync(ex.Message);

            if (StarredRepos.Count() == 0)
            {
                await SetHomeContentAsync();
            }
        }
コード例 #2
0
ファイル: UpdateViewModel.cs プロジェクト: prin53/OpenGeoDB
        protected override async Task Load()
        {
            await base.Load();

            try
            {
                await UpdateService.UpdateAsync();
            }
            catch (Exception exception)
            {
                Mvx.TaggedError(Tag, exception.ToString());

                await AlertService.ErrorAsync(exception.Message);
            }
            finally
            {
                await NavigationService.Navigate <CitiesViewModel>();
            }
        }