/// <summary>启用全局缓存管理功能 /// </summary> /// <returns></returns> public SystemConfig NonWeakReferenceCache() { if (this._cacheManager == null) { //CacheManager没有外部消费者,无注入需求 this._cacheManager = new NonWeakReferenceCacheManager(); } return(this); }
protected SystemConfig(SystemConfig config) : this(config.AppName , config.VersionFlag) { this._enableRefresh = config._enableRefresh; this._isCommonConfigReaded = config._isCommonConfigReaded; this._justTestIdentity = config._justTestIdentity; this._dict = config._dict; this._exceptionSystem = config._exceptionSystem; this._cacheManager = config._cacheManager; this.FoundationConfig = config.FoundationConfig; }