internal bool FindViaUri(PackageProvider packageProvider, string searchKey, Uri packageuri) { var found = false; using (var packages = packageProvider.FindPackageByUri(packageuri, 0, this).CancelWhen(_cancellationEvent.Token)) { foreach (var p in packages) { found = true; ProcessPackage(packageProvider, searchKey, p); } } return(found); }
internal bool FindViaUri(PackageProvider packageProvider, string packageuri) { var found = false; if (Uri.IsWellFormedUriString(packageuri, UriKind.Absolute)) { using (var packages = CancelWhenStopped(packageProvider.FindPackageByUri(new Uri(packageuri), 0, this))) { foreach (var p in packages) { found = true; ProcessPackage(packageProvider, packageuri, p); } } } return(found); }