Пример #1
0
        private void Init(INow now, CacheConfig config)
        {
            this.now  = now ?? new DateTimeNow();
            this.Name = this.GetType().FullName;

            if (config == null)
            {
                throw new ArgumentNullException("config");
            }

            _config = config;

            if (string.IsNullOrEmpty(_config.Name))
            {
                throw new ArgumentNullException("CacheConfig.Name");
            }
        }
Пример #2
0
 public BaseCacheManager(CacheConfig config)
 {
     Init(null, config);
 }
Пример #3
0
 public BaseCacheManager(INow now, CacheConfig config)
 {
     Init(now, config);
 }
 public AppDomainCacheManager(INow now, AppDomain app, CacheConfig config) : base(now, config)
 {
     _app = app;
 }
 public AppDomainCacheManager(INow now, CacheConfig config) : this(now, AppDomain.CurrentDomain, config)
 {
 }
 public AppDomainCacheManager(AppDomain app, CacheConfig config) : base(config)
 {
     _app = app;
 }
 public AppDomainCacheManager(CacheConfig config) : this(AppDomain.CurrentDomain, config)
 {
 }