public CachedQuotaService(DbQuotaService service, QuotaServiceCache quotaServiceCache) : this() { Service = service ?? throw new ArgumentNullException("service"); QuotaServiceCache = quotaServiceCache; Cache = quotaServiceCache.Cache; CacheNotify = quotaServiceCache.CacheNotify; }
public ConfigureCachedQuotaService( IOptionsSnapshot <DbQuotaService> service, QuotaServiceCache quotaServiceCache) { Service = service; QuotaServiceCache = quotaServiceCache; }
public CachedQuotaService(DbQuotaService service, QuotaServiceCache quotaServiceCache) { this.service = service ?? throw new ArgumentNullException("service"); QuotaServiceCache = quotaServiceCache; cache = quotaServiceCache.Cache; interval = new TrustInterval(); CacheExpiration = TimeSpan.FromMinutes(10); cacheNotify = quotaServiceCache.CacheNotify; }