aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/RegionLoader
diff options
context:
space:
mode:
authorAdam Frisby2008-04-21 07:09:17 +0000
committerAdam Frisby2008-04-21 07:09:17 +0000
commitfef3b3689492dea63693c964bcdbec9f5137eb5e (patch)
tree7791eef001d85d3e1de863a68f26ff9434d062ca /OpenSim/Framework/RegionLoader
parent* Terrain Module code has been reformatted to comply with guidelines. (diff)
downloadopensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.zip
opensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.gz
opensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.bz2
opensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.xz
* Optimised using statements and namespace references across entire project (this took a while to run).
Diffstat (limited to 'OpenSim/Framework/RegionLoader')
-rw-r--r--OpenSim/Framework/RegionLoader/Filesystem/RegionLoaderFileSystem.cs3
-rw-r--r--OpenSim/Framework/RegionLoader/Web/RegionLoaderWebServer.cs12
2 files changed, 9 insertions, 6 deletions
diff --git a/OpenSim/Framework/RegionLoader/Filesystem/RegionLoaderFileSystem.cs b/OpenSim/Framework/RegionLoader/Filesystem/RegionLoaderFileSystem.cs
index ad8b4a0..cfaaf02 100644
--- a/OpenSim/Framework/RegionLoader/Filesystem/RegionLoaderFileSystem.cs
+++ b/OpenSim/Framework/RegionLoader/Filesystem/RegionLoaderFileSystem.cs
@@ -25,6 +25,7 @@
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28using System;
28using System.IO; 29using System.IO;
29using Nini.Config; 30using Nini.Config;
30 31
@@ -48,7 +49,7 @@ namespace OpenSim.Framework.RegionLoader.Filesystem
48 IniConfig startupConfig = (IniConfig)m_configSouce.Configs["Startup"]; 49 IniConfig startupConfig = (IniConfig)m_configSouce.Configs["Startup"];
49 regionConfigPath = startupConfig.GetString("regionload_regionsdir", regionConfigPath).Trim(); 50 regionConfigPath = startupConfig.GetString("regionload_regionsdir", regionConfigPath).Trim();
50 } 51 }
51 catch (System.Exception) 52 catch (Exception)
52 { 53 {
53 // No INI setting recorded. 54 // No INI setting recorded.
54 } 55 }
diff --git a/OpenSim/Framework/RegionLoader/Web/RegionLoaderWebServer.cs b/OpenSim/Framework/RegionLoader/Web/RegionLoaderWebServer.cs
index 098e305..17077e7 100644
--- a/OpenSim/Framework/RegionLoader/Web/RegionLoaderWebServer.cs
+++ b/OpenSim/Framework/RegionLoader/Web/RegionLoaderWebServer.cs
@@ -25,17 +25,19 @@
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28using System;
28using System.IO; 29using System.IO;
29using System.Net; 30using System.Net;
31using System.Reflection;
30using System.Xml; 32using System.Xml;
33using log4net;
31using Nini.Config; 34using Nini.Config;
32using OpenSim.Framework.Console;
33 35
34namespace OpenSim.Framework.RegionLoader.Web 36namespace OpenSim.Framework.RegionLoader.Web
35{ 37{
36 public class RegionLoaderWebServer : IRegionLoader 38 public class RegionLoaderWebServer : IRegionLoader
37 { 39 {
38 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); 40 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
39 41
40 private IniConfigSource m_configSouce; 42 private IniConfigSource m_configSouce;
41 43
@@ -54,8 +56,8 @@ namespace OpenSim.Framework.RegionLoader.Web
54 else 56 else
55 { 57 {
56 IniConfig startupConfig = (IniConfig) m_configSouce.Configs["Startup"]; 58 IniConfig startupConfig = (IniConfig) m_configSouce.Configs["Startup"];
57 string url = startupConfig.GetString("regionload_webserver_url", System.String.Empty).Trim(); 59 string url = startupConfig.GetString("regionload_webserver_url", String.Empty).Trim();
58 if (url == System.String.Empty) 60 if (url == String.Empty)
59 { 61 {
60 m_log.Error("[WEBLOADER]: Unable to load webserver URL - URL was empty."); 62 m_log.Error("[WEBLOADER]: Unable to load webserver URL - URL was empty.");
61 return null; 63 return null;
@@ -68,7 +70,7 @@ namespace OpenSim.Framework.RegionLoader.Web
68 HttpWebResponse webResponse = (HttpWebResponse) webRequest.GetResponse(); 70 HttpWebResponse webResponse = (HttpWebResponse) webRequest.GetResponse();
69 m_log.Debug("[WEBLOADER]: Downloading Region Information From Remote Server..."); 71 m_log.Debug("[WEBLOADER]: Downloading Region Information From Remote Server...");
70 StreamReader reader = new StreamReader(webResponse.GetResponseStream()); 72 StreamReader reader = new StreamReader(webResponse.GetResponseStream());
71 string xmlSource = System.String.Empty; 73 string xmlSource = String.Empty;
72 string tempStr = reader.ReadLine(); 74 string tempStr = reader.ReadLine();
73 while (tempStr != null) 75 while (tempStr != null)
74 { 76 {