public PackageStatusProcessor( IEntityService <Package> galleryPackageService, IValidationFileService packageFileService, IValidatorProvider validatorProvider, ITelemetryService telemetryService, IOptionsSnapshot <SasDefinitionConfiguration> options, ILogger <EntityStatusProcessor <Package> > logger, ICoreLicenseFileService coreLicenseFileService, ICoreReadmeFileService coreReadmeFileService) : base(galleryPackageService, packageFileService, validatorProvider, telemetryService, logger) { _coreLicenseFileService = coreLicenseFileService ?? throw new ArgumentNullException(nameof(coreLicenseFileService)); _sasDefinitionConfiguration = (options == null || options.Value == null) ? new SasDefinitionConfiguration() : options.Value; _coreReadmeFileService = coreReadmeFileService ?? throw new ArgumentNullException(nameof(coreReadmeFileService)); }
public ValidationSetProvider( IValidationStorageService validationStorageService, IValidationFileService packageFileService, IValidatorProvider validatorProvider, IOptionsSnapshot <ValidationConfiguration> validationConfigurationAccessor, IOptionsSnapshot <SasDefinitionConfiguration> sasDefinitionConfigurationAccessor, ITelemetryService telemetryService, ILogger <ValidationSetProvider <T> > logger) { _validationStorageService = validationStorageService ?? throw new ArgumentNullException(nameof(validationStorageService)); _packageFileService = packageFileService ?? throw new ArgumentNullException(nameof(packageFileService)); _validatorProvider = validatorProvider ?? throw new ArgumentNullException(nameof(validatorProvider)); if (validationConfigurationAccessor == null) { throw new ArgumentNullException(nameof(validationConfigurationAccessor)); } _validationConfiguration = validationConfigurationAccessor.Value ?? throw new ArgumentException($"The Value property cannot be null", nameof(validationConfigurationAccessor)); _sasDefinitionConfiguration = (sasDefinitionConfigurationAccessor == null || sasDefinitionConfigurationAccessor.Value == null) ? new SasDefinitionConfiguration() : sasDefinitionConfigurationAccessor.Value; _telemetryService = telemetryService ?? throw new ArgumentNullException(nameof(telemetryService)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }