public static NuGetRoutes Build(IRecorder recorder, IArtifactSaver artifact, Config config) { var proxies = new Dictionary <string, NuGetProxy>(); foreach (var repo in config.repos.nuget) { var name = repo.name ?? throw new Exception("NuGet repo name is missing."); var url = repo.url ?? throw new Exception("NuGet repo url is missing."); proxies.Add(name, new NuGetProxy(recorder, name, url)); } return(new NuGetRoutes(proxies, artifact)); }
private NuGetRoutes(Dictionary <string, NuGetProxy> proxies, IArtifactSaver artifact) { this.proxies = proxies; this.artifact = artifact; }
public ArtifactRoutes(IArtifactSaver artifact) { this.artifact = artifact; }
private NpmRoutes(IRecorder recorder, IArtifactSaver artifact, string registryUrl) { this.recorder = recorder; this.artifact = artifact; this.registryUrl = registryUrl; }