private void RefreshFileSelections() { SelectedProvider.GetCatalog().GetLibraryAsync(_packageId, CancellationToken.None).ContinueWith(x => { if (x.IsFaulted || x.IsCanceled) { SelectedPackage = null; return; } SelectedPackage = x.Result; }); }
private void RefreshFileSelections() { (string name, string version) = LibraryIdToNameAndVersionConverter.Instance.GetLibraryNameAndVersion(_packageId, SelectedProvider.Id); SelectedProvider.GetCatalog().GetLibraryAsync(name, version, CancellationToken.None).ContinueWith(x => { if (x.IsFaulted || x.IsCanceled) { SelectedPackage = null; return; } SelectedPackage = x.Result; }); }