public CommonLogic(GitModule module) { Requires.NotNull(module, nameof(module)); Module = module; var repoDistGlobalSettings = RepoDistSettings.CreateGlobal(false); var repoDistPulledSettings = RepoDistSettings.CreateDistributed(module, false); var repoDistLocalSettings = RepoDistSettings.CreateLocal(module, false); var repoDistEffectiveSettings = new RepoDistSettings( new RepoDistSettings(repoDistGlobalSettings, repoDistPulledSettings.SettingsCache, SettingLevel.Distributed), repoDistLocalSettings.SettingsCache, SettingLevel.Effective); var configFileGlobalSettings = ConfigFileSettings.CreateGlobal(false); var configFileLocalSettings = ConfigFileSettings.CreateLocal(module, false); var configFileEffectiveSettings = new ConfigFileSettings( configFileGlobalSettings, configFileLocalSettings.SettingsCache, SettingLevel.Effective); RepoDistSettingsSet = new RepoDistSettingsSet( repoDistEffectiveSettings, repoDistLocalSettings, repoDistPulledSettings, repoDistGlobalSettings); ConfigFileSettingsSet = new ConfigFileSettingsSet( configFileEffectiveSettings, configFileLocalSettings, configFileGlobalSettings); }
public CommonLogic(GitModule aModule) { Module = aModule; if (aModule != null) { var repoDistGlobalSettings = RepoDistSettings.CreateGlobal(false); var repoDistPulledSettings = RepoDistSettings.CreateDistributed(Module, false); var repoDistLocalSettings = RepoDistSettings.CreateLocal(Module, false); var repoDistEffectiveSettings = new RepoDistSettings( new RepoDistSettings(repoDistGlobalSettings, repoDistPulledSettings.SettingsCache), repoDistLocalSettings.SettingsCache); var configFileGlobalSettings = ConfigFileSettings.CreateGlobal(false); var configFileLocalSettings = ConfigFileSettings.CreateLocal(Module, false); var configFileEffectiveSettings = new ConfigFileSettings(configFileGlobalSettings, configFileLocalSettings.SettingsCache); RepoDistSettingsSet = new RepoDistSettingsSet( repoDistEffectiveSettings, repoDistLocalSettings, repoDistPulledSettings, repoDistGlobalSettings); ConfigFileSettingsSet = new ConfigFileSettingsSet( configFileEffectiveSettings, configFileLocalSettings, configFileGlobalSettings); } }
public CommonLogic([CanBeNull] VsrModule module) { Module = module; if (module != null) { var repoDistGlobalSettings = RepoDistSettings.CreateGlobal(false); var repoDistPulledSettings = RepoDistSettings.CreateDistributed(Module, false); var repoDistLocalSettings = RepoDistSettings.CreateLocal(Module, false); var repoDistEffectiveSettings = new RepoDistSettings( new RepoDistSettings(repoDistGlobalSettings, repoDistPulledSettings.SettingsCache, SettingLevel.Distributed), repoDistLocalSettings.SettingsCache, SettingLevel.Effective); var configFileGlobalSettings = ConfigFileSettings.CreateGlobal(false); var configFileLocalSettings = ConfigFileSettings.CreateLocal(Module, false); var configFileEffectiveSettings = new ConfigFileSettings( configFileGlobalSettings, configFileLocalSettings.SettingsCache, SettingLevel.Effective); RepoDistSettingsSet = new RepoDistSettingsSet( repoDistEffectiveSettings, repoDistLocalSettings, repoDistPulledSettings, repoDistGlobalSettings); ConfigFileSettingsSet = new ConfigFileSettingsSet( configFileEffectiveSettings, configFileLocalSettings, configFileGlobalSettings); } }