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