示例#1
0
 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);
        }
示例#3
0
        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);
        }
示例#4
0
        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));
        }
示例#6
0
 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;
 }
 public ClientAzManager(IAzService service)
 {
     this.service = service;
 }
 public AuthorizationManager(IAzService service)
 {
     this.service = service;
 }