Ejemplo n.º 1
0
        static CustomConfigManager()
        {
            _defauleManager = new Lazy <CustomConfigManager>(() =>
            {
                var c = new CustomConfigManager();

                c.Add("AppSettings", new DotNetConfigAppSettingsProvider());
                c.Add("ConnectionStrings", new DotNetConfigConnectionSectionProvider());
                c.Add("KugarCoreConfig", new DotNetConfigKugarCoreConfigProvider());
                return(c);
            });
        }
Ejemplo n.º 2
0
        //private ReaderWriterLockSlim _locker = new ReaderWriterLockSlim();

        static CustomConfigManager()
        {
            _appSettings  = Build("AppSettings", new DotNetConfigAppSettingsProvider());
            _connSettings = Build("ConnectionSection", new DotNetConfigConnectionSectionProvider());


            _defauleManager = new Lazy <CustomConfigManager>(() =>
            {
                var c = new CustomConfigManager();

                return(c);
            });
        }