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"); } }
public BaseCacheManager(CacheConfig config) { Init(null, config); }
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) { }