Ejemplo n.º 1
0
        private void InitializeSettings()
        {
            var siteSettingsRepository = new AdminSiteSettingsRepository(@"C:\QAConfig\AdminSiteSettings.json");

            siteSettingsRepository.Load();
            _container.RegisterInstance(siteSettingsRepository);
        }
Ejemplo n.º 2
0
 public AdminSiteSettings Get()
 {
     try
     {
         var settings = _settingsRepository.Load();
         return(settings);
     }
     catch (Exception exc)
     {
         Logger.Error(exc, "Error while getting settings.");
         return(null);
     }
 }