Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 /// <summary>清理、卸载配置
 /// </summary>
 public static void Cleanup()
 {
     if (Configuration._instance == null) return;
     Configuration._instance.InternalCleanup();
     Configuration._instance = null;
 }
Ejemplo n.º 3
0
 /// <summary>初始化框架配置
 /// </summary>
 /// <returns></returns>
 /// <exception cref="InvalidOperationException">不可重复初始化配置</exception>
 public static Configuration Config()
 {
     if (Configuration._instance != null)
         throw new InvalidOperationException("不可重复初始化配置");
     Configuration._instance = new Configuration();
     return Configuration._instance;
 }
Ejemplo n.º 4
0
 public InnerLog(Configuration config)
 {
     this._config = config;
 }