public CachedAzService(DbAzService service, AzServiceCache azServiceCache) { this.service = service ?? throw new ArgumentNullException("service"); Cache = azServiceCache.Cache; cacheNotify = azServiceCache.CacheNotify; CacheExpiration = TimeSpan.FromMinutes(10); }
public CachedAzService(IAzService service) { if (service == null) throw new ArgumentNullException("service"); this.service = service; this.cache = new AspCache(); CacheExpiration = TimeSpan.FromMinutes(10); }
public CachedAzService(IAzService service) { this.service = service ?? throw new ArgumentNullException("service"); cache = AscCache.Memory; CacheExpiration = TimeSpan.FromMinutes(10); cacheNotify = new KafkaCache <AzRecordCache>(); cacheNotify.Subscribe((r) => UpdateCache(r, true), CacheNotifyAction.Remove); cacheNotify.Subscribe((r) => UpdateCache(r, false), CacheNotifyAction.InsertOrUpdate); }
public CachedAzService(IAzService service) { if (service == null) { throw new ArgumentNullException("service"); } this.service = service; this.cache = new AspCache(); CacheExpiration = TimeSpan.FromMinutes(10); }
public CachedAzService(IAzService service) { if (service == null) { throw new ArgumentNullException("service"); } this.service = service; cache = AscCache.Memory; CacheExpiration = TimeSpan.FromMinutes(10); cacheNotify = AscCache.Notify; cacheNotify.Subscribe <AzRecord>((r, a) => UpdateCache(r.Tenant, r, a == CacheNotifyAction.Remove)); }
public AuthorizationManager(IAzService service, TenantManager tenantManager) { this.service = service; TenantManager = tenantManager; }
public AuthorizationManager(IAzService service) { this.service = service; }
public ClientAzManager(IAzService service) { this.service = service; }