7 references to HttpSourcesUtility
NuGet.CommandLine.XPlat (7)
Commands\Package\Download\PackageDownloadRunner.cs (2)
360var insecureSources = HttpSourcesUtility.GetDisallowedInsecureHttpSources([.. packageSources]); 363logger.LogError(HttpSourcesUtility.BuildHttpSourceErrorMessage(insecureSources, "package download"));
Commands\PackageReferenceCommands\ListPackage\ListPackageCommandRunner.cs (3)
143List<PackageSource> httpSources = HttpSourcesUtility.GetDisallowedInsecureHttpSources(listPackageArgs.PackageSources); 144httpSources.AddRange(HttpSourcesUtility.GetDisallowedInsecureHttpSources(listPackageArgs.AuditSources)); 148projectModel.AddProjectInformation(ProblemType.Error, HttpSourcesUtility.BuildHttpSourceErrorMessage(httpSources, "list package"));
Commands\PackageSearch\PackageSearchRunner.cs (2)
60List<PackageSource> httpSources = HttpSourcesUtility.GetDisallowedInsecureHttpSources(listEndpoints.ToList()); 64packageSearchResultRenderer.Add(new PackageSearchProblem(PackageSearchProblemType.Error, HttpSourcesUtility.BuildHttpSourceErrorMessage(httpSources, "search")));