public virtual GlobalSetting Get()
        {
            var aggregatedDic = new Dictionary <string, object>();

            // TODO: use cache here!!!

            if (AssemblyRepo != null)
            {
                aggregatedDic.AddOrUpdate(AssemblyRepo.Get());
            }

            if (ConfigFileRepo != null)
            {
                aggregatedDic.AddOrUpdate(ConfigFileRepo.Get());
            }

            if (SettingRepo != null)
            {
                aggregatedDic.AddOrUpdate(SettingRepo.Get());
            }

            return(new GlobalSetting(aggregatedDic));
        }
Esempio n. 2
0
 private void GetGlobalSettings()
 {
     this._globalSetting = _globalSettingRepository.Get();
 }