Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        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;
        }