Beispiel #1
0
 public MirrorService(
     IPackageService localPackages,
     IPackageMetadataService upstreamFeed,
     IPackageDownloader downloader,
     IPackageIndexingService indexer,
     ILogger <MirrorService> logger)
 {
     _localPackages = localPackages ?? throw new ArgumentNullException(nameof(localPackages));
     _upstreamFeed  = upstreamFeed ?? throw new ArgumentNullException(nameof(upstreamFeed));
     _downloader    = downloader ?? throw new ArgumentNullException(nameof(downloader));
     _indexer       = indexer ?? throw new ArgumentNullException(nameof(indexer));
     _logger        = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Beispiel #2
0
 public MirrorService(
     IPackageService localPackages,
     IPackageContentService upstreamContent,
     IPackageMetadataService upstreamMetadata,
     IPackageIndexingService indexer,
     ILogger <MirrorService> logger)
 {
     _localPackages    = localPackages ?? throw new ArgumentNullException(nameof(localPackages));
     _upstreamContent  = upstreamContent ?? throw new ArgumentNullException(nameof(upstreamContent));
     _upstreamMetadata = upstreamMetadata ?? throw new ArgumentNullException(nameof(upstreamMetadata));
     _indexer          = indexer ?? throw new ArgumentNullException(nameof(indexer));
     _logger           = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Beispiel #3
0
 public PackageMetadataController(IPackageMetadataService metadata)
 {
     _metadata = metadata ?? throw new ArgumentNullException(nameof(metadata));
 }
 public PackageDetailModel(IPackageMetadataService metadataService)
 {
     _metadataService = metadataService;
 }