コード例 #1
0
        private void InitializeSettings()
        {
            var siteSettingsRepository = new AdminSiteSettingsRepository(@"C:\QAConfig\AdminSiteSettings.json");

            siteSettingsRepository.Load();
            _container.RegisterInstance(siteSettingsRepository);
        }
コード例 #2
0
 public AdminSiteSettings Get()
 {
     try
     {
         var settings = _settingsRepository.Load();
         return(settings);
     }
     catch (Exception exc)
     {
         Logger.Error(exc, "Error while getting settings.");
         return(null);
     }
 }