public SingleIndexConfiguration(IndexConfiguration clientConfiguration, RavenConfiguration databaseConfiguration) : base(() => databaseConfiguration.DatabaseName, null, null) { _databaseConfiguration = databaseConfiguration; Initialize(key => clientConfiguration.GetValue(key) ?? databaseConfiguration.GetSetting(key), throwIfThereIsNoSetMethod: false); Validate(); }
public SingleIndexConfiguration(IndexConfiguration clientConfiguration, RavenConfiguration databaseConfiguration) : base(databaseConfiguration) { _databaseConfiguration = databaseConfiguration; Initialize( key => new SettingValue(clientConfiguration.GetValue(key) ?? databaseConfiguration.GetSetting(key), databaseConfiguration.GetServerWideSetting(key)), databaseConfiguration.GetServerWideSetting(RavenConfiguration.GetKey(x => x.Core.DataDirectory)), databaseConfiguration.ResourceType, databaseConfiguration.ResourceName, throwIfThereIsNoSetMethod: false); }
public static string[] Process(string[] configurationArgs, RavenConfiguration configBeforeRestart, RavenConfiguration currentConfiguration) { var result = configurationArgs; result = UpdateServerUrlCommandLineArgAfterSetupIfNecessary(result, configBeforeRestart.Core.ServerUrls, currentConfiguration.GetSetting(RavenConfiguration.GetKey(x => x.Core.ServerUrls))); result = FilterOutSetupModeArg(result); result = FilterOutUnsecuredAccessAllowedIfNeeded(result); return(result); }