Exemplo n.º 1
0
        public DBConfigManager(IDBConfigDao dbConfigDao, string configName)
        {
            _dbConfigDao = dbConfigDao;
            _configName  = configName;

            ConfigCacheManager cacheManager = new ConfigCacheManager(this);

            Task task = Task.Factory.StartNew(() => cacheManager.StartConfigCache());

            task.Wait();
        }
Exemplo n.º 2
0
        public RegConfigManager(string registeryName)
        {
            _registryName = registeryName;

            _baseKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Wow6432Node\\" + _registryName, RegistryKeyPermissionCheck.ReadWriteSubTree, System.Security.AccessControl.RegistryRights.ReadKey);

            ConfigCacheManager cacheManager = new ConfigCacheManager(this);

            Task task = Task.Factory.StartNew(() => cacheManager.StartConfigCache());

            task.Wait();
        }