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)); }
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(); }
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)); }
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; }