public CachedTenantService(DbTenantService service, TenantServiceCache tenantServiceCache) : this()
 {
     Service             = service ?? throw new ArgumentNullException("service");
     TenantServiceCache  = tenantServiceCache;
     CacheNotifyItem     = tenantServiceCache.CacheNotifyItem;
     CacheNotifySettings = tenantServiceCache.CacheNotifySettings;
 }
Пример #2
0
 public ConfigureCachedTenantService(
     IOptionsSnapshot <DbTenantService> service,
     TenantServiceCache tenantServiceCache)
 {
     Service            = service;
     TenantServiceCache = tenantServiceCache;
 }
Пример #3
0
        public CachedTenantService(DbTenantService service, TenantServiceCache tenantServiceCache)
        {
            this.service       = service ?? throw new ArgumentNullException("service");
            cache              = AscCache.Memory;
            SettingsExpiration = TimeSpan.FromMinutes(2);

            TenantServiceCache  = tenantServiceCache;
            cacheNotifyItem     = tenantServiceCache.CacheNotifyItem;
            cacheNotifySettings = tenantServiceCache.CacheNotifySettings;
        }