public ValidationEngine(IPackageBinary packageBinary, IDerivationStrategyFactory derivationStrategyFactory, IMerkleStrategyFactory merkleStrategyFactory, IHashAlgorithmFactory hashAlgorithmFactory, TrustSchemaValidationOptions options, IValidatorFactory validatorFactory) { _packageBinary = packageBinary; _derivationStrategyFactory = derivationStrategyFactory; _merkleStrategyFactory = merkleStrategyFactory; _hashAlgorithmFactory = hashAlgorithmFactory; _options = options; _validatorFactory = validatorFactory; }
public SchemaValidationResult Validate(Package package, TrustSchemaValidationOptions options = TrustSchemaValidationOptions.Full) { var engine = new ValidationEngine(_packageBinary, _derivationServiceFactory, _merkleStrategyFactory, _hashAlgorithmFactory, options, _validatorFactory); return(engine.Validate(package)); }