public CachedTenantService(DbTenantService service, TenantServiceCache tenantServiceCache) : this()
 {
     Service             = service ?? throw new ArgumentNullException("service");
     TenantServiceCache  = tenantServiceCache;
     CacheNotifyItem     = tenantServiceCache.CacheNotifyItem;
     CacheNotifySettings = tenantServiceCache.CacheNotifySettings;
 }
Exemplo n.º 2
0
 public ConfigureCachedTenantService(
     IOptionsSnapshot <DbTenantService> service,
     TenantServiceCache tenantServiceCache)
 {
     Service            = service;
     TenantServiceCache = tenantServiceCache;
 }
Exemplo n.º 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;
        }