示例#1
0
 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));
 }
示例#2
0
 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));
 }