Esempio n. 1
0
        public async Task RefreshAsync()
        {
            try
            {
                IsLoading = true;
                CheckAndCloseAudioToken();

                await ClearItems();

                await this.audioService.LoadListAsync(AddItemToList, this.audioToken.Token);

                IsLoading = false;

                if (ItemsView.Contains(this.currentItem))
                {
                    ItemsView.MoveCurrentTo(this.currentItem);
                }
            }
            catch (OperationCanceledException)
            {
                Debug.WriteLine("Catch OperationCanceledException in AudioController");
            }
        }