* Cleanup and CCC (Code Convention Conformance)

0.6.5-rc1
lbsa71 2009-03-10 19:55:59 +00:00
parent dd28d6ceeb
commit a8ae02df4f
1 changed files with 21 additions and 21 deletions

View File

@ -26,24 +26,15 @@
*/ */
using System; using System;
using System.Collections.Generic;
using System.Reflection; using System.Reflection;
using System.Threading;
using log4net; using log4net;
using OpenSim.Framework; using OpenSim.Framework;
using OpenSim.Framework.RegionLoader.Filesystem;
using OpenSim.Framework.RegionLoader.Web;
using OpenSim.Region.CoreModules.Agent.AssetTransaction;
using OpenSim.Region.CoreModules.Avatar.InstantMessage;
using OpenSim.Region.CoreModules.Scripting.DynamicTexture;
using OpenSim.Region.CoreModules.Scripting.LoadImageURL;
using OpenSim.Region.CoreModules.Scripting.XMLRPC;
using OpenSim.Framework.Communications; using OpenSim.Framework.Communications;
using OpenSim.Framework.Communications.Cache; using OpenSim.Framework.Communications.Cache;
using OpenSim.Framework.Servers;
using OpenSim.Region.Communications.Hypergrid; using OpenSim.Region.Communications.Hypergrid;
using OpenSim.Region.Communications.Local; using OpenSim.Region.Communications.Local;
using OpenSim.Region.Communications.OGS1; using OpenSim.Region.Communications.OGS1;
using OpenSim.Framework.Servers;
namespace OpenSim.ApplicationPlugins.CreateCommsManager namespace OpenSim.ApplicationPlugins.CreateCommsManager
{ {
@ -54,11 +45,18 @@ namespace OpenSim.ApplicationPlugins.CreateCommsManager
#region IApplicationPlugin Members #region IApplicationPlugin Members
// TODO: required by IPlugin, but likely not at all right // TODO: required by IPlugin, but likely not at all right
string m_name = "CreateCommsManagerPlugin"; private string m_name = "CreateCommsManagerPlugin";
string m_version = "0.0"; private string m_version = "0.0";
public string Version { get { return m_version; } } public string Version
public string Name { get { return m_name; } } {
get { return m_version; }
}
public string Name
{
get { return m_name; }
}
protected OpenSimBase m_openSim; protected OpenSimBase m_openSim;
@ -133,7 +131,7 @@ namespace OpenSim.ApplicationPlugins.CreateCommsManager
HGOpenSimNode hgNode = null; HGOpenSimNode hgNode = null;
try try
{ {
hgNode = (HGOpenSimNode)openSim; hgNode = (HGOpenSimNode) openSim;
} }
catch (Exception e) catch (Exception e)
{ {
@ -178,12 +176,14 @@ namespace OpenSim.ApplicationPlugins.CreateCommsManager
protected virtual void InitialiseStandaloneServices(LibraryRootFolder libraryRootFolder) protected virtual void InitialiseStandaloneServices(LibraryRootFolder libraryRootFolder)
{ {
LocalInventoryService inventoryService = new LocalInventoryService(); LocalInventoryService inventoryService = new LocalInventoryService();
inventoryService.AddPlugin(m_openSim.ConfigurationSettings.StandaloneInventoryPlugin, m_openSim.ConfigurationSettings.StandaloneInventorySource); inventoryService.AddPlugin(m_openSim.ConfigurationSettings.StandaloneInventoryPlugin,
m_openSim.ConfigurationSettings.StandaloneInventorySource);
LocalUserServices userService = LocalUserServices userService =
new LocalUserServices( new LocalUserServices(
m_openSim.NetServersInfo.DefaultHomeLocX, m_openSim.NetServersInfo.DefaultHomeLocY, inventoryService); m_openSim.NetServersInfo.DefaultHomeLocX, m_openSim.NetServersInfo.DefaultHomeLocY, inventoryService);
userService.AddPlugin(m_openSim.ConfigurationSettings.StandaloneUserPlugin, m_openSim.ConfigurationSettings.StandaloneUserSource); userService.AddPlugin(m_openSim.ConfigurationSettings.StandaloneUserPlugin,
m_openSim.ConfigurationSettings.StandaloneUserSource);
LocalBackEndServices backendService = new LocalBackEndServices(); LocalBackEndServices backendService = new LocalBackEndServices();
@ -236,7 +236,7 @@ namespace OpenSim.ApplicationPlugins.CreateCommsManager
{ {
m_commsManager = new HGCommunicationsGridMode(m_openSim.NetServersInfo, m_httpServer, m_openSim.AssetCache, m_openSim.SceneManager, libraryRootFolder); m_commsManager = new HGCommunicationsGridMode(m_openSim.NetServersInfo, m_httpServer, m_openSim.AssetCache, m_openSim.SceneManager, libraryRootFolder);
HGServices = ((HGCommunicationsGridMode)m_commsManager).HGServices; HGServices = ((HGCommunicationsGridMode) m_commsManager).HGServices;
m_httpServer.AddStreamHandler(new OpenSim.SimStatusHandler()); m_httpServer.AddStreamHandler(new OpenSim.SimStatusHandler());
} }