/// <summary> /// Initializes a new instance of the <see cref="HttpSignatureValidator"/> class with the /// specified dependencies. /// </summary> /// <param name="keyLookup">A mechanism for looking up signing keys.</param> /// <param name="cache">A cache used to store used nonces.</param> /// <param name="clock">A mechanism for retrieving the current system time.</param> /// <param name="options"> /// Options used to control signature calculation and validation. /// </param> /// <param name="logger"></param> public HttpSignatureValidator(IKeyLookup keyLookup, IMemoryCache cache, ISystemClock clock, IOptions <SignatureOptions> options, ILogger <HttpSignatureValidator> logger) : this(keyLookup, cache, clock, options) { Logger = logger; }
/// <summary> /// Initializes a new instance of the <see cref="HttpSignatureValidator"/> class with the /// specified dependencies. /// </summary> /// <param name="keyLookup">A mechanism for looking up signing keys.</param> /// <param name="cache">A cache used to store used nonces.</param> /// <param name="clock">A mechanism for retrieving the current system time.</param> /// <param name="options"> /// Options used to control signature calculation and validation. /// </param> public HttpSignatureValidator(IKeyLookup keyLookup, IMemoryCache cache, ISystemClock clock, IOptions <SignatureOptions> options) { KeyLookup = keyLookup; Cache = cache; Clock = clock; Options = options.Value; }
public ProductIndexBuilder( IAppConfig appConfig, ICatalogSystemMapper catalogSystem, IIndexSystemMapper indexSystem, IKeyLookup keyLookup, EntryConverter entryConverter, IOperationsWriter writer, IEnumerable <IProductsAppender> appenderPlugins, IProductConverter converterPlugin = null) { _appConfig = appConfig; _catalogSystem = catalogSystem; _indexSystem = indexSystem; _keyLookup = keyLookup; _entryConverter = entryConverter; _writer = writer; _converterPlugin = converterPlugin; _appenderPlugins = appenderPlugins.ToArray(); }
public EntryConverter(ICatalogSystemMapper catalogSystem, IMetaDataMapper metaData, IPriceServiceMapper priceService, IKeyLookup keyLookup, PromotionEntryCodeProvider promotionProvider, IConfiguration configuration, IUrlResolver urlResolver, Formatter formatter) { _catalogSystem = catalogSystem; _metaData = metaData; _priceService = priceService; _keyLookup = keyLookup; _promotionProvider = promotionProvider; _configuration = configuration; _urlResolver = urlResolver; _formatter = formatter; _standardAttributes = new HashSet <string>(new[] { "locale" }); _confProductAttributes = _configuration.ProductAttributes.ToDictionary(pa => pa.Name); _confFacetAttributes = _configuration.FacetAttributes.ToDictionary(fa => fa.Name); }