public CatalogInvalidator( ICachingProxyConfig config, ICatalogScanStore store, ICatalogReader reader) { this.store = store; var period = TimeSpan.FromSeconds(config.InvalidationCheckSeconds); _scanTimer = new Timer(state => Run(), null, period, period); this.reader = reader; }
public CatalogInvalidator(Microsoft.Extensions.Logging.ILogger <CatalogInvalidator> logger, CacheOptions config, ICatalogScanStore store, ICatalogReader reader) { this._log = logger; this.store = store; var period = TimeSpan.FromSeconds(config.InvalidationCheckSeconds); _scanTimer = new Timer(state => Run(), null, period, period); this.reader = reader; }