private SeoSettings MapSettings(Dictionary <string, string> allSettings)
        {
            var settings = new SeoSettings();

            _getSettingQueryHelper.SetSettingProperty(settings, s => s.HumansTxt, allSettings);
            _getSettingQueryHelper.SetSettingProperty(settings, s => s.RobotsTxt, allSettings);

            return(settings);
        }
        private InternalSettings MapSettings(Dictionary <string, string> allSettings)
        {
            var settings = new InternalSettings();

            _getSettingQueryHelper.SetSettingProperty(settings, s => s.IsSetup, allSettings);

            return(settings);
        }
        private VisualEditorSettings MapSettings(Dictionary <string, string> allSettings)
        {
            var settings = new VisualEditorSettings();

            _getSettingQueryHelper.SetSettingProperty(settings, s => s.VisualEditorDeviceView, allSettings);

            return(settings);
        }
Example #4
0
        private GeneralSiteSettings MapSettings(Dictionary <string, string> allSettings)
        {
            var settings = new GeneralSiteSettings();

            _getSettingQueryHelper.SetSettingProperty(settings, s => s.ApplicationName, allSettings);
            settings.AllowAutomaticUpdates = !_autoUpdateService.IsLocked();
            return(settings);
        }
Example #5
0
        private async Task <GeneralSiteSettings> MapSettingsAsync(Dictionary <string, string> allSettings)
        {
            var settings = new GeneralSiteSettings();

            _getSettingQueryHelper.SetSettingProperty(settings, s => s.ApplicationName, allSettings);

            var isLocked = await _autoUpdateService.IsLockedAsync();

            settings.AllowAutomaticUpdates = !isLocked;

            return(settings);
        }