public PackagePublishController( IPackageIndexingService indexer, IPackageService packages, IPackageDeletionService deletionService, ILogger <PackagePublishController> logger) { _indexer = indexer ?? throw new ArgumentNullException(nameof(indexer)); _packages = packages ?? throw new ArgumentNullException(nameof(packages)); _deleteService = deletionService ?? throw new ArgumentNullException(nameof(deletionService)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public PackagePublishController( IAuthenticationService authentication, IPackageIndexingService indexer, IPackageService packages, IPackageDeletionService deletionService, IOptionsSnapshot <BaGetOptions> options, ILogger <PackagePublishController> logger) { _authentication = authentication ?? throw new ArgumentNullException(nameof(authentication)); _indexer = indexer ?? throw new ArgumentNullException(nameof(indexer)); _packages = packages ?? throw new ArgumentNullException(nameof(packages)); _deleteService = deletionService ?? throw new ArgumentNullException(nameof(deletionService)); _options = options ?? throw new ArgumentNullException(nameof(options)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }