示例#1
0
 private static RepoDistSettings CreateLocal(GitModule module, RepoDistSettings?lowerPriority,
                                             SettingLevel settingLevel, bool allowCache = true)
 {
     return(new RepoDistSettings(lowerPriority,
                                 GitExtSettingsCache.Create(Path.Combine(module.GitCommonDirectory, AppSettings.SettingsFileName), allowCache),
                                 settingLevel));
 }
示例#2
0
 public RepoDistSettings(RepoDistSettings?lowerPriority, GitExtSettingsCache settingsCache, SettingLevel settingLevel)
     : base(lowerPriority, settingsCache)
 {
     BuildServer  = new BuildServer(this);
     Detailed     = new DetailedGroup(this);
     SettingLevel = settingLevel;
 }
        private void SetCurrentSettings(RepoDistSettings settings)
        {
            if (CurrentSettings is not null)
            {
                SaveSettings();
            }

            CurrentSettings = settings;

            LoadSettings();
        }
示例#4
0
 private static RepoDistSettings CreateDistributed(GitModule module, RepoDistSettings?lowerPriority, bool allowCache = true)
 {
     return(new RepoDistSettings(lowerPriority,
                                 GitExtSettingsCache.Create(Path.Combine(module.WorkingDir, AppSettings.SettingsFileName), allowCache),
                                 SettingLevel.Distributed));
 }
示例#5
0
 public RepoDistSettings(RepoDistSettings?lowerPriority, GitExtSettingsCache settingsCache, SettingLevel settingLevel)
     : base(lowerPriority, settingsCache)
 {
     SettingLevel = settingLevel;
 }
        protected override void Init(ISettingsPageHost pageHost)
        {
            base.Init(pageHost);

            CurrentSettings = RepoDistSettingsSet?.EffectiveSettings;
        }