public SingleIndexConfiguration(IndexConfiguration clientConfiguration, RavenConfiguration databaseConfiguration) : base(databaseConfiguration) { _databaseConfiguration = databaseConfiguration; Initialize( key => new SettingValue( clientConfiguration.GetValue(key) ?? databaseConfiguration.GetSetting(key), clientConfiguration.GetValue(key) != null || databaseConfiguration.DoesKeyExistInSettings(key), databaseConfiguration.GetServerWideSetting(key), databaseConfiguration.DoesKeyExistInSettings(key, true)), databaseConfiguration.GetServerWideSetting(RavenConfiguration.GetKey(x => x.Core.DataDirectory)), databaseConfiguration.ResourceType, databaseConfiguration.ResourceName, throwIfThereIsNoSetMethod: false); }
public SingleIndexConfiguration(IndexConfiguration clientConfiguration, RavenConfiguration databaseConfiguration) : base(() => databaseConfiguration.DatabaseName, null, null) { _databaseConfiguration = databaseConfiguration; Initialize(key => clientConfiguration.GetValue(key) ?? databaseConfiguration.GetSetting(key), throwIfThereIsNoSetMethod: false); Validate(); }