예제 #1
0
        public SingleIndexConfiguration(IndexConfiguration clientConfiguration, RavenConfiguration databaseConfiguration)
            : base(() => databaseConfiguration.DatabaseName, null, null)
        {
            _databaseConfiguration = databaseConfiguration;

            Initialize(key => clientConfiguration.GetValue(key) ?? databaseConfiguration.GetSetting(key), throwIfThereIsNoSetMethod: false);

            Validate();
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }