Example #1
0
 public SignatureValidator(
     IPackageSigningStateService packageSigningStateService,
     IPackageSignatureVerifier minimalPackageSignatureVerifier,
     IPackageSignatureVerifier fullPackageSignatureVerifier,
     ISignaturePartsExtractor signaturePartsExtractor,
     IProcessorPackageFileService packageFileService,
     ICorePackageService corePackageService,
     ITelemetryService telemetryService,
     ILogger <SignatureValidator> logger)
 {
     _packageSigningStateService      = packageSigningStateService ?? throw new ArgumentNullException(nameof(packageSigningStateService));
     _minimalPackageSignatureVerifier = minimalPackageSignatureVerifier ?? throw new ArgumentNullException(nameof(minimalPackageSignatureVerifier));
     _fullPackageSignatureVerifier    = fullPackageSignatureVerifier ?? throw new ArgumentNullException(nameof(fullPackageSignatureVerifier));
     _signaturePartsExtractor         = signaturePartsExtractor ?? throw new ArgumentNullException(nameof(signaturePartsExtractor));
     _packageFileService = packageFileService ?? throw new ArgumentNullException(nameof(packageFileService));
     _corePackageService = corePackageService ?? throw new ArgumentNullException(nameof(corePackageService));
     _telemetryService   = telemetryService ?? throw new ArgumentNullException(nameof(telemetryService));
     _logger             = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Example #2
0
 public SignatureValidator(
     IPackageSigningStateService packageSigningStateService,
     ISignatureFormatValidator formatValidator,
     ISignaturePartsExtractor signaturePartsExtractor,
     IProcessorPackageFileService packageFileService,
     ICorePackageService corePackageService,
     IOptionsSnapshot <ProcessSignatureConfiguration> configuration,
     ITelemetryService telemetryService,
     ILogger <SignatureValidator> logger)
 {
     _packageSigningStateService = packageSigningStateService ?? throw new ArgumentNullException(nameof(packageSigningStateService));
     _formatValidator            = formatValidator ?? throw new ArgumentNullException(nameof(formatValidator));
     _signaturePartsExtractor    = signaturePartsExtractor ?? throw new ArgumentNullException(nameof(signaturePartsExtractor));
     _packageFileService         = packageFileService ?? throw new ArgumentNullException(nameof(packageFileService));
     _corePackageService         = corePackageService ?? throw new ArgumentNullException(nameof(corePackageService));
     _configuration    = configuration ?? throw new ArgumentNullException(nameof(configuration));
     _telemetryService = telemetryService ?? throw new ArgumentNullException(nameof(telemetryService));
     _logger           = logger ?? throw new ArgumentNullException(nameof(logger));
 }