public override IEnumerable <LocalPackageInfo> GetPackages(ILogger logger, CancellationToken token) { var packages = LocalFolderUtility.GetPackagesConfigFolderPackages(Root, logger); // Filter out any duplicates that may appear in the folder multiple times. return(LocalFolderUtility.GetDistinctPackages(packages)); }
public override IEnumerable <LocalPackageInfo> FindPackagesById(string id, ILogger logger, CancellationToken token) { token.ThrowIfCancellationRequested(); var packages = LocalFolderUtility.GetPackagesV2(Root, id, logger, token); // Filter out any duplicates that may appear in the folder multiple times. return(LocalFolderUtility.GetDistinctPackages(packages)); }