Exemplo n.º 1
0
        private async Task RefreshAsync()
        {
            IsBusy = true;

            try
            {
                await timelineService.LoadCommentsOfAsync(Post);

                RaisePropertyChanged(() => Post);
            }
            catch
            {
                await DialogService.AlertAsync("An error occurred while refreshing comments.");
            }
            finally
            {
                MessengerInstance.Send(new NotificationMessage(Constants.RefreshCompleted));
                IsBusy = false;
            }
        }