public virtual Task <GetPackageDictionaryOutput> GetPackageDictionaryAsync(GetPackageDictionaryInput input) { return(_service.GetPackageDictionaryAsync(input)); }
public virtual async Task <GetPackageDictionaryOutput> GetPackageDictionaryAsync(GetPackageDictionaryInput input) { var result = await _listPackageService.GetInstalledPackagesAsync(input.DirectoryPath); return(new GetPackageDictionaryOutput { SolutionName = result.SolutionName, Items = new Dictionary <string, List <PackageInfo> >(result.Items.Select(x => new KeyValuePair <string, List <PackageInfo> >(x.Key, x.Value.Select(y => new PackageInfo(y.Name, y.Version)).ToList()))) }); }