diff options
author | Sean Dague | 2007-07-30 20:11:40 +0000 |
---|---|---|
committer | Sean Dague | 2007-07-30 20:11:40 +0000 |
commit | 74bb5282a09ec095a7ff810c62f79cc64e187686 (patch) | |
tree | e0a9b703bfcbbab59b04351dd71508fa913e741a /OpenSim/Framework/Configuration/HTTP/RemoteConfigSettings.cs | |
parent | added OnDisconnectUser event to required classes (diff) | |
download | opensim-SC_OLD-74bb5282a09ec095a7ff810c62f79cc64e187686.zip opensim-SC_OLD-74bb5282a09ec095a7ff810c62f79cc64e187686.tar.gz opensim-SC_OLD-74bb5282a09ec095a7ff810c62f79cc64e187686.tar.bz2 opensim-SC_OLD-74bb5282a09ec095a7ff810c62f79cc64e187686.tar.xz |
mass update of files to have native line endings
Diffstat (limited to 'OpenSim/Framework/Configuration/HTTP/RemoteConfigSettings.cs')
-rw-r--r-- | OpenSim/Framework/Configuration/HTTP/RemoteConfigSettings.cs | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/OpenSim/Framework/Configuration/HTTP/RemoteConfigSettings.cs b/OpenSim/Framework/Configuration/HTTP/RemoteConfigSettings.cs index e3cfac7..77719ee 100644 --- a/OpenSim/Framework/Configuration/HTTP/RemoteConfigSettings.cs +++ b/OpenSim/Framework/Configuration/HTTP/RemoteConfigSettings.cs | |||
@@ -1,34 +1,34 @@ | |||
1 | using System; | 1 | using System; |
2 | using System.Collections.Generic; | 2 | using System.Collections.Generic; |
3 | using System.Text; | 3 | using System.Text; |
4 | 4 | ||
5 | using OpenSim.Framework.Configuration; | 5 | using OpenSim.Framework.Configuration; |
6 | 6 | ||
7 | namespace OpenSim.Framework.Configuration.HTTP | 7 | namespace OpenSim.Framework.Configuration.HTTP |
8 | { | 8 | { |
9 | public class RemoteConfigSettings | 9 | public class RemoteConfigSettings |
10 | { | 10 | { |
11 | private ConfigurationMember configMember; | 11 | private ConfigurationMember configMember; |
12 | 12 | ||
13 | public string baseConfigURL = ""; | 13 | public string baseConfigURL = ""; |
14 | public RemoteConfigSettings(string filename) | 14 | public RemoteConfigSettings(string filename) |
15 | { | 15 | { |
16 | configMember = new ConfigurationMember(filename, "REMOTE CONFIG SETTINGS", loadConfigurationOptions, handleIncomingConfiguration); | 16 | configMember = new ConfigurationMember(filename, "REMOTE CONFIG SETTINGS", loadConfigurationOptions, handleIncomingConfiguration); |
17 | configMember.forceConfigurationPluginLibrary("OpenSim.Framework.Configuration.XML.dll"); | 17 | configMember.forceConfigurationPluginLibrary("OpenSim.Framework.Configuration.XML.dll"); |
18 | configMember.performConfigurationRetrieve(); | 18 | configMember.performConfigurationRetrieve(); |
19 | } | 19 | } |
20 | 20 | ||
21 | public void loadConfigurationOptions() | 21 | public void loadConfigurationOptions() |
22 | { | 22 | { |
23 | configMember.addConfigurationOption("base_config_url", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "URL Containing Configuration Files", "http://localhost/", false); | 23 | configMember.addConfigurationOption("base_config_url", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "URL Containing Configuration Files", "http://localhost/", false); |
24 | } | 24 | } |
25 | public bool handleIncomingConfiguration(string configuration_key, object configuration_result) | 25 | public bool handleIncomingConfiguration(string configuration_key, object configuration_result) |
26 | { | 26 | { |
27 | if (configuration_key == "base_config_url") | 27 | if (configuration_key == "base_config_url") |
28 | { | 28 | { |
29 | baseConfigURL = (string)configuration_result; | 29 | baseConfigURL = (string)configuration_result; |
30 | } | 30 | } |
31 | return true; | 31 | return true; |
32 | } | 32 | } |
33 | } | 33 | } |
34 | } | 34 | } |