public PackageFinder( IGalleryContext galleryContext, IServiceScopeFactory scopeFactory, InitializationConfiguration config, ILogger <PackageFinder> logger) { _galleryContext = galleryContext ?? throw new ArgumentNullException(nameof(galleryContext)); _scopeFactory = scopeFactory ?? throw new ArgumentNullException(nameof(scopeFactory)); _config = config ?? throw new ArgumentNullException(nameof(config)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public InitializationManager( IRevalidationJobStateService jobState, IPackageRevalidationStateService packageState, IPackageFinder packageFinder, IServiceScopeFactory scopeFactory, InitializationConfiguration config, ILogger <InitializationManager> logger) { _jobState = jobState ?? throw new ArgumentNullException(nameof(jobState)); _packageState = packageState ?? throw new ArgumentNullException(nameof(packageState)); _packageFinder = packageFinder ?? throw new ArgumentNullException(nameof(packageFinder)); _scopeFactory = scopeFactory ?? throw new ArgumentNullException(nameof(scopeFactory)); _config = config ?? throw new ArgumentNullException(nameof(config)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }