示例#1
0
文件: Class1.cs 项目: dstoreng/nugget
        public Class1()
        {
            IPackageLocator packageLocator = new AzurePackageLocator();
            IAzurePackageSerializer packageSerializer = new AzurePackageSerializer();

            _azureRepo = new AzureServerPackageRepository(packageLocator, packageSerializer);
        }
示例#2
0
        public AzureServiceResolver(IServiceResolver serviceResolver)
        {
            _serviceResolver = serviceResolver;
            var azureServerPackageRepository = new AzureServerPackageRepository(new AzurePackageLocator(), new AzurePackageSerializer());

            _serverPackageRepository = azureServerPackageRepository;
            _packageService          = new AzurePackageService(azureServerPackageRepository, new PackageAuthenticationService());
        }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AzurePackageService"/> class.
 /// </summary>
 /// <param name="repository">
 /// Repository of packages
 /// </param>
 /// <param name="authenticationService">
 /// Authentication service
 /// </param>
 public AzurePackageService(AzureServerPackageRepository repository, IPackageAuthenticationService authenticationService)
 {
     this.repository     = repository;
     this.packageService = new PackageService(repository, authenticationService);
 }
 public AzurePackageService(AzureServerPackageRepository repository,
                            IPackageAuthenticationService authenticationService)
     : base(repository, authenticationService)
 {
     _azureRepository = repository;
 }
 public AzurePackageService(AzureServerPackageRepository repository,
                       IPackageAuthenticationService authenticationService)
     : base(repository, authenticationService)
 {
     _azureRepository = repository;
 }