示例#1
0
        IPackageRepository CreatePackageRepositoryForActivePackageSource()
        {
            PackageSource packageSource = ConsoleHost.GetActivePackageSource(Source);

            return(registeredPackageRepositories.CreateRepository(packageSource));
        }
示例#2
0
 IPackageRepository CreatePackageRepository(PackageSource source)
 {
     return(registeredPackageRepositories.CreateRepository(source));
 }
示例#3
0
 public IPackageRepository GetPackageRepository(PackageSource packageSource)
 {
     return(registeredRepositories.CreateRepository(packageSource));
 }
示例#4
0
        IPackageRepository CreatePackageRepository(string packageSourceUrl)
        {
            IPackageRepository repository = registeredPackageRepositories.CreateRepository(new PackageSource(packageSourceUrl));

            return(new PriorityPackageRepository(MachineCache.Default, repository));
        }