Beispiel #1
0
        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();
            }
        }
Beispiel #2
0
        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>();
            }
        }