From fef3b3689492dea63693c964bcdbec9f5137eb5e Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Mon, 21 Apr 2008 07:09:17 +0000 Subject: * Optimised using statements and namespace references across entire project (this took a while to run). --- .../LoadRegions/LoadRegionsPlugin.cs | 10 +- .../RemoteController/RemoteAdminPlugin.cs | 7 +- OpenSim/Data/AssetDataBase.cs | 3 - OpenSim/Data/Base/BaseRowMapper.cs | 2 - OpenSim/Data/Base/BaseSchema.cs | 1 - OpenSim/Data/Base/BaseTableMapper.cs | 1 - OpenSim/Data/DB4o/DB4oUserData.cs | 4 +- OpenSim/Data/DataStoreBase.cs | 4 - OpenSim/Data/GridDataBase.cs | 3 - OpenSim/Data/IGridData.cs | 1 - OpenSim/Data/InventoryDataBase.cs | 4 - OpenSim/Data/MSSQL/MSSQLAssetData.cs | 5 +- OpenSim/Data/MSSQL/MSSQLDataStore.cs | 7 +- OpenSim/Data/MSSQL/MSSQLGridData.cs | 5 +- OpenSim/Data/MSSQL/MSSQLInventoryData.cs | 5 +- OpenSim/Data/MSSQL/MSSQLManager.cs | 4 +- OpenSim/Data/MSSQL/MSSQLUserData.cs | 13 +- OpenSim/Data/MSSQLMapper/MSSQLDatabaseMapper.cs | 1 - OpenSim/Data/MySQL/MySQLAssetData.cs | 5 +- OpenSim/Data/MySQL/MySQLDataStore.cs | 9 +- OpenSim/Data/MySQL/MySQLGridData.cs | 6 +- OpenSim/Data/MySQL/MySQLInventoryData.cs | 7 +- OpenSim/Data/MySQL/MySQLManager.cs | 5 +- OpenSim/Data/MySQL/MySQLUserData.cs | 13 +- OpenSim/Data/MySQLMapper/MySQLDataReader.cs | 4 - OpenSim/Data/MySQLMapper/MySQLDatabaseMapper.cs | 1 - OpenSim/Data/NHibernate/NHibernateAssetData.cs | 14 +- OpenSim/Data/NHibernate/NHibernateInventoryData.cs | 18 +- OpenSim/Data/NHibernate/NHibernateManager.cs | 9 +- OpenSim/Data/NHibernate/NHibernateUserData.cs | 16 +- OpenSim/Data/NHibernate/Types/LLUUIDUserType.cs | 6 +- OpenSim/Data/OpenSimDataReader.cs | 1 - OpenSim/Data/OpenSimDatabaseConnector.cs | 2 - OpenSim/Data/OpenSimObjectFieldMapper.cs | 2 - OpenSim/Data/OpenSimTableMapper.cs | 2 - OpenSim/Data/PrimitiveBaseShapeTableMapper.cs | 4 +- OpenSim/Data/ReservationData.cs | 9 +- OpenSim/Data/SQLite/SQLiteAssetData.cs | 4 +- OpenSim/Data/SQLite/SQLiteInventoryStore.cs | 4 +- OpenSim/Data/SQLite/SQLiteManager.cs | 6 +- OpenSim/Data/SQLite/SQLiteRegionData.cs | 5 +- OpenSim/Data/SQLite/SQLiteUserData.cs | 17 +- OpenSim/Data/UserDataBase.cs | 2 +- OpenSim/Framework/AgentInventory.cs | 5 +- OpenSim/Framework/AssetConfig.cs | 1 - .../Filesystem/AssetLoaderFileSystem.cs | 8 +- OpenSim/Framework/AvatarPickerAvatar.cs | 3 - OpenSim/Framework/AvatarWearable.cs | 6 +- OpenSim/Framework/ClientManager.cs | 8 +- OpenSim/Framework/Communications/CAPSService.cs | 3 +- .../Framework/Communications/Cache/AssetCache.cs | 10 +- .../Framework/Communications/Cache/AssetServer.cs | 5 +- .../Communications/Cache/AssetServerBase.cs | 10 +- .../Communications/Cache/CachedUserInfo.cs | 7 +- .../Communications/Cache/GridAssetClient.cs | 5 +- .../Communications/Cache/LibraryRootFolder.cs | 13 +- .../Communications/Cache/SQLAssetServer.cs | 4 +- .../Cache/UserProfileCacheService.cs | 10 +- .../Framework/Communications/Capabilities/Caps.cs | 9 +- .../Communications/Capabilities/CapsHandlers.cs | 6 - .../Capabilities/LLSDAssetUploadComplete.cs | 2 +- .../Capabilities/LLSDAssetUploadRequest.cs | 9 +- .../Capabilities/LLSDAssetUploadResponse.cs | 6 +- .../Capabilities/LLSDInventoryItem.cs | 3 - .../Capabilities/LLSDParcelVoiceInfoResponse.cs | 1 - .../Capabilities/LLSDVoiceAccountResponse.cs | 2 - .../Communications/CommunicationsManager.cs | 4 +- .../Framework/Communications/IInventoryServices.cs | 2 - .../Communications/InventoryServiceBase.cs | 6 +- .../Communications/Limit/IRequestLimitStrategy.cs | 2 - .../Communications/Limit/NullLimitStrategy.cs | 2 - .../Communications/Limit/RepeatLimitStrategy.cs | 1 - .../Communications/Limit/TimeLimitStrategy.cs | 2 +- OpenSim/Framework/Communications/LoginResponse.cs | 5 +- OpenSim/Framework/Communications/LoginService.cs | 11 +- .../Communications/RestClient/RestClient.cs | 5 +- .../Framework/Communications/UserManagerBase.cs | 6 +- OpenSim/Framework/Communications/XMPP/Stanza.cs | 2 - .../Framework/Communications/XMPP/XMPPParser.cs | 6 - .../Configuration/HTTP/HTTPConfiguration.cs | 8 +- .../Configuration/HTTP/RemoteConfigSettings.cs | 4 +- OpenSim/Framework/ConfigurationMember.cs | 3 +- OpenSim/Framework/Console/ConsoleBase.cs | 5 +- OpenSim/Framework/Console/OpenSimAppender.cs | 7 +- OpenSim/Framework/Constants.cs | 4 - OpenSim/Framework/EstateSettings.cs | 5 +- OpenSim/Framework/FriendListItem.cs | 2 - OpenSim/Framework/GridConfig.cs | 1 - OpenSim/Framework/GridInstantMessage.cs | 1 - OpenSim/Framework/IAssetServer.cs | 2 - OpenSim/Framework/IInventoryData.cs | 2 - OpenSim/Framework/InventoryCollection.cs | 2 - OpenSim/Framework/InventoryConfig.cs | 12 +- OpenSim/Framework/InventoryFolderBase.cs | 3 - OpenSim/Framework/InventoryItemBase.cs | 3 - OpenSim/Framework/JId.cs | 2 - OpenSim/Framework/LandData.cs | 2 +- OpenSim/Framework/Login.cs | 3 +- OpenSim/Framework/MessageServerConfig.cs | 5 +- OpenSim/Framework/NetworkServersInfo.cs | 2 +- OpenSim/Framework/PacketPool.cs | 15 +- OpenSim/Framework/RegionCommsListener.cs | 2 +- OpenSim/Framework/RegionInfo.cs | 1 - .../Filesystem/RegionLoaderFileSystem.cs | 3 +- .../RegionLoader/Web/RegionLoaderWebServer.cs | 12 +- OpenSim/Framework/RegionUpData.cs | 2 - OpenSim/Framework/SerializableInventory.cs | 2 - OpenSim/Framework/Servers/BaseHttpServer.cs | 14 +- OpenSim/Framework/Servers/GenericHTTPMethod.cs | 1 - OpenSim/Framework/Servers/MessageServerInfo.cs | 2 - OpenSim/Framework/Statistics/AssetStatsReporter.cs | 1 - .../Statistics/Interfaces/IPullStatsProvider.cs | 2 - .../Framework/Statistics/SimExtraStatsReporter.cs | 5 +- OpenSim/Framework/Statistics/UserStatsReporter.cs | 1 - OpenSim/Framework/TaskInventoryItem.cs | 7 +- OpenSim/Framework/ThreadTracker.cs | 11 +- OpenSim/Framework/UserConfig.cs | 1 - OpenSim/Framework/Util.cs | 16 +- OpenSim/Grid/AssetServer/Main.cs | 6 +- OpenSim/Grid/AssetServer/RestService.cs | 7 +- OpenSim/Grid/GridServer/GridManager.cs | 10 +- OpenSim/Grid/GridServer/GridServerBase.cs | 7 +- OpenSim/Grid/GridServer/Program.cs | 6 +- .../Grid/InventoryServer/GridInventoryService.cs | 10 +- OpenSim/Grid/InventoryServer/InventoryManager.cs | 4 +- OpenSim/Grid/InventoryServer/Main.cs | 7 +- OpenSim/Grid/MessagingServer/Main.cs | 9 +- OpenSim/Grid/MessagingServer/MessageService.cs | 14 +- OpenSim/Grid/MessagingServer/PresenceInformer.cs | 13 +- OpenSim/Grid/MessagingServer/UserPresenceData.cs | 3 +- OpenSim/Grid/MessagingServer/WorkUnitBase.cs | 4 - .../Grid/MessagingServer/WorkUnitPresenceUpdate.cs | 4 - OpenSim/Grid/MessagingServer/XMPPHTTPService.cs | 11 +- OpenSim/Grid/ScriptServer/Application.cs | 3 +- OpenSim/Grid/ScriptServer/FakeScene.cs | 3 - OpenSim/Grid/ScriptServer/RemotingObject.cs | 3 - OpenSim/Grid/ScriptServer/RemotingServer.cs | 4 - .../ScriptServer/Region/RegionConnectionManager.cs | 2 - .../ScriptServer/ScriptServer/RegionCommManager.cs | 4 +- .../ScriptServer/ScriptEngineLoader.cs | 4 +- .../ScriptServer/ScriptEnginesManager.cs | 1 - OpenSim/Grid/ScriptServer/ScriptServerMain.cs | 10 +- OpenSim/Grid/UserServer/Main.cs | 10 +- OpenSim/Grid/UserServer/MessageServersConnector.cs | 15 +- OpenSim/Grid/UserServer/UserLoginService.cs | 11 +- OpenSim/Grid/UserServer/UserManager.cs | 17 +- OpenSim/Region/Application/Application.cs | 4 +- OpenSim/Region/Application/OpenSimMain.cs | 17 +- OpenSim/Region/ClientStack/ClientView.cs | 9 +- OpenSim/Region/ClientStack/PacketServer.cs | 1 - .../Region/ClientStack/RegionApplicationBase.cs | 7 +- OpenSim/Region/ClientStack/UDPServer.cs | 6 +- .../Communications/Local/LocalBackEndServices.cs | 10 +- .../Communications/Local/LocalInventoryService.cs | 6 +- .../Communications/Local/LocalLoginService.cs | 11 +- .../Communications/Local/LocalUserServices.cs | 1 - .../Region/Communications/OGS1/OGS1GridServices.cs | 8 +- .../Communications/OGS1/OGS1InterSimComms.cs | 4 +- .../Communications/OGS1/OGS1InventoryService.cs | 18 +- .../Region/Communications/OGS1/OGS1UserServices.cs | 7 +- OpenSim/Region/DataSnapshot/DataRequestHandler.cs | 9 +- OpenSim/Region/DataSnapshot/DataSnapshotManager.cs | 24 +-- OpenSim/Region/DataSnapshot/EstateSnapshot.cs | 9 +- .../Interfaces/IDataSnapshotProvider.cs | 4 - OpenSim/Region/DataSnapshot/LandSnapshot.cs | 18 +- OpenSim/Region/DataSnapshot/ObjectSnapshot.cs | 10 +- OpenSim/Region/Environment/EstateManager.cs | 6 +- OpenSim/Region/Environment/Interfaces/ICommand.cs | 6 +- .../Environment/Interfaces/ICommandableModule.cs | 6 - .../Region/Environment/Interfaces/ICommander.cs | 4 - .../Region/Environment/Interfaces/ILandChannel.cs | 5 +- .../Region/Environment/Interfaces/ILandObject.cs | 6 +- .../Environment/Interfaces/ITextureSender.cs | 2 - OpenSim/Region/Environment/Interfaces/IXMLRPC.cs | 2 - OpenSim/Region/Environment/ModuleLoader.cs | 4 +- .../Modules/AgentAssetTransactionModule.cs | 6 +- .../Environment/Modules/AssetDownloadModule.cs | 2 - .../Environment/Modules/AsteriskVoiceModule.cs | 9 +- .../Environment/Modules/AvatarProfilesModule.cs | 9 +- .../Environment/Modules/BetaGridLikeMoneyModule.cs | 17 +- OpenSim/Region/Environment/Modules/ChatModule.cs | 14 +- .../Environment/Modules/CommanderTestModule.cs | 5 +- .../Environment/Modules/DynamicTextureModule.cs | 7 +- .../ExportSerialiser/ExportSerialisationModule.cs | 9 +- .../Modules/ExportSerialiser/IFileSerialiser.cs | 4 - .../Modules/ExportSerialiser/IRegionSerialiser.cs | 6 +- .../Modules/ExportSerialiser/SerialiseObjects.cs | 7 +- .../Modules/ExportSerialiser/SerialiseTerrain.cs | 3 +- .../Region/Environment/Modules/FriendsModule.cs | 4 +- OpenSim/Region/Environment/Modules/GroupsModule.cs | 4 +- .../Region/Environment/Modules/InventoryModule.cs | 9 +- .../Modules/LandManagement/LandChannel.cs | 14 +- .../Modules/LandManagement/LandManagementModule.cs | 12 +- .../Modules/LandManagement/LandObject.cs | 9 +- .../Modules/ModuleFramework/Commander.cs | 14 +- .../Environment/Modules/ScriptsHttpRequests.cs | 3 +- .../Environment/Modules/TextureDownloadModule.cs | 2 +- .../Region/Environment/Modules/TextureSender.cs | 8 +- .../Environment/Modules/TreePopulatorModule.cs | 15 +- .../Modules/UserTextureDownloadService.cs | 11 +- .../Environment/Modules/VectorRenderModule.cs | 20 ++- OpenSim/Region/Environment/Modules/VoiceModule.cs | 9 +- .../Region/Environment/Modules/WorldCommModule.cs | 1 - OpenSim/Region/Environment/Modules/XMLRPCModule.cs | 15 +- OpenSim/Region/Environment/PermissionManager.cs | 3 +- .../Region/Environment/Scenes/AvatarAnimations.cs | 2 - .../Region/Environment/Scenes/AvatarAppearance.cs | 8 +- OpenSim/Region/Environment/Scenes/EntityBase.cs | 10 +- OpenSim/Region/Environment/Scenes/InnerScene.cs | 7 +- .../Region/Environment/Scenes/Scene.Inventory.cs | 16 +- .../Environment/Scenes/Scene.PacketHandlers.cs | 2 - OpenSim/Region/Environment/Scenes/Scene.cs | 27 +-- OpenSim/Region/Environment/Scenes/SceneBase.cs | 8 +- .../Scenes/SceneCommunicationService.cs | 7 +- OpenSim/Region/Environment/Scenes/SceneEvents.cs | 8 +- OpenSim/Region/Environment/Scenes/SceneManager.cs | 6 +- .../Scenes/SceneObjectGroup.Inventory.cs | 8 +- .../Region/Environment/Scenes/SceneObjectGroup.cs | 2 - .../Scenes/SceneObjectPart.Inventory.cs | 8 +- .../Region/Environment/Scenes/SceneObjectPart.cs | 12 +- OpenSim/Region/Environment/Scenes/ScenePresence.cs | 20 +-- .../Scenes/Scripting/ScriptEngineInterface.cs | 2 - .../Scenes/Scripting/ScriptEngineLoader.cs | 4 +- OpenSim/Region/Environment/StorageManager.cs | 4 +- .../Region/Environment/Types/BasicQuadTreeNode.cs | 3 +- OpenSim/Region/Environment/Types/UpdateQueue.cs | 11 +- .../SimpleModule/Properties/AssemblyInfo.cs | 1 - .../Region/Examples/SimpleModule/RegionModule.cs | 2 - .../Engines/CSharp/CSharpScriptEngine.cs | 5 +- .../Engines/JScript/JScriptEngine.cs | 5 +- .../Engines/JVMEngine/JVM/Interpreter.Methods.cs | 6 +- .../Region/ExtensionsScriptModule/ScriptInfo.cs | 7 +- .../ExtensionsScriptModule/ScriptInterpretedAPI.cs | 5 +- .../Region/ExtensionsScriptModule/ScriptManager.cs | 5 +- .../Modules/AvatarFactory/AppearanceTableMapper.cs | 63 ++++--- .../Modules/AvatarFactory/AvatarFactoryModule.cs | 4 +- .../AvatarFactory/Properties/AssemblyInfo.cs | 1 - .../SvnSerialiser/Properties/AssemblyInfo.cs | 1 - .../Modules/SvnSerialiser/SvnBackupModule.cs | 35 ++-- .../Region/Physics/BulletXPlugin/BulletXPlugin.cs | 2 - OpenSim/Region/Physics/Manager/CollisionLocker.cs | 1 - .../Region/Physics/Manager/PhysicsPluginManager.cs | 4 +- OpenSim/Region/Physics/Manager/PhysicsScene.cs | 6 +- OpenSim/Region/Physics/Manager/PhysicsSensor.cs | 3 - OpenSim/Region/Physics/Meshing/Meshmerizer.cs | 1 - OpenSim/Region/Physics/Meshing/SimpleHull.cs | 1 - OpenSim/Region/Physics/OdePlugin/ODECharacter.cs | 6 +- OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | 21 ++- OpenSim/Region/Physics/OdePlugin/ODETestClass.cs | 7 +- OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | 16 +- .../Region/ScriptEngine/Common/BuilIn_Commands.cs | 3 - .../Common/BuiltIn_Commands_BaseClass.cs | 183 ++++++++++----------- OpenSim/Region/ScriptEngine/Common/Executor.cs | 1 - OpenSim/Region/ScriptEngine/Common/ExecutorBase.cs | 2 - .../ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 33 ++-- .../Common/LSL_BuiltIn_Commands_Interface.cs | 4 +- OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | 26 +-- .../ScriptEngine/Common/OSSL_BuilIn_Commands.cs | 18 +- .../Common/OSSL_BuilIn_Commands_Interface.cs | 4 - .../Common/ScriptEngineBase/AppDomainManager.cs | 1 - .../Common/ScriptEngineBase/AsyncCommandManager.cs | 19 +-- .../AsyncCommandPlugins/HttpRequest.cs | 8 - .../AsyncCommandPlugins/Listener.cs | 8 - .../AsyncCommandPlugins/SensorRepeat.cs | 7 +- .../ScriptEngineBase/AsyncCommandPlugins/Timer.cs | 6 - .../AsyncCommandPlugins/XmlRequest.cs | 7 - .../Common/ScriptEngineBase/EventManager.cs | 2 +- .../Common/ScriptEngineBase/EventQueueManager.cs | 3 - .../ScriptEngineBase/EventQueueThreadClass.cs | 5 +- .../Common/ScriptEngineBase/MaintenanceThread.cs | 7 +- .../Common/ScriptEngineBase/ScriptEngine.cs | 12 +- .../Common/ScriptEngineBase/ScriptManager.cs | 6 +- .../iScriptEngineFunctionModule.cs | 4 - .../ScriptEngine/Common/ScriptServerInterfaces.cs | 1 - OpenSim/Region/ScriptEngine/Common/TRPC/MyBase.cs | 4 - .../Region/ScriptEngine/Common/TRPC/TCPClient.cs | 2 - .../Region/ScriptEngine/Common/TRPC/TCPCommon.cs | 6 +- .../Region/ScriptEngine/Common/TRPC/TCPServer.cs | 1 - OpenSim/Region/ScriptEngine/Common/TRPC_Remote.cs | 32 ++-- .../DotNetEngine/Compiler/LSL/Compiler.cs | 10 +- .../DotNetEngine/Compiler/LSL/LSL2CSConverter.cs | 22 +-- .../ScriptEngine/DotNetEngine/ScriptEngine.cs | 5 +- .../ScriptEngine/DotNetEngine/ScriptManager.cs | 2 +- .../Region/ScriptEngine/LSOEngine/LSO/Engine.cs | 25 ++- .../LSOEngine/LSO/IL_common_functions.cs | 4 - .../LSOEngine/LSO/LSL_BaseClass_OPCODES.cs | 3 - .../ScriptEngine/LSOEngine/LSO/LSO_Parser.cs | 1 - OpenSim/Region/ScriptEngine/LSOEngine/LSOScript.cs | 4 - .../Region/ScriptEngine/LSOEngine/ScriptEngine.cs | 10 +- .../Region/ScriptEngine/LSOEngine/ScriptManager.cs | 7 +- .../ScriptEngine/RemoteServer/RemoteServer.cs | 13 +- .../ScriptEngine/RemoteServer/ScriptEngine.cs | 7 +- .../OpenSim.DataStore.MSSQL/MSSQLDataStore.cs | 7 +- .../libTerrainBSD/Channel/Editing/Flatten.cs | 2 - OpenSim/TestSuite/BotManager.cs | 13 +- OpenSim/TestSuite/Main.cs | 10 +- OpenSim/TestSuite/PhysicsBot.cs | 15 +- OpenSim/TestSuite/Util.cs | 2 +- OpenSim/Tests/Common/DoubleToleranceConstraint.cs | 2 - OpenSim/Tests/Common/TestHelper.cs | 2 - OpenSim/Tests/OpenSim/Framework/UtilTest.cs | 1 - .../UserServer/Stress/UserServerStressTest.cs | 5 +- OpenSim/Tools/Export/OpenSimExport.cs | 3 +- OpenSim/Tools/pCampBot/BotManager.cs | 13 +- OpenSim/Tools/pCampBot/PhysicsBot.cs | 14 +- OpenSim/Tools/pCampBot/pCampBot.cs | 7 +- 306 files changed, 1003 insertions(+), 1298 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs b/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs index 62cd41d..48e988c 100644 --- a/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs +++ b/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs @@ -25,9 +25,11 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using System.Reflection; +using System.Threading; +using log4net; using Mono.Addins; using OpenSim.Framework; -using OpenSim.Framework.Console; using OpenSim.Framework.RegionLoader.Filesystem; using OpenSim.Framework.RegionLoader.Web; @@ -39,7 +41,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions [Extension("/OpenSim/Startup")] public class LoadRegionsPlugin : IApplicationPlugin { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public void Initialise(OpenSimMain openSim) { @@ -64,7 +66,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions for (int i = 0; i < regionsToLoad.Length; i++) { - m_log.Debug("[LOADREGIONS]: Creating Region: " + regionsToLoad[i].RegionName + " (ThreadID: " + System.Threading.Thread.CurrentThread.ManagedThreadId.ToString() + ")"); + m_log.Debug("[LOADREGIONS]: Creating Region: " + regionsToLoad[i].RegionName + " (ThreadID: " + Thread.CurrentThread.ManagedThreadId.ToString() + ")"); openSim.CreateRegion(regionsToLoad[i], true); } @@ -94,7 +96,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions { if (regionhandle == regionsToLoad[i].RegionHandle) { - m_log.Debug("[LOADREGIONS]: Creating Region: " + regionsToLoad[i].RegionName + " (ThreadID: " + System.Threading.Thread.CurrentThread.ManagedThreadId.ToString() + ")"); + m_log.Debug("[LOADREGIONS]: Creating Region: " + regionsToLoad[i].RegionName + " (ThreadID: " + Thread.CurrentThread.ManagedThreadId.ToString() + ")"); openSim.CreateRegion(regionsToLoad[i], true); } } diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs index 6450ec7..3e0f4f6 100644 --- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs +++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs @@ -27,14 +27,15 @@ using System; using System.Collections; -using System.Net; using System.IO; +using System.Net; +using System.Reflection; using System.Timers; using libsecondlife; +using log4net; using Mono.Addins; using Nwc.XmlRpc; using OpenSim.Framework; -using OpenSim.Framework.Console; using OpenSim.Framework.Servers; using OpenSim.Region.Environment.Scenes; @@ -46,7 +47,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions [Extension("/OpenSim/Startup")] public class RemoteAdminPlugin : IApplicationPlugin { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private OpenSimMain m_app; private BaseHttpServer m_httpd; diff --git a/OpenSim/Data/AssetDataBase.cs b/OpenSim/Data/AssetDataBase.cs index 0a58126..b30ae73 100644 --- a/OpenSim/Data/AssetDataBase.cs +++ b/OpenSim/Data/AssetDataBase.cs @@ -25,9 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; -using System.Text; using libsecondlife; using OpenSim.Framework; diff --git a/OpenSim/Data/Base/BaseRowMapper.cs b/OpenSim/Data/Base/BaseRowMapper.cs index 45af15a..a61ce49d 100644 --- a/OpenSim/Data/Base/BaseRowMapper.cs +++ b/OpenSim/Data/Base/BaseRowMapper.cs @@ -25,8 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using OpenSim.Data.Base; - namespace OpenSim.Data.Base { public abstract class BaseRowMapper diff --git a/OpenSim/Data/Base/BaseSchema.cs b/OpenSim/Data/Base/BaseSchema.cs index f6bea50..656433f 100644 --- a/OpenSim/Data/Base/BaseSchema.cs +++ b/OpenSim/Data/Base/BaseSchema.cs @@ -26,7 +26,6 @@ */ using System.Collections.Generic; -using OpenSim.Data.Base; namespace OpenSim.Data.Base { diff --git a/OpenSim/Data/Base/BaseTableMapper.cs b/OpenSim/Data/Base/BaseTableMapper.cs index d088769..ad60009 100644 --- a/OpenSim/Data/Base/BaseTableMapper.cs +++ b/OpenSim/Data/Base/BaseTableMapper.cs @@ -28,7 +28,6 @@ using System; using System.Data; using System.Data.Common; -using OpenSim.Data.Base; namespace OpenSim.Data.Base { diff --git a/OpenSim/Data/DB4o/DB4oUserData.cs b/OpenSim/Data/DB4o/DB4oUserData.cs index d0108ab..4a2fc9c 100644 --- a/OpenSim/Data/DB4o/DB4oUserData.cs +++ b/OpenSim/Data/DB4o/DB4oUserData.cs @@ -174,10 +174,10 @@ namespace OpenSim.Data.DB4o - public List GeneratePickerResults(LLUUID queryID, string query) + public List GeneratePickerResults(LLUUID queryID, string query) { //Do nothing yet - List returnlist = new List(); + List returnlist = new List(); return returnlist; } diff --git a/OpenSim/Data/DataStoreBase.cs b/OpenSim/Data/DataStoreBase.cs index 607dcd7..e361799 100644 --- a/OpenSim/Data/DataStoreBase.cs +++ b/OpenSim/Data/DataStoreBase.cs @@ -25,10 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; -using System.Text; - namespace OpenSim.Data { public abstract class DataStoreBase diff --git a/OpenSim/Data/GridDataBase.cs b/OpenSim/Data/GridDataBase.cs index 0a90eca..036e2eb 100644 --- a/OpenSim/Data/GridDataBase.cs +++ b/OpenSim/Data/GridDataBase.cs @@ -25,9 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; -using System.Text; using libsecondlife; namespace OpenSim.Data diff --git a/OpenSim/Data/IGridData.cs b/OpenSim/Data/IGridData.cs index c924031..7681516 100644 --- a/OpenSim/Data/IGridData.cs +++ b/OpenSim/Data/IGridData.cs @@ -25,7 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System.Collections.Generic; using libsecondlife; namespace OpenSim.Data diff --git a/OpenSim/Data/InventoryDataBase.cs b/OpenSim/Data/InventoryDataBase.cs index 242d016..0f4799e 100644 --- a/OpenSim/Data/InventoryDataBase.cs +++ b/OpenSim/Data/InventoryDataBase.cs @@ -25,10 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; -using System.Text; - namespace OpenSim.Data { public abstract class InventoryDataBase diff --git a/OpenSim/Data/MSSQL/MSSQLAssetData.cs b/OpenSim/Data/MSSQL/MSSQLAssetData.cs index e68b5c4..2029b80 100644 --- a/OpenSim/Data/MSSQL/MSSQLAssetData.cs +++ b/OpenSim/Data/MSSQL/MSSQLAssetData.cs @@ -29,15 +29,16 @@ using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; +using System.Reflection; using libsecondlife; +using log4net; using OpenSim.Framework; -using OpenSim.Framework.Console; namespace OpenSim.Data.MSSQL { internal class MSSQLAssetData : AssetDataBase { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private MSSQLManager database; diff --git a/OpenSim/Data/MSSQL/MSSQLDataStore.cs b/OpenSim/Data/MSSQL/MSSQLDataStore.cs index 525eeca..e881cf1 100644 --- a/OpenSim/Data/MSSQL/MSSQLDataStore.cs +++ b/OpenSim/Data/MSSQL/MSSQLDataStore.cs @@ -30,20 +30,19 @@ using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.IO; +using System.Reflection; using libsecondlife; +using log4net; using OpenSim.Framework; -using OpenSim.Framework.Console; -using OpenSim.Data; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; -using OpenSim.Data.MSSQL; namespace OpenSim.Data.MSSQL { public class MSSQLDataStore : IRegionDataStore { // private static FileSystemDataStore Instance = new FileSystemDataStore(); - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private const string m_primSelect = "select * from prims"; private const string m_shapeSelect = "select * from primshapes"; diff --git a/OpenSim/Data/MSSQL/MSSQLGridData.cs b/OpenSim/Data/MSSQL/MSSQLGridData.cs index 5617900..3d859ff 100644 --- a/OpenSim/Data/MSSQL/MSSQLGridData.cs +++ b/OpenSim/Data/MSSQL/MSSQLGridData.cs @@ -28,10 +28,11 @@ using System; using System.Collections.Generic; using System.Data; +using System.Reflection; using System.Security.Cryptography; using System.Text; using libsecondlife; -using OpenSim.Framework.Console; +using log4net; namespace OpenSim.Data.MSSQL { @@ -40,7 +41,7 @@ namespace OpenSim.Data.MSSQL /// public class MSSQLGridData : GridDataBase { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); /// /// Database manager diff --git a/OpenSim/Data/MSSQL/MSSQLInventoryData.cs b/OpenSim/Data/MSSQL/MSSQLInventoryData.cs index 09d4710..27f8b60 100644 --- a/OpenSim/Data/MSSQL/MSSQLInventoryData.cs +++ b/OpenSim/Data/MSSQL/MSSQLInventoryData.cs @@ -29,9 +29,10 @@ using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; +using System.Reflection; using libsecondlife; +using log4net; using OpenSim.Framework; -using OpenSim.Framework.Console; namespace OpenSim.Data.MSSQL { @@ -40,7 +41,7 @@ namespace OpenSim.Data.MSSQL /// public class MSSQLInventoryData : IInventoryData { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); /// /// The database manager diff --git a/OpenSim/Data/MSSQL/MSSQLManager.cs b/OpenSim/Data/MSSQL/MSSQLManager.cs index e3179f7..6d73c64 100644 --- a/OpenSim/Data/MSSQL/MSSQLManager.cs +++ b/OpenSim/Data/MSSQL/MSSQLManager.cs @@ -32,8 +32,8 @@ using System.Data.SqlClient; using System.IO; using System.Reflection; using libsecondlife; +using log4net; using OpenSim.Framework; -using OpenSim.Framework.Console; namespace OpenSim.Data.MSSQL { @@ -42,7 +42,7 @@ namespace OpenSim.Data.MSSQL /// public class MSSQLManager { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); /// /// The database connection object diff --git a/OpenSim/Data/MSSQL/MSSQLUserData.cs b/OpenSim/Data/MSSQL/MSSQLUserData.cs index 3d4cabf..a44d022 100644 --- a/OpenSim/Data/MSSQL/MSSQLUserData.cs +++ b/OpenSim/Data/MSSQL/MSSQLUserData.cs @@ -29,9 +29,10 @@ using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; +using System.Reflection; using libsecondlife; +using log4net; using OpenSim.Framework; -using OpenSim.Framework.Console; namespace OpenSim.Data.MSSQL { @@ -40,7 +41,7 @@ namespace OpenSim.Data.MSSQL /// public class MSSQLUserData : UserDataBase { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); /// /// Database manager for MySQL @@ -326,9 +327,9 @@ namespace OpenSim.Data.MSSQL - override public List GeneratePickerResults(LLUUID queryID, string query) + override public List GeneratePickerResults(LLUUID queryID, string query) { - List returnlist = new List(); + List returnlist = new List(); string[] querysplit; querysplit = query.Split(' '); if (querysplit.Length == 2) @@ -350,7 +351,7 @@ namespace OpenSim.Data.MSSQL while (reader.Read()) { - Framework.AvatarPickerAvatar user = new Framework.AvatarPickerAvatar(); + AvatarPickerAvatar user = new AvatarPickerAvatar(); user.AvatarID = new LLUUID((string)reader["UUID"]); user.firstName = (string)reader["username"]; user.lastName = (string)reader["lastname"]; @@ -385,7 +386,7 @@ namespace OpenSim.Data.MSSQL while (reader.Read()) { - Framework.AvatarPickerAvatar user = new Framework.AvatarPickerAvatar(); + AvatarPickerAvatar user = new AvatarPickerAvatar(); user.AvatarID = new LLUUID((string)reader["UUID"]); user.firstName = (string)reader["username"]; user.lastName = (string)reader["lastname"]; diff --git a/OpenSim/Data/MSSQLMapper/MSSQLDatabaseMapper.cs b/OpenSim/Data/MSSQLMapper/MSSQLDatabaseMapper.cs index 25ea1b4..4c807b1 100644 --- a/OpenSim/Data/MSSQLMapper/MSSQLDatabaseMapper.cs +++ b/OpenSim/Data/MSSQLMapper/MSSQLDatabaseMapper.cs @@ -28,7 +28,6 @@ using System; using System.Data.Common; using System.Data.SqlClient; -using OpenSim.Data; namespace OpenSim.Data.MSSQLMapper { diff --git a/OpenSim/Data/MySQL/MySQLAssetData.cs b/OpenSim/Data/MySQL/MySQLAssetData.cs index 50f1cc5..111f7d1 100644 --- a/OpenSim/Data/MySQL/MySQLAssetData.cs +++ b/OpenSim/Data/MySQL/MySQLAssetData.cs @@ -28,16 +28,17 @@ using System; using System.Collections.Generic; using System.Data; +using System.Reflection; using libsecondlife; +using log4net; using MySql.Data.MySqlClient; using OpenSim.Framework; -using OpenSim.Framework.Console; namespace OpenSim.Data.MySQL { internal class MySQLAssetData : AssetDataBase, IPlugin { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private MySQLManager _dbConnection; diff --git a/OpenSim/Data/MySQL/MySQLDataStore.cs b/OpenSim/Data/MySQL/MySQLDataStore.cs index de15421..08e4456 100644 --- a/OpenSim/Data/MySQL/MySQLDataStore.cs +++ b/OpenSim/Data/MySQL/MySQLDataStore.cs @@ -28,12 +28,13 @@ using System; using System.Collections.Generic; using System.Data; -using System.Diagnostics; using System.IO; +using System.Reflection; +using System.Threading; using libsecondlife; +using log4net; using MySql.Data.MySqlClient; using OpenSim.Framework; -using OpenSim.Framework.Console; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; @@ -41,7 +42,7 @@ namespace OpenSim.Data.MySQL { public class MySQLDataStore : IRegionDataStore { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private const string m_primSelect = "select * from prims"; private const string m_shapeSelect = "select * from primshapes"; @@ -1498,7 +1499,7 @@ namespace OpenSim.Data.MySQL { m_log.Error("[MySql]: Error connecting to MySQL server: " + ex.Message); m_log.Error("[MySql]: Application is terminating!"); - System.Threading.Thread.CurrentThread.Abort(); + Thread.CurrentThread.Abort(); } } diff --git a/OpenSim/Data/MySQL/MySQLGridData.cs b/OpenSim/Data/MySQL/MySQLGridData.cs index 639f899..b6274d4 100644 --- a/OpenSim/Data/MySQL/MySQLGridData.cs +++ b/OpenSim/Data/MySQL/MySQLGridData.cs @@ -28,11 +28,11 @@ using System; using System.Collections.Generic; using System.Data; +using System.Reflection; using System.Security.Cryptography; using System.Text; -using System.Text.RegularExpressions; using libsecondlife; -using OpenSim.Framework.Console; +using log4net; namespace OpenSim.Data.MySQL { @@ -41,7 +41,7 @@ namespace OpenSim.Data.MySQL /// public class MySQLGridData : GridDataBase { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); /// /// MySQL Database Manager diff --git a/OpenSim/Data/MySQL/MySQLInventoryData.cs b/OpenSim/Data/MySQL/MySQLInventoryData.cs index 82bbf4f..3aed301 100644 --- a/OpenSim/Data/MySQL/MySQLInventoryData.cs +++ b/OpenSim/Data/MySQL/MySQLInventoryData.cs @@ -27,10 +27,11 @@ using System; using System.Collections.Generic; +using System.Reflection; using libsecondlife; +using log4net; using MySql.Data.MySqlClient; using OpenSim.Framework; -using OpenSim.Framework.Console; namespace OpenSim.Data.MySQL { @@ -39,8 +40,8 @@ namespace OpenSim.Data.MySQL /// public class MySQLInventoryData : IInventoryData { - private static readonly log4net.ILog m_log - = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log + = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); /// /// The database manager diff --git a/OpenSim/Data/MySQL/MySQLManager.cs b/OpenSim/Data/MySQL/MySQLManager.cs index a122954..1e7038f 100644 --- a/OpenSim/Data/MySQL/MySQLManager.cs +++ b/OpenSim/Data/MySQL/MySQLManager.cs @@ -28,13 +28,12 @@ using System; using System.Collections.Generic; using System.Data; -using System.Data.SqlClient; using System.IO; using System.Reflection; using libsecondlife; +using log4net; using MySql.Data.MySqlClient; using OpenSim.Framework; -using OpenSim.Framework.Console; namespace OpenSim.Data.MySQL { @@ -43,7 +42,7 @@ namespace OpenSim.Data.MySQL /// internal class MySQLManager { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); /// /// The database connection object diff --git a/OpenSim/Data/MySQL/MySQLUserData.cs b/OpenSim/Data/MySQL/MySQLUserData.cs index d04c932..66b65dc 100644 --- a/OpenSim/Data/MySQL/MySQLUserData.cs +++ b/OpenSim/Data/MySQL/MySQLUserData.cs @@ -28,10 +28,11 @@ using System; using System.Collections.Generic; using System.Data; +using System.Reflection; using System.Text.RegularExpressions; using libsecondlife; +using log4net; using OpenSim.Framework; -using OpenSim.Framework.Console; namespace OpenSim.Data.MySQL { @@ -40,7 +41,7 @@ namespace OpenSim.Data.MySQL /// internal class MySQLUserData : UserDataBase { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); /// /// Database manager for MySQL @@ -348,9 +349,9 @@ namespace OpenSim.Data.MySQL m_log.Info("[USER]: Stub UpdateUserCUrrentRegion called"); } - override public List GeneratePickerResults(LLUUID queryID, string query) + override public List GeneratePickerResults(LLUUID queryID, string query) { - List returnlist = new List(); + List returnlist = new List(); Regex objAlphaNumericPattern = new Regex("[^a-zA-Z0-9]"); @@ -373,7 +374,7 @@ namespace OpenSim.Data.MySQL while (reader.Read()) { - Framework.AvatarPickerAvatar user = new Framework.AvatarPickerAvatar(); + AvatarPickerAvatar user = new AvatarPickerAvatar(); user.AvatarID = new LLUUID((string) reader["UUID"]); user.firstName = (string) reader["username"]; user.lastName = (string) reader["lastname"]; @@ -407,7 +408,7 @@ namespace OpenSim.Data.MySQL while (reader.Read()) { - Framework.AvatarPickerAvatar user = new Framework.AvatarPickerAvatar(); + AvatarPickerAvatar user = new AvatarPickerAvatar(); user.AvatarID = new LLUUID((string) reader["UUID"]); user.firstName = (string) reader["username"]; user.lastName = (string) reader["lastname"]; diff --git a/OpenSim/Data/MySQLMapper/MySQLDataReader.cs b/OpenSim/Data/MySQLMapper/MySQLDataReader.cs index f242007..9b5de2a 100644 --- a/OpenSim/Data/MySQLMapper/MySQLDataReader.cs +++ b/OpenSim/Data/MySQLMapper/MySQLDataReader.cs @@ -25,11 +25,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; using System.Data; -using System.Text; -using OpenSim.Data.Base; namespace OpenSim.Data.MySQLMapper { diff --git a/OpenSim/Data/MySQLMapper/MySQLDatabaseMapper.cs b/OpenSim/Data/MySQLMapper/MySQLDatabaseMapper.cs index 16f133a..37b94fa 100644 --- a/OpenSim/Data/MySQLMapper/MySQLDatabaseMapper.cs +++ b/OpenSim/Data/MySQLMapper/MySQLDatabaseMapper.cs @@ -28,7 +28,6 @@ using System.Data; using System.Data.Common; using MySql.Data.MySqlClient; -using OpenSim.Data; using OpenSim.Data.Base; namespace OpenSim.Data.MySQLMapper diff --git a/OpenSim/Data/NHibernate/NHibernateAssetData.cs b/OpenSim/Data/NHibernate/NHibernateAssetData.cs index cc018dd..db90d09 100644 --- a/OpenSim/Data/NHibernate/NHibernateAssetData.cs +++ b/OpenSim/Data/NHibernate/NHibernateAssetData.cs @@ -26,17 +26,15 @@ */ using System; -using System.Data; +using System.IO; using System.Reflection; using libsecondlife; +using log4net; using NHibernate; using NHibernate.Cfg; -using NHibernate.Tool.hbm2ddl; using NHibernate.Mapping.Attributes; -using OpenSim.Data; using OpenSim.Framework; -using OpenSim.Framework.Console; -using Environment = NHibernate.Cfg.Environment; +using Environment=NHibernate.Cfg.Environment; namespace OpenSim.Data.NHibernate { @@ -45,7 +43,7 @@ namespace OpenSim.Data.NHibernate /// public class NHibernateAssetData : AssetDataBase, IDisposable { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private Configuration cfg; private ISessionFactory factory; @@ -67,8 +65,8 @@ namespace OpenSim.Data.NHibernate cfg.AddAssembly("OpenSim.Data.NHibernate"); HbmSerializer.Default.Validate = true; - using ( System.IO.MemoryStream stream = - HbmSerializer.Default.Serialize(System.Reflection.Assembly.GetExecutingAssembly())) + using ( MemoryStream stream = + HbmSerializer.Default.Serialize(Assembly.GetExecutingAssembly())) cfg.AddInputStream(stream); // new SchemaExport(cfg).Create(true, true); diff --git a/OpenSim/Data/NHibernate/NHibernateInventoryData.cs b/OpenSim/Data/NHibernate/NHibernateInventoryData.cs index a004e29..1ac0f0c 100644 --- a/OpenSim/Data/NHibernate/NHibernateInventoryData.cs +++ b/OpenSim/Data/NHibernate/NHibernateInventoryData.cs @@ -26,25 +26,23 @@ */ using System; -using System.Data; -using System.Reflection; using System.Collections.Generic; +using System.IO; +using System.Reflection; using libsecondlife; +using log4net; using NHibernate; -using NHibernate.Expression; using NHibernate.Cfg; -using NHibernate.Tool.hbm2ddl; +using NHibernate.Expression; using NHibernate.Mapping.Attributes; -using OpenSim.Data; using OpenSim.Framework; -using OpenSim.Framework.Console; -using Environment = NHibernate.Cfg.Environment; +using Environment=NHibernate.Cfg.Environment; namespace OpenSim.Data.NHibernate { public class NHibernateInventoryData: IInventoryData { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private Configuration cfg; private ISessionFactory factory; @@ -74,8 +72,8 @@ namespace OpenSim.Data.NHibernate cfg.AddAssembly("OpenSim.Data.NHibernate"); HbmSerializer.Default.Validate = true; - using ( System.IO.MemoryStream stream = - HbmSerializer.Default.Serialize(System.Reflection.Assembly.GetExecutingAssembly())) + using ( MemoryStream stream = + HbmSerializer.Default.Serialize(Assembly.GetExecutingAssembly())) cfg.AddInputStream(stream); // new SchemaExport(cfg).Create(true, true); diff --git a/OpenSim/Data/NHibernate/NHibernateManager.cs b/OpenSim/Data/NHibernate/NHibernateManager.cs index edef8ad..6f13294 100644 --- a/OpenSim/Data/NHibernate/NHibernateManager.cs +++ b/OpenSim/Data/NHibernate/NHibernateManager.cs @@ -25,18 +25,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; -using System.Data; -using libsecondlife; +using System.Reflection; +using log4net; using NHibernate; -using NHibernate.Cfg; namespace OpenSim.Data.NHibernate { internal class NHibernateManager { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private ISessionFactory factory; private ISession session; diff --git a/OpenSim/Data/NHibernate/NHibernateUserData.cs b/OpenSim/Data/NHibernate/NHibernateUserData.cs index 0bbebaa..c0fe26c 100644 --- a/OpenSim/Data/NHibernate/NHibernateUserData.cs +++ b/OpenSim/Data/NHibernate/NHibernateUserData.cs @@ -25,20 +25,16 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Data; -using System.Reflection; using System.Collections.Generic; +using System.IO; +using System.Reflection; using libsecondlife; +using log4net; using NHibernate; using NHibernate.Cfg; using NHibernate.Expression; -using NHibernate.Tool.hbm2ddl; using NHibernate.Mapping.Attributes; -using OpenSim.Data; using OpenSim.Framework; -using OpenSim.Framework.Console; -using Environment = NHibernate.Cfg.Environment; namespace OpenSim.Data.NHibernate { @@ -47,7 +43,7 @@ namespace OpenSim.Data.NHibernate /// public class NHibernateUserData : UserDataBase { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private Configuration cfg; private ISessionFactory factory; @@ -69,8 +65,8 @@ namespace OpenSim.Data.NHibernate cfg.AddAssembly("OpenSim.Data.NHibernate"); HbmSerializer.Default.Validate = true; - using ( System.IO.MemoryStream stream = - HbmSerializer.Default.Serialize(System.Reflection.Assembly.GetExecutingAssembly())) + using ( MemoryStream stream = + HbmSerializer.Default.Serialize(Assembly.GetExecutingAssembly())) cfg.AddInputStream(stream); // new SchemaExport(cfg).Create(true, true); diff --git a/OpenSim/Data/NHibernate/Types/LLUUIDUserType.cs b/OpenSim/Data/NHibernate/Types/LLUUIDUserType.cs index 2c1f7dd..e4f1dc2 100644 --- a/OpenSim/Data/NHibernate/Types/LLUUIDUserType.cs +++ b/OpenSim/Data/NHibernate/Types/LLUUIDUserType.cs @@ -27,10 +27,10 @@ using System; using System.Data; +using libsecondlife; using NHibernate; using NHibernate.SqlTypes; using NHibernate.UserTypes; -using libsecondlife; namespace OpenSim.Data.NHibernate { @@ -67,7 +67,7 @@ namespace OpenSim.Data.NHibernate get { return false; } } - public object NullSafeGet(System.Data.IDataReader rs, string[] names, object owner) + public object NullSafeGet(IDataReader rs, string[] names, object owner) { object uuid = null; @@ -81,7 +81,7 @@ namespace OpenSim.Data.NHibernate return uuid; } - public void NullSafeSet(System.Data.IDbCommand cmd, object obj, int index) + public void NullSafeSet(IDbCommand cmd, object obj, int index) { LLUUID uuid = (LLUUID)obj; ((IDataParameter)cmd.Parameters[index]).Value = uuid.ToString(); diff --git a/OpenSim/Data/OpenSimDataReader.cs b/OpenSim/Data/OpenSimDataReader.cs index aaf9aaf..cb613c1 100644 --- a/OpenSim/Data/OpenSimDataReader.cs +++ b/OpenSim/Data/OpenSimDataReader.cs @@ -25,7 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; using System.Data; using libsecondlife; using OpenSim.Data.Base; diff --git a/OpenSim/Data/OpenSimDatabaseConnector.cs b/OpenSim/Data/OpenSimDatabaseConnector.cs index 1a998a7..ee54f4f 100644 --- a/OpenSim/Data/OpenSimDatabaseConnector.cs +++ b/OpenSim/Data/OpenSimDatabaseConnector.cs @@ -26,9 +26,7 @@ */ using System.Data; -using System.Data.Common; using libsecondlife; - using OpenSim.Data.Base; namespace OpenSim.Data diff --git a/OpenSim/Data/OpenSimObjectFieldMapper.cs b/OpenSim/Data/OpenSimObjectFieldMapper.cs index 72bfbb1..d67881b 100644 --- a/OpenSim/Data/OpenSimObjectFieldMapper.cs +++ b/OpenSim/Data/OpenSimObjectFieldMapper.cs @@ -28,9 +28,7 @@ using System; using System.Collections.Generic; using System.Data.Common; -using System.Text; using libsecondlife; - using OpenSim.Data.Base; namespace OpenSim.Data diff --git a/OpenSim/Data/OpenSimTableMapper.cs b/OpenSim/Data/OpenSimTableMapper.cs index bf45b71..f09ef7d 100644 --- a/OpenSim/Data/OpenSimTableMapper.cs +++ b/OpenSim/Data/OpenSimTableMapper.cs @@ -25,8 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System.Data; - using OpenSim.Data.Base; namespace OpenSim.Data diff --git a/OpenSim/Data/PrimitiveBaseShapeTableMapper.cs b/OpenSim/Data/PrimitiveBaseShapeTableMapper.cs index a946fe6..fe49978 100644 --- a/OpenSim/Data/PrimitiveBaseShapeTableMapper.cs +++ b/OpenSim/Data/PrimitiveBaseShapeTableMapper.cs @@ -26,9 +26,9 @@ */ using System; -using OpenSim.Framework; -using OpenSim.Data.Base; using libsecondlife; +using OpenSim.Data.Base; +using OpenSim.Framework; namespace OpenSim.Data { diff --git a/OpenSim/Data/ReservationData.cs b/OpenSim/Data/ReservationData.cs index e284708..43fb299 100644 --- a/OpenSim/Data/ReservationData.cs +++ b/OpenSim/Data/ReservationData.cs @@ -25,6 +25,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using System; using libsecondlife; namespace OpenSim.Data @@ -37,11 +38,11 @@ namespace OpenSim.Data public int reservationMaxX = 65536; public int reservationMaxY = 65536; - public string reservationName = System.String.Empty; - public string reservationCompany = System.String.Empty; + public string reservationName = String.Empty; + public string reservationCompany = String.Empty; public bool status = true; - public string gridSendKey = System.String.Empty; - public string gridRecvKey = System.String.Empty; + public string gridSendKey = String.Empty; + public string gridRecvKey = String.Empty; } } diff --git a/OpenSim/Data/SQLite/SQLiteAssetData.cs b/OpenSim/Data/SQLite/SQLiteAssetData.cs index 25a127b..2b63d2b 100644 --- a/OpenSim/Data/SQLite/SQLiteAssetData.cs +++ b/OpenSim/Data/SQLite/SQLiteAssetData.cs @@ -29,9 +29,9 @@ using System; using System.Data; using System.Reflection; using libsecondlife; +using log4net; using Mono.Data.SqliteClient; using OpenSim.Framework; -using OpenSim.Framework.Console; namespace OpenSim.Data.SQLite { @@ -40,7 +40,7 @@ namespace OpenSim.Data.SQLite /// public class SQLiteAssetData : AssetDataBase { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); /// /// The database manager diff --git a/OpenSim/Data/SQLite/SQLiteInventoryStore.cs b/OpenSim/Data/SQLite/SQLiteInventoryStore.cs index 4ccea59..442ba39 100644 --- a/OpenSim/Data/SQLite/SQLiteInventoryStore.cs +++ b/OpenSim/Data/SQLite/SQLiteInventoryStore.cs @@ -30,15 +30,15 @@ using System.Collections.Generic; using System.Data; using System.Reflection; using libsecondlife; +using log4net; using Mono.Data.SqliteClient; using OpenSim.Framework; -using OpenSim.Framework.Console; namespace OpenSim.Data.SQLite { public class SQLiteInventoryStore : SQLiteUtil, IInventoryData { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private const string invItemsSelect = "select * from inventoryitems"; private const string invFoldersSelect = "select * from inventoryfolders"; diff --git a/OpenSim/Data/SQLite/SQLiteManager.cs b/OpenSim/Data/SQLite/SQLiteManager.cs index c8ba2af..66ce6ab 100644 --- a/OpenSim/Data/SQLite/SQLiteManager.cs +++ b/OpenSim/Data/SQLite/SQLiteManager.cs @@ -29,15 +29,15 @@ using System; using System.Collections.Generic; using System.Data; using System.Data.SQLite; +using System.Reflection; using libsecondlife; -using Mono.Data.SqliteClient; -using OpenSim.Framework.Console; +using log4net; namespace OpenSim.Data.SQLite { internal class SQLiteManager : SQLiteUtil { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private IDbConnection dbcon; diff --git a/OpenSim/Data/SQLite/SQLiteRegionData.cs b/OpenSim/Data/SQLite/SQLiteRegionData.cs index 85617e5..4355033 100644 --- a/OpenSim/Data/SQLite/SQLiteRegionData.cs +++ b/OpenSim/Data/SQLite/SQLiteRegionData.cs @@ -29,10 +29,11 @@ using System; using System.Collections.Generic; using System.Data; using System.IO; +using System.Reflection; using libsecondlife; +using log4net; using Mono.Data.SqliteClient; using OpenSim.Framework; -using OpenSim.Framework.Console; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; @@ -40,7 +41,7 @@ namespace OpenSim.Data.SQLite { public class SQLiteRegionData : IRegionDataStore { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private const string primSelect = "select * from prims"; private const string shapeSelect = "select * from primshapes"; diff --git a/OpenSim/Data/SQLite/SQLiteUserData.cs b/OpenSim/Data/SQLite/SQLiteUserData.cs index 089c9df..97797e0 100644 --- a/OpenSim/Data/SQLite/SQLiteUserData.cs +++ b/OpenSim/Data/SQLite/SQLiteUserData.cs @@ -28,10 +28,11 @@ using System; using System.Collections.Generic; using System.Data; +using System.Reflection; using libsecondlife; +using log4net; using Mono.Data.SqliteClient; using OpenSim.Framework; -using OpenSim.Framework.Console; namespace OpenSim.Data.SQLite { @@ -40,7 +41,7 @@ namespace OpenSim.Data.SQLite /// public class SQLiteUserData : UserDataBase { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); /// /// The database manager @@ -238,9 +239,9 @@ namespace OpenSim.Data.SQLite } - override public List GeneratePickerResults(LLUUID queryID, string query) + override public List GeneratePickerResults(LLUUID queryID, string query) { - List returnlist = new List(); + List returnlist = new List(); string[] querysplit; querysplit = query.Split(' '); if (querysplit.Length == 2) @@ -254,7 +255,7 @@ namespace OpenSim.Data.SQLite { while (reader.Read()) { - Framework.AvatarPickerAvatar user = new Framework.AvatarPickerAvatar(); + AvatarPickerAvatar user = new AvatarPickerAvatar(); user.AvatarID = new LLUUID((string) reader["UUID"]); user.firstName = (string) reader["username"]; user.lastName = (string) reader["surname"]; @@ -275,7 +276,7 @@ namespace OpenSim.Data.SQLite { while (reader.Read()) { - Framework.AvatarPickerAvatar user = new Framework.AvatarPickerAvatar(); + AvatarPickerAvatar user = new AvatarPickerAvatar(); user.AvatarID = new LLUUID((string) reader["UUID"]); user.firstName = (string) reader["username"]; user.lastName = (string) reader["surname"]; @@ -766,7 +767,7 @@ namespace OpenSim.Data.SQLite pcmd.ExecuteNonQuery(); } - catch (System.Exception) + catch (Exception) { m_log.Info("[USERS]: users table already exists"); } @@ -775,7 +776,7 @@ namespace OpenSim.Data.SQLite { fcmd.ExecuteNonQuery(); } - catch (System.Exception) + catch (Exception) { m_log.Info("[USERS]: userfriends table already exists"); } diff --git a/OpenSim/Data/UserDataBase.cs b/OpenSim/Data/UserDataBase.cs index ff9f6df..7ce4bd4 100644 --- a/OpenSim/Data/UserDataBase.cs +++ b/OpenSim/Data/UserDataBase.cs @@ -52,6 +52,6 @@ namespace OpenSim.Data public abstract string GetVersion(); public abstract string getName(); public abstract void Initialise(); - public abstract List GeneratePickerResults(LLUUID queryID, string query); + public abstract List GeneratePickerResults(LLUUID queryID, string query); } } diff --git a/OpenSim/Framework/AgentInventory.cs b/OpenSim/Framework/AgentInventory.cs index 916cdf8..ef3ad16 100644 --- a/OpenSim/Framework/AgentInventory.cs +++ b/OpenSim/Framework/AgentInventory.cs @@ -25,6 +25,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using System; using System.Collections.Generic; using libsecondlife; using libsecondlife.Packets; @@ -230,7 +231,7 @@ namespace OpenSim.Framework public LLUUID CreatorID; public sbyte InvType; public sbyte Type; - public string Name = System.String.Empty; + public string Name = String.Empty; public string Description; public InventoryItem() @@ -241,7 +242,7 @@ namespace OpenSim.Framework public string ExportString() { string typ = "notecard"; - string result = System.String.Empty; + string result = String.Empty; result += "\tinv_object\t0\n\t{\n"; result += "\t\tobj_id\t%s\n"; result += "\t\tparent_id\t" + ItemID.ToString() + "\n"; diff --git a/OpenSim/Framework/AssetConfig.cs b/OpenSim/Framework/AssetConfig.cs index 8a4ce92..6f43693 100644 --- a/OpenSim/Framework/AssetConfig.cs +++ b/OpenSim/Framework/AssetConfig.cs @@ -26,7 +26,6 @@ */ using System; -using OpenSim.Framework.Console; namespace OpenSim.Framework { diff --git a/OpenSim/Framework/AssetLoader/Filesystem/AssetLoaderFileSystem.cs b/OpenSim/Framework/AssetLoader/Filesystem/AssetLoaderFileSystem.cs index 4afea42..0cc10c4 100644 --- a/OpenSim/Framework/AssetLoader/Filesystem/AssetLoaderFileSystem.cs +++ b/OpenSim/Framework/AssetLoader/Filesystem/AssetLoaderFileSystem.cs @@ -28,14 +28,12 @@ using System; using System.Collections.Generic; using System.IO; +using System.Reflection; using System.Xml; - using libsecondlife; +using log4net; using Nini.Config; -using OpenSim.Framework; -using OpenSim.Framework.Console; - /// /// Loads assets from the filesystem location. Not yet a plugin, though it should be. /// @@ -43,7 +41,7 @@ namespace OpenSim.Framework.AssetLoader.Filesystem { public class AssetLoaderFileSystem : IAssetLoader { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); protected AssetBase CreateAsset(string assetIdStr, string name, string path, bool isImage) { diff --git a/OpenSim/Framework/AvatarPickerAvatar.cs b/OpenSim/Framework/AvatarPickerAvatar.cs index 2a60a8e..26a5bb2 100644 --- a/OpenSim/Framework/AvatarPickerAvatar.cs +++ b/OpenSim/Framework/AvatarPickerAvatar.cs @@ -25,9 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; -using System.Text; using libsecondlife; namespace OpenSim.Framework diff --git a/OpenSim/Framework/AvatarWearable.cs b/OpenSim/Framework/AvatarWearable.cs index b800030..cd5f7f6 100644 --- a/OpenSim/Framework/AvatarWearable.cs +++ b/OpenSim/Framework/AvatarWearable.cs @@ -25,10 +25,10 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using libsecondlife; using System; using System.Runtime.Serialization; using System.Security.Permissions; +using libsecondlife; namespace OpenSim.Framework { @@ -77,7 +77,7 @@ namespace OpenSim.Framework //System.Console.WriteLine("AvatarWearable Deserialize BGN"); if (info == null) { - throw new System.ArgumentNullException("info"); + throw new ArgumentNullException("info"); } AssetID = new LLUUID((Guid)info.GetValue("AssetID", typeof(Guid))); @@ -93,7 +93,7 @@ namespace OpenSim.Framework { if (info == null) { - throw new System.ArgumentNullException("info"); + throw new ArgumentNullException("info"); } info.AddValue("AssetID", AssetID.UUID); diff --git a/OpenSim/Framework/ClientManager.cs b/OpenSim/Framework/ClientManager.cs index 40c04c3..160d5b6 100644 --- a/OpenSim/Framework/ClientManager.cs +++ b/OpenSim/Framework/ClientManager.cs @@ -27,8 +27,10 @@ using System; using System.Collections.Generic; +using System.Reflection; using libsecondlife; using libsecondlife.Packets; +using log4net; namespace OpenSim.Framework { @@ -36,7 +38,7 @@ namespace OpenSim.Framework public class ClientManager { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private Dictionary m_clients; @@ -56,7 +58,7 @@ namespace OpenSim.Framework { whatToDo(LocalClients[i]); } - catch (System.Exception e) + catch (Exception e) { m_log.Warn("[CLIENT]: Unable to do ForEachClient for one of the clients" + "\n Reason: " + e.ToString()); } @@ -129,7 +131,7 @@ namespace OpenSim.Framework client.Close(false); } } - catch (System.Exception e) + catch (Exception e) { m_log.Error(string.Format("[CLIENT]: Unable to shutdown circuit for: {0}\n Reason: {1}", agentId, e)); } diff --git a/OpenSim/Framework/Communications/CAPSService.cs b/OpenSim/Framework/Communications/CAPSService.cs index 133ba0d..caf96ff 100644 --- a/OpenSim/Framework/Communications/CAPSService.cs +++ b/OpenSim/Framework/Communications/CAPSService.cs @@ -25,6 +25,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using System; using OpenSim.Framework.Servers; namespace OpenSim.Framework.Communications @@ -47,7 +48,7 @@ namespace OpenSim.Framework.Communications public string CapsRequest(string request, string path, string param) { System.Console.WriteLine("new caps request " + request + " from path " + path); - return System.String.Empty; + return String.Empty; } } } diff --git a/OpenSim/Framework/Communications/Cache/AssetCache.cs b/OpenSim/Framework/Communications/Cache/AssetCache.cs index 4d37e74..c81ea35 100644 --- a/OpenSim/Framework/Communications/Cache/AssetCache.cs +++ b/OpenSim/Framework/Communications/Cache/AssetCache.cs @@ -27,11 +27,11 @@ using System; using System.Collections.Generic; +using System.Reflection; using System.Threading; using libsecondlife; using libsecondlife.Packets; - -using OpenSim.Framework.Console; +using log4net; using OpenSim.Framework.Statistics; namespace OpenSim.Framework.Communications.Cache @@ -52,8 +52,8 @@ namespace OpenSim.Framework.Communications.Cache /// public class AssetCache : IAssetReceiver { - private static readonly log4net.ILog m_log - = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log + = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); /// /// The cache of assets. This does not include textures. @@ -170,7 +170,7 @@ namespace OpenSim.Framework.Communications.Cache m_assetCacheThread.Name = "AssetCacheThread"; m_assetCacheThread.IsBackground = true; m_assetCacheThread.Start(); - OpenSim.Framework.ThreadTracker.Add(m_assetCacheThread); + ThreadTracker.Add(m_assetCacheThread); } /// diff --git a/OpenSim/Framework/Communications/Cache/AssetServer.cs b/OpenSim/Framework/Communications/Cache/AssetServer.cs index 3ce28c2..891fa6d 100644 --- a/OpenSim/Framework/Communications/Cache/AssetServer.cs +++ b/OpenSim/Framework/Communications/Cache/AssetServer.cs @@ -25,16 +25,17 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ using System.IO; +using System.Reflection; using Db4objects.Db4o; using Db4objects.Db4o.Query; using libsecondlife; -using OpenSim.Framework.Console; +using log4net; namespace OpenSim.Framework.Communications.Cache { public class LocalAssetServer : AssetServerBase { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private IObjectContainer db; diff --git a/OpenSim/Framework/Communications/Cache/AssetServerBase.cs b/OpenSim/Framework/Communications/Cache/AssetServerBase.cs index 261b697..1a7f872 100644 --- a/OpenSim/Framework/Communications/Cache/AssetServerBase.cs +++ b/OpenSim/Framework/Communications/Cache/AssetServerBase.cs @@ -26,18 +26,18 @@ */ using System; -using System.Collections.Generic; +using System.Reflection; using System.Threading; using libsecondlife; -using OpenSim.Framework.Console; +using log4net; using OpenSim.Framework.AssetLoader.Filesystem; namespace OpenSim.Framework.Communications.Cache { public abstract class AssetServerBase : IAssetServer { - private static readonly log4net.ILog m_log - = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log + = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); protected IAssetReceiver m_receiver; protected BlockingQueue m_assetRequests; @@ -100,7 +100,7 @@ namespace OpenSim.Framework.Communications.Cache m_localAssetServerThread.Name = "LocalAssetServerThread"; m_localAssetServerThread.IsBackground = true; m_localAssetServerThread.Start(); - OpenSim.Framework.ThreadTracker.Add(m_localAssetServerThread); + ThreadTracker.Add(m_localAssetServerThread); } private void RunRequests() diff --git a/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs b/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs index ec5717e..a245af1 100644 --- a/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs +++ b/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs @@ -27,8 +27,9 @@ using System; using System.Collections.Generic; - +using System.Reflection; using libsecondlife; +using log4net; namespace OpenSim.Framework.Communications.Cache { @@ -37,8 +38,8 @@ namespace OpenSim.Framework.Communications.Cache /// public class CachedUserInfo { - private static readonly log4net.ILog m_log - = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log + = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); /// /// The comms manager holds references to services (user, grid, inventory, etc.) diff --git a/OpenSim/Framework/Communications/Cache/GridAssetClient.cs b/OpenSim/Framework/Communications/Cache/GridAssetClient.cs index 3e703d2..d5b7fea 100644 --- a/OpenSim/Framework/Communications/Cache/GridAssetClient.cs +++ b/OpenSim/Framework/Communications/Cache/GridAssetClient.cs @@ -27,15 +27,16 @@ using System; using System.IO; +using System.Reflection; using System.Xml.Serialization; -using OpenSim.Framework.Console; +using log4net; using OpenSim.Framework.Servers; namespace OpenSim.Framework.Communications.Cache { public class GridAssetClient : AssetServerBase { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private string _assetServerUrl; diff --git a/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs b/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs index 03036d0..a39738d 100644 --- a/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs +++ b/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs @@ -28,10 +28,11 @@ using System; using System.Collections.Generic; using System.IO; +using System.Reflection; using System.Xml; using libsecondlife; +using log4net; using Nini.Config; -using OpenSim.Framework.Console; namespace OpenSim.Framework.Communications.Cache { @@ -41,7 +42,7 @@ namespace OpenSim.Framework.Communications.Cache /// public class LibraryRootFolder : InventoryFolderImpl { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private LLUUID libOwner = new LLUUID("11111111-1111-0000-0000-000100bba000"); @@ -153,13 +154,13 @@ namespace OpenSim.Framework.Communications.Cache { string foldersPath = Path.Combine( - Util.inventoryDir(), config.GetString("foldersFile", System.String.Empty)); + Util.inventoryDir(), config.GetString("foldersFile", String.Empty)); LoadFromFile(foldersPath, "Library folders", ReadFolderFromConfig); string itemsPath = Path.Combine( - Util.inventoryDir(), config.GetString("itemsFile", System.String.Empty)); + Util.inventoryDir(), config.GetString("itemsFile", String.Empty)); LoadFromFile(itemsPath, "Library items", ReadItemFromConfig); } @@ -209,8 +210,8 @@ namespace OpenSim.Framework.Communications.Cache item.ID = new LLUUID(config.GetString("inventoryID", ID.ToString())); item.AssetID = new LLUUID(config.GetString("assetID", LLUUID.Random().ToString())); item.Folder = new LLUUID(config.GetString("folderID", ID.ToString())); - item.Description = config.GetString("description", System.String.Empty); - item.Name = config.GetString("name", System.String.Empty); + item.Description = config.GetString("description", String.Empty); + item.Name = config.GetString("name", String.Empty); item.AssetType = config.GetInt("assetType", 0); item.InvType = config.GetInt("inventoryType", 0); item.CurrentPermissions = (uint)config.GetLong("currentPermissions", 0x7FFFFFFF); diff --git a/OpenSim/Framework/Communications/Cache/SQLAssetServer.cs b/OpenSim/Framework/Communications/Cache/SQLAssetServer.cs index 4f1a304..1afec70 100644 --- a/OpenSim/Framework/Communications/Cache/SQLAssetServer.cs +++ b/OpenSim/Framework/Communications/Cache/SQLAssetServer.cs @@ -27,13 +27,13 @@ using System; using System.Reflection; -using OpenSim.Framework.Console; +using log4net; namespace OpenSim.Framework.Communications.Cache { public class SQLAssetServer : AssetServerBase { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public SQLAssetServer(string pluginName) { diff --git a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs index 9813756..bf8ff40 100644 --- a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs +++ b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs @@ -25,13 +25,11 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; using System.Collections.Generic; +using System.Reflection; using System.Threading; - using libsecondlife; - -using OpenSim.Framework.Console; +using log4net; namespace OpenSim.Framework.Communications.Cache { @@ -40,8 +38,8 @@ namespace OpenSim.Framework.Communications.Cache /// public class UserProfileCacheService { - private static readonly log4net.ILog m_log - = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log + = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); /// /// The comms manager holds references to services (user, grid, inventory, etc.) diff --git a/OpenSim/Framework/Communications/Capabilities/Caps.cs b/OpenSim/Framework/Communications/Capabilities/Caps.cs index 2eff9c2..c07744c 100644 --- a/OpenSim/Framework/Communications/Capabilities/Caps.cs +++ b/OpenSim/Framework/Communications/Capabilities/Caps.cs @@ -29,12 +29,11 @@ using System; using System.Collections; using System.Collections.Generic; using System.IO; - +using System.Reflection; using libsecondlife; - +using log4net; using OpenSim.Framework; using OpenSim.Framework.Communications.Cache; -using OpenSim.Framework.Console; using OpenSim.Framework.Servers; namespace OpenSim.Region.Capabilities @@ -66,8 +65,8 @@ namespace OpenSim.Region.Capabilities public class Caps { - private static readonly log4net.ILog m_log = - log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = + LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private string m_httpListenerHostName; private uint m_httpListenPort; diff --git a/OpenSim/Framework/Communications/Capabilities/CapsHandlers.cs b/OpenSim/Framework/Communications/Capabilities/CapsHandlers.cs index 6992bd1..3e3ae16 100644 --- a/OpenSim/Framework/Communications/Capabilities/CapsHandlers.cs +++ b/OpenSim/Framework/Communications/Capabilities/CapsHandlers.cs @@ -25,14 +25,8 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; using System.Collections; using System.Collections.Generic; -using System.IO; -using libsecondlife; -using OpenSim.Framework; -using OpenSim.Framework.Communications.Cache; -using OpenSim.Framework.Console; using OpenSim.Framework.Servers; namespace OpenSim.Region.Capabilities diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadComplete.cs b/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadComplete.cs index 876b8d3..1393523 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadComplete.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadComplete.cs @@ -25,8 +25,8 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using libsecondlife; using System; +using libsecondlife; namespace OpenSim.Region.Capabilities { diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadRequest.cs b/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadRequest.cs index fb64c75..e71a73e 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadRequest.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadRequest.cs @@ -25,6 +25,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using System; using libsecondlife; namespace OpenSim.Region.Capabilities @@ -32,11 +33,11 @@ namespace OpenSim.Region.Capabilities [LLSDMap] public class LLSDAssetUploadRequest { - public string asset_type = System.String.Empty; - public string description = System.String.Empty; + public string asset_type = String.Empty; + public string description = String.Empty; public LLUUID folder_id = LLUUID.Zero; - public string inventory_type = System.String.Empty; - public string name = System.String.Empty; + public string inventory_type = String.Empty; + public string name = String.Empty; public LLSDAssetUploadRequest() { diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadResponse.cs b/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadResponse.cs index fb721f0..bb293ba 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadResponse.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadResponse.cs @@ -25,13 +25,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using System; + namespace OpenSim.Region.Capabilities { [LLSDMap] public class LLSDAssetUploadResponse { - public string uploader = System.String.Empty; - public string state = System.String.Empty; + public string uploader = String.Empty; + public string state = String.Empty; public LLSDAssetUploadResponse() { diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDInventoryItem.cs b/OpenSim/Framework/Communications/Capabilities/LLSDInventoryItem.cs index 36a2cbf..d402579 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDInventoryItem.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDInventoryItem.cs @@ -25,9 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; -using System.Text; using libsecondlife; namespace OpenSim.Region.Capabilities diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDParcelVoiceInfoResponse.cs b/OpenSim/Framework/Communications/Capabilities/LLSDParcelVoiceInfoResponse.cs index 4fb0544..4439346 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDParcelVoiceInfoResponse.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDParcelVoiceInfoResponse.cs @@ -27,7 +27,6 @@ */ using System.Collections; -using libsecondlife; namespace OpenSim.Region.Capabilities { diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDVoiceAccountResponse.cs b/OpenSim/Framework/Communications/Capabilities/LLSDVoiceAccountResponse.cs index 8a18213..941e70e 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDVoiceAccountResponse.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDVoiceAccountResponse.cs @@ -26,8 +26,6 @@ * */ -using libsecondlife; - namespace OpenSim.Region.Capabilities { [LLSDMap] diff --git a/OpenSim/Framework/Communications/CommunicationsManager.cs b/OpenSim/Framework/Communications/CommunicationsManager.cs index 192c8e3..ee0d164 100644 --- a/OpenSim/Framework/Communications/CommunicationsManager.cs +++ b/OpenSim/Framework/Communications/CommunicationsManager.cs @@ -27,7 +27,9 @@ using System; using System.Collections.Generic; +using System.Reflection; using libsecondlife; +using log4net; using OpenSim.Framework.Communications.Cache; using OpenSim.Framework.Console; using OpenSim.Framework.Servers; @@ -36,7 +38,7 @@ namespace OpenSim.Framework.Communications { public class CommunicationsManager { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); protected IUserService m_userService; diff --git a/OpenSim/Framework/Communications/IInventoryServices.cs b/OpenSim/Framework/Communications/IInventoryServices.cs index 5e7f855..90bda01 100644 --- a/OpenSim/Framework/Communications/IInventoryServices.cs +++ b/OpenSim/Framework/Communications/IInventoryServices.cs @@ -26,9 +26,7 @@ */ using System.Collections.Generic; - using libsecondlife; - using OpenSim.Framework.Communications.Cache; namespace OpenSim.Framework.Communications diff --git a/OpenSim/Framework/Communications/InventoryServiceBase.cs b/OpenSim/Framework/Communications/InventoryServiceBase.cs index d4e7539..f614e7d 100644 --- a/OpenSim/Framework/Communications/InventoryServiceBase.cs +++ b/OpenSim/Framework/Communications/InventoryServiceBase.cs @@ -29,14 +29,14 @@ using System; using System.Collections.Generic; using System.Reflection; using libsecondlife; -using OpenSim.Framework.Console; +using log4net; namespace OpenSim.Framework.Communications { public abstract class InventoryServiceBase : IInventoryServices { - private static readonly log4net.ILog m_log - = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log + = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); protected Dictionary m_plugins = new Dictionary(); diff --git a/OpenSim/Framework/Communications/Limit/IRequestLimitStrategy.cs b/OpenSim/Framework/Communications/Limit/IRequestLimitStrategy.cs index ded9ffc..6ec21d9 100644 --- a/OpenSim/Framework/Communications/Limit/IRequestLimitStrategy.cs +++ b/OpenSim/Framework/Communications/Limit/IRequestLimitStrategy.cs @@ -25,8 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; - namespace OpenSim.Framework.Communications.Limit { /// diff --git a/OpenSim/Framework/Communications/Limit/NullLimitStrategy.cs b/OpenSim/Framework/Communications/Limit/NullLimitStrategy.cs index 43b77a7..72d0586 100644 --- a/OpenSim/Framework/Communications/Limit/NullLimitStrategy.cs +++ b/OpenSim/Framework/Communications/Limit/NullLimitStrategy.cs @@ -25,8 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; - namespace OpenSim.Framework.Communications.Limit { /// diff --git a/OpenSim/Framework/Communications/Limit/RepeatLimitStrategy.cs b/OpenSim/Framework/Communications/Limit/RepeatLimitStrategy.cs index 85ff2bd..dfa05fa 100644 --- a/OpenSim/Framework/Communications/Limit/RepeatLimitStrategy.cs +++ b/OpenSim/Framework/Communications/Limit/RepeatLimitStrategy.cs @@ -25,7 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; using System.Collections.Generic; namespace OpenSim.Framework.Communications.Limit diff --git a/OpenSim/Framework/Communications/Limit/TimeLimitStrategy.cs b/OpenSim/Framework/Communications/Limit/TimeLimitStrategy.cs index b2b4f14..34b01ff 100644 --- a/OpenSim/Framework/Communications/Limit/TimeLimitStrategy.cs +++ b/OpenSim/Framework/Communications/Limit/TimeLimitStrategy.cs @@ -104,7 +104,7 @@ namespace OpenSim.Framework.Communications.Limit { if (!IsMonitoringRequests(id)) { - requests.Add(id, new Request(System.DateTime.Now)); + requests.Add(id, new Request(DateTime.Now)); } } diff --git a/OpenSim/Framework/Communications/LoginResponse.cs b/OpenSim/Framework/Communications/LoginResponse.cs index 1b88d10..a379253 100644 --- a/OpenSim/Framework/Communications/LoginResponse.cs +++ b/OpenSim/Framework/Communications/LoginResponse.cs @@ -28,10 +28,11 @@ using System; using System.Collections; using System.Collections.Generic; +using System.Reflection; using libsecondlife; using libsecondlife.StructuredData; +using log4net; using Nwc.XmlRpc; -using OpenSim.Framework.Console; namespace OpenSim.Framework.UserManagement { @@ -41,7 +42,7 @@ namespace OpenSim.Framework.UserManagement /// public class LoginResponse { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private Hashtable loginFlagsHash; private Hashtable globalTexturesHash; diff --git a/OpenSim/Framework/Communications/LoginService.cs b/OpenSim/Framework/Communications/LoginService.cs index ce8aa23..d656559 100644 --- a/OpenSim/Framework/Communications/LoginService.cs +++ b/OpenSim/Framework/Communications/LoginService.cs @@ -29,21 +29,22 @@ using System; using System.Collections; using System.Collections.Generic; using System.IO; +using System.Reflection; using System.Text.RegularExpressions; using System.Threading; +using System.Web; using libsecondlife; using libsecondlife.StructuredData; +using log4net; using Nwc.XmlRpc; - using OpenSim.Framework.Communications.Cache; -using OpenSim.Framework.Console; using OpenSim.Framework.Statistics; namespace OpenSim.Framework.UserManagement { public abstract class LoginService { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); protected string m_welcomeMessage = "Welcome to OpenSim"; protected UserManagerBase m_userManager = null; @@ -159,7 +160,7 @@ namespace OpenSim.Framework.UserManagement { webloginkey = new LLUUID((string)requestData["web_login_key"]); } - catch (System.Exception e) + catch (Exception e) { m_log.InfoFormat( "[LOGIN END]: Bad web_login_key: {0} for user {1} {2}, exception {3}", @@ -514,7 +515,7 @@ namespace OpenSim.Framework.UserManagement statuscode = 301; string redirectURL = "about:blank?redirect-http-hack=" + - System.Web.HttpUtility.UrlEncode("secondlife:///app/login?first_name=" + firstname + "&last_name=" + + HttpUtility.UrlEncode("secondlife:///app/login?first_name=" + firstname + "&last_name=" + lastname + "&location=" + location + "&grid=Other&web_login_key=" + webloginkey.ToString()); //m_log.Info("[WEB]: R:" + redirectURL); diff --git a/OpenSim/Framework/Communications/RestClient/RestClient.cs b/OpenSim/Framework/Communications/RestClient/RestClient.cs index 1178fed..5463134 100644 --- a/OpenSim/Framework/Communications/RestClient/RestClient.cs +++ b/OpenSim/Framework/Communications/RestClient/RestClient.cs @@ -29,10 +29,11 @@ using System; using System.Collections.Generic; using System.IO; using System.Net; +using System.Reflection; using System.Text; using System.Threading; using System.Web; -using OpenSim.Framework.Console; +using log4net; namespace OpenSim.Framework.Communications { @@ -55,7 +56,7 @@ namespace OpenSim.Framework.Communications /// public class RestClient { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private string realuri; diff --git a/OpenSim/Framework/Communications/UserManagerBase.cs b/OpenSim/Framework/Communications/UserManagerBase.cs index c86992a..0f7dc44 100644 --- a/OpenSim/Framework/Communications/UserManagerBase.cs +++ b/OpenSim/Framework/Communications/UserManagerBase.cs @@ -32,8 +32,8 @@ using System.Reflection; using System.Security.Cryptography; using libsecondlife; using libsecondlife.StructuredData; +using log4net; using Nwc.XmlRpc; -using OpenSim.Framework.Console; using OpenSim.Framework.Statistics; namespace OpenSim.Framework.UserManagement @@ -43,8 +43,8 @@ namespace OpenSim.Framework.UserManagement /// public abstract class UserManagerBase : IUserService { - private static readonly log4net.ILog m_log - = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log + = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public UserConfig _config; private Dictionary _plugins = new Dictionary(); diff --git a/OpenSim/Framework/Communications/XMPP/Stanza.cs b/OpenSim/Framework/Communications/XMPP/Stanza.cs index 5675a47..3930bac 100644 --- a/OpenSim/Framework/Communications/XMPP/Stanza.cs +++ b/OpenSim/Framework/Communications/XMPP/Stanza.cs @@ -26,8 +26,6 @@ */ using System; -using System.Collections.Generic; -using System.Text; using System.Xml; namespace OpenSim.Framework.Communications.XMPP diff --git a/OpenSim/Framework/Communications/XMPP/XMPPParser.cs b/OpenSim/Framework/Communications/XMPP/XMPPParser.cs index e41df26..26a78b2 100644 --- a/OpenSim/Framework/Communications/XMPP/XMPPParser.cs +++ b/OpenSim/Framework/Communications/XMPP/XMPPParser.cs @@ -25,12 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; -using System.Text; -using System.Xml; -using OpenSim.Framework; - namespace OpenSim.Framework.Communications.XMPP { public class XMPPParser diff --git a/OpenSim/Framework/Configuration/HTTP/HTTPConfiguration.cs b/OpenSim/Framework/Configuration/HTTP/HTTPConfiguration.cs index 1fb4866..e985c06 100644 --- a/OpenSim/Framework/Configuration/HTTP/HTTPConfiguration.cs +++ b/OpenSim/Framework/Configuration/HTTP/HTTPConfiguration.cs @@ -25,22 +25,24 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using System; using System.IO; using System.Net; +using System.Reflection; using System.Text; -using OpenSim.Framework.Console; +using log4net; namespace OpenSim.Framework.Configuration.HTTP { public class HTTPConfiguration : IGenericConfig { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private RemoteConfigSettings remoteConfigSettings; private XmlConfiguration xmlConfig; - private string configFileName = System.String.Empty; + private string configFileName = String.Empty; public HTTPConfiguration() { diff --git a/OpenSim/Framework/Configuration/HTTP/RemoteConfigSettings.cs b/OpenSim/Framework/Configuration/HTTP/RemoteConfigSettings.cs index 88945ff..4e37ec6 100644 --- a/OpenSim/Framework/Configuration/HTTP/RemoteConfigSettings.cs +++ b/OpenSim/Framework/Configuration/HTTP/RemoteConfigSettings.cs @@ -25,13 +25,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using System; + namespace OpenSim.Framework.Configuration.HTTP { public class RemoteConfigSettings { private ConfigurationMember configMember; - public string baseConfigURL = System.String.Empty; + public string baseConfigURL = String.Empty; public RemoteConfigSettings(string filename) { diff --git a/OpenSim/Framework/ConfigurationMember.cs b/OpenSim/Framework/ConfigurationMember.cs index c27a134..12590b4 100644 --- a/OpenSim/Framework/ConfigurationMember.cs +++ b/OpenSim/Framework/ConfigurationMember.cs @@ -32,13 +32,14 @@ using System.Net; using System.Reflection; using System.Xml; using libsecondlife; +using log4net; using OpenSim.Framework.Console; namespace OpenSim.Framework { public class ConfigurationMember { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public delegate bool ConfigurationOptionResult(string configuration_key, object configuration_result); diff --git a/OpenSim/Framework/Console/ConsoleBase.cs b/OpenSim/Framework/Console/ConsoleBase.cs index ce95cb9..27ff340 100644 --- a/OpenSim/Framework/Console/ConsoleBase.cs +++ b/OpenSim/Framework/Console/ConsoleBase.cs @@ -28,14 +28,15 @@ using System; using System.Collections.Generic; using System.Diagnostics; -using System.IO; using System.Net; +using System.Reflection; +using log4net; namespace OpenSim.Framework.Console { public class ConsoleBase { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private readonly object m_syncRoot = new object(); diff --git a/OpenSim/Framework/Console/OpenSimAppender.cs b/OpenSim/Framework/Console/OpenSimAppender.cs index 542a03f..86df3c0 100644 --- a/OpenSim/Framework/Console/OpenSimAppender.cs +++ b/OpenSim/Framework/Console/OpenSimAppender.cs @@ -26,14 +26,9 @@ */ using System; -using System.Text; using System.Text.RegularExpressions; -using System.Globalization; - -using log4net.Core; -using log4net.Layout; using log4net.Appender; -using log4net.Util; +using log4net.Core; namespace OpenSim.Framework.Console { diff --git a/OpenSim/Framework/Constants.cs b/OpenSim/Framework/Constants.cs index 54baab9..66b0885 100644 --- a/OpenSim/Framework/Constants.cs +++ b/OpenSim/Framework/Constants.cs @@ -25,10 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; -using System.Text; - namespace OpenSim.Framework { public class Constants diff --git a/OpenSim/Framework/EstateSettings.cs b/OpenSim/Framework/EstateSettings.cs index 49b36e9..98052fc 100644 --- a/OpenSim/Framework/EstateSettings.cs +++ b/OpenSim/Framework/EstateSettings.cs @@ -27,14 +27,15 @@ using System; using System.IO; +using System.Reflection; using libsecondlife; -using OpenSim.Framework.Console; +using log4net; namespace OpenSim.Framework { public class EstateSettings { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); //Settings to this island private float m_billableFactor; diff --git a/OpenSim/Framework/FriendListItem.cs b/OpenSim/Framework/FriendListItem.cs index 5a66683..9220705 100644 --- a/OpenSim/Framework/FriendListItem.cs +++ b/OpenSim/Framework/FriendListItem.cs @@ -25,8 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; using libsecondlife; namespace OpenSim.Framework diff --git a/OpenSim/Framework/GridConfig.cs b/OpenSim/Framework/GridConfig.cs index 9519f17..7ccd0c4 100644 --- a/OpenSim/Framework/GridConfig.cs +++ b/OpenSim/Framework/GridConfig.cs @@ -26,7 +26,6 @@ */ using System; -using OpenSim.Framework.Console; namespace OpenSim.Framework { diff --git a/OpenSim/Framework/GridInstantMessage.cs b/OpenSim/Framework/GridInstantMessage.cs index ef7abd1..77e5460 100644 --- a/OpenSim/Framework/GridInstantMessage.cs +++ b/OpenSim/Framework/GridInstantMessage.cs @@ -26,7 +26,6 @@ */ using System; -using OpenSim.Framework; namespace OpenSim.Framework { diff --git a/OpenSim/Framework/IAssetServer.cs b/OpenSim/Framework/IAssetServer.cs index 5bbf435..23c0642 100644 --- a/OpenSim/Framework/IAssetServer.cs +++ b/OpenSim/Framework/IAssetServer.cs @@ -25,8 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; using libsecondlife; namespace OpenSim.Framework diff --git a/OpenSim/Framework/IInventoryData.cs b/OpenSim/Framework/IInventoryData.cs index cfba135..6a500f8 100644 --- a/OpenSim/Framework/IInventoryData.cs +++ b/OpenSim/Framework/IInventoryData.cs @@ -25,9 +25,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System.Collections; using System.Collections.Generic; -using System.Xml.Serialization; using libsecondlife; namespace OpenSim.Framework diff --git a/OpenSim/Framework/InventoryCollection.cs b/OpenSim/Framework/InventoryCollection.cs index abccf49..e5e8f62 100644 --- a/OpenSim/Framework/InventoryCollection.cs +++ b/OpenSim/Framework/InventoryCollection.cs @@ -25,9 +25,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System.Collections; using System.Collections.Generic; -using System.Xml.Serialization; using libsecondlife; namespace OpenSim.Framework diff --git a/OpenSim/Framework/InventoryConfig.cs b/OpenSim/Framework/InventoryConfig.cs index 7136efa..39a6930 100644 --- a/OpenSim/Framework/InventoryConfig.cs +++ b/OpenSim/Framework/InventoryConfig.cs @@ -25,7 +25,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using OpenSim.Framework.Console; +using System; namespace OpenSim.Framework { @@ -34,12 +34,12 @@ namespace OpenSim.Framework /// public class InventoryConfig { - public string DefaultStartupMsg = System.String.Empty; - public string UserServerURL = System.String.Empty; - public string UserSendKey = System.String.Empty; - public string UserRecvKey = System.String.Empty; + public string DefaultStartupMsg = String.Empty; + public string UserServerURL = String.Empty; + public string UserSendKey = String.Empty; + public string UserRecvKey = String.Empty; - public string DatabaseProvider = System.String.Empty; + public string DatabaseProvider = String.Empty; public static uint DefaultHttpPort = 8004; public uint HttpPort = DefaultHttpPort; diff --git a/OpenSim/Framework/InventoryFolderBase.cs b/OpenSim/Framework/InventoryFolderBase.cs index ee53307..8e276e9 100644 --- a/OpenSim/Framework/InventoryFolderBase.cs +++ b/OpenSim/Framework/InventoryFolderBase.cs @@ -25,9 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System.Collections; -using System.Collections.Generic; -using System.Xml.Serialization; using libsecondlife; namespace OpenSim.Framework diff --git a/OpenSim/Framework/InventoryItemBase.cs b/OpenSim/Framework/InventoryItemBase.cs index 03b47ca..8c8d858 100644 --- a/OpenSim/Framework/InventoryItemBase.cs +++ b/OpenSim/Framework/InventoryItemBase.cs @@ -25,9 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System.Collections; -using System.Collections.Generic; -using System.Xml.Serialization; using libsecondlife; namespace OpenSim.Framework diff --git a/OpenSim/Framework/JId.cs b/OpenSim/Framework/JId.cs index a685807..dac4838 100644 --- a/OpenSim/Framework/JId.cs +++ b/OpenSim/Framework/JId.cs @@ -26,8 +26,6 @@ */ using System; -using System.Collections.Generic; -using System.Text; namespace OpenSim.Framework { diff --git a/OpenSim/Framework/LandData.cs b/OpenSim/Framework/LandData.cs index f154e5e..6d2c5d7 100644 --- a/OpenSim/Framework/LandData.cs +++ b/OpenSim/Framework/LandData.cs @@ -25,8 +25,8 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System.Collections.Generic; using System; +using System.Collections.Generic; using libsecondlife; namespace OpenSim.Framework diff --git a/OpenSim/Framework/Login.cs b/OpenSim/Framework/Login.cs index bc1e8d0..bc3375d 100644 --- a/OpenSim/Framework/Login.cs +++ b/OpenSim/Framework/Login.cs @@ -25,6 +25,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using System; using libsecondlife; namespace OpenSim.Framework @@ -39,7 +40,7 @@ namespace OpenSim.Framework public LLUUID InventoryFolder; public LLUUID BaseFolder; public uint CircuitCode; - public string CapsPath = System.String.Empty; + public string CapsPath = String.Empty; public LLVector3 StartPos; public Login() diff --git a/OpenSim/Framework/MessageServerConfig.cs b/OpenSim/Framework/MessageServerConfig.cs index f15efa6..dbc06db 100644 --- a/OpenSim/Framework/MessageServerConfig.cs +++ b/OpenSim/Framework/MessageServerConfig.cs @@ -26,9 +26,6 @@ */ using System; -using System.Collections.Generic; -using System.Text; -using OpenSim.Framework.Console; namespace OpenSim.Framework { @@ -69,7 +66,7 @@ namespace OpenSim.Framework configMember.addConfigurationOption("default_user_server", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "Default User Server URI", - "http://127.0.0.1:" + MessageServerConfig.DefaultHttpPort.ToString() + "/", false); + "http://127.0.0.1:" + DefaultHttpPort.ToString() + "/", false); configMember.addConfigurationOption("user_send_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to send to user server", "null", false); configMember.addConfigurationOption("user_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, diff --git a/OpenSim/Framework/NetworkServersInfo.cs b/OpenSim/Framework/NetworkServersInfo.cs index df559fc..ee11924 100644 --- a/OpenSim/Framework/NetworkServersInfo.cs +++ b/OpenSim/Framework/NetworkServersInfo.cs @@ -25,8 +25,8 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using Nini.Config; using System; +using Nini.Config; namespace OpenSim.Framework { diff --git a/OpenSim/Framework/PacketPool.cs b/OpenSim/Framework/PacketPool.cs index 31548a0..22f952a 100644 --- a/OpenSim/Framework/PacketPool.cs +++ b/OpenSim/Framework/PacketPool.cs @@ -26,8 +26,9 @@ */ using System; -using System.Net; using System.Collections; +using System.Net; +using libsecondlife; using libsecondlife.Packets; namespace OpenSim.Framework @@ -115,13 +116,13 @@ namespace OpenSim.Framework { byte[] decoded_header = new byte[10 + 8]; ushort id; - libsecondlife.PacketFrequency freq; + PacketFrequency freq; Buffer.BlockCopy(bytes, 0, decoded_header, 0, 10); - if((bytes[0] & libsecondlife.Helpers.MSG_ZEROCODED)!=0) + if((bytes[0] & Helpers.MSG_ZEROCODED)!=0) { - libsecondlife.Helpers.ZeroDecodeCommand(bytes, decoded_header); + Helpers.ZeroDecodeCommand(bytes, decoded_header); } if (decoded_header[6] == 0xFF) @@ -129,18 +130,18 @@ namespace OpenSim.Framework if (decoded_header[7] == 0xFF) { id = (ushort)((decoded_header[8] << 8) + decoded_header[9]); - freq = libsecondlife.PacketFrequency.Low; + freq = PacketFrequency.Low; } else { id = (ushort)decoded_header[7]; - freq = libsecondlife.PacketFrequency.Medium; + freq = PacketFrequency.Medium; } } else { id = (ushort)decoded_header[6]; - freq = libsecondlife.PacketFrequency.High; + freq = PacketFrequency.High; } return Packet.GetType(id, freq); diff --git a/OpenSim/Framework/RegionCommsListener.cs b/OpenSim/Framework/RegionCommsListener.cs index ee2079b..73971ac 100644 --- a/OpenSim/Framework/RegionCommsListener.cs +++ b/OpenSim/Framework/RegionCommsListener.cs @@ -25,8 +25,8 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System.Collections.Generic; using System; +using System.Collections.Generic; using libsecondlife; namespace OpenSim.Framework diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs index f19f1db..20a2709 100644 --- a/OpenSim/Framework/RegionInfo.cs +++ b/OpenSim/Framework/RegionInfo.cs @@ -31,7 +31,6 @@ using System.Net.Sockets; using System.Xml; using libsecondlife; using Nini.Config; -using OpenSim.Framework.Console; namespace OpenSim.Framework { 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 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using System; using System.IO; using Nini.Config; @@ -48,7 +49,7 @@ namespace OpenSim.Framework.RegionLoader.Filesystem IniConfig startupConfig = (IniConfig)m_configSouce.Configs["Startup"]; regionConfigPath = startupConfig.GetString("regionload_regionsdir", regionConfigPath).Trim(); } - catch (System.Exception) + catch (Exception) { // No INI setting recorded. } 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 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using System; using System.IO; using System.Net; +using System.Reflection; using System.Xml; +using log4net; using Nini.Config; -using OpenSim.Framework.Console; namespace OpenSim.Framework.RegionLoader.Web { public class RegionLoaderWebServer : IRegionLoader { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private IniConfigSource m_configSouce; @@ -54,8 +56,8 @@ namespace OpenSim.Framework.RegionLoader.Web else { IniConfig startupConfig = (IniConfig) m_configSouce.Configs["Startup"]; - string url = startupConfig.GetString("regionload_webserver_url", System.String.Empty).Trim(); - if (url == System.String.Empty) + string url = startupConfig.GetString("regionload_webserver_url", String.Empty).Trim(); + if (url == String.Empty) { m_log.Error("[WEBLOADER]: Unable to load webserver URL - URL was empty."); return null; @@ -68,7 +70,7 @@ namespace OpenSim.Framework.RegionLoader.Web HttpWebResponse webResponse = (HttpWebResponse) webRequest.GetResponse(); m_log.Debug("[WEBLOADER]: Downloading Region Information From Remote Server..."); StreamReader reader = new StreamReader(webResponse.GetResponseStream()); - string xmlSource = System.String.Empty; + string xmlSource = String.Empty; string tempStr = reader.ReadLine(); while (tempStr != null) { diff --git a/OpenSim/Framework/RegionUpData.cs b/OpenSim/Framework/RegionUpData.cs index c2a7763..6162171 100644 --- a/OpenSim/Framework/RegionUpData.cs +++ b/OpenSim/Framework/RegionUpData.cs @@ -26,8 +26,6 @@ */ using System; -using System.Collections.Generic; -using System.Text; namespace OpenSim.Framework { diff --git a/OpenSim/Framework/SerializableInventory.cs b/OpenSim/Framework/SerializableInventory.cs index 529f91e..8193fa7 100644 --- a/OpenSim/Framework/SerializableInventory.cs +++ b/OpenSim/Framework/SerializableInventory.cs @@ -26,9 +26,7 @@ */ using System.Collections; -using System.Collections.Generic; using System.Xml.Serialization; -using libsecondlife; namespace OpenSim.Framework { diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs index 00c81c8..7c268ed 100644 --- a/OpenSim/Framework/Servers/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/BaseHttpServer.cs @@ -30,18 +30,20 @@ using System.Collections; using System.Collections.Generic; using System.IO; using System.Net; +using System.Net.Sockets; +using System.Reflection; using System.Text; using System.Threading; using System.Xml; -using Nwc.XmlRpc; using libsecondlife.StructuredData; -using OpenSim.Framework.Console; +using log4net; +using Nwc.XmlRpc; namespace OpenSim.Framework.Servers { public class BaseHttpServer { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); protected Thread m_workerThread; protected HttpListener m_httpListener; @@ -199,7 +201,7 @@ namespace OpenSim.Framework.Servers } } } - catch (System.Net.Sockets.SocketException e) + catch (SocketException e) { // At least on linux, it appears that if the client makes a request without requiring the response, // an unconnected socket exception is thrown when we close the response output stream. There's no @@ -346,7 +348,7 @@ namespace OpenSim.Framework.Servers { response.OutputStream.Close(); } - catch (System.Net.Sockets.SocketException) + catch (SocketException) { // This has to be here to prevent a Linux/Mono crash } @@ -602,7 +604,7 @@ namespace OpenSim.Framework.Servers m_workerThread.Name = "HttpThread"; m_workerThread.IsBackground = true; m_workerThread.Start(); - OpenSim.Framework.ThreadTracker.Add(m_workerThread); + ThreadTracker.Add(m_workerThread); } private void StartHTTP() diff --git a/OpenSim/Framework/Servers/GenericHTTPMethod.cs b/OpenSim/Framework/Servers/GenericHTTPMethod.cs index f6bd65b..1358a00 100644 --- a/OpenSim/Framework/Servers/GenericHTTPMethod.cs +++ b/OpenSim/Framework/Servers/GenericHTTPMethod.cs @@ -25,7 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; using System.Collections; namespace OpenSim.Framework.Servers diff --git a/OpenSim/Framework/Servers/MessageServerInfo.cs b/OpenSim/Framework/Servers/MessageServerInfo.cs index 9bcd4e1..17b5f10 100644 --- a/OpenSim/Framework/Servers/MessageServerInfo.cs +++ b/OpenSim/Framework/Servers/MessageServerInfo.cs @@ -25,9 +25,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; using System.Collections.Generic; -using System.Text; namespace OpenSim.Framework.Servers { diff --git a/OpenSim/Framework/Statistics/AssetStatsReporter.cs b/OpenSim/Framework/Statistics/AssetStatsReporter.cs index 00422a8..66eb471 100644 --- a/OpenSim/Framework/Statistics/AssetStatsReporter.cs +++ b/OpenSim/Framework/Statistics/AssetStatsReporter.cs @@ -26,7 +26,6 @@ */ using System; -using System.Text; using System.Timers; namespace OpenSim.Framework.Statistics diff --git a/OpenSim/Framework/Statistics/Interfaces/IPullStatsProvider.cs b/OpenSim/Framework/Statistics/Interfaces/IPullStatsProvider.cs index bef509d..0d85919 100644 --- a/OpenSim/Framework/Statistics/Interfaces/IPullStatsProvider.cs +++ b/OpenSim/Framework/Statistics/Interfaces/IPullStatsProvider.cs @@ -25,8 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; - namespace OpenSim.Framework.Statistics.Interfaces { /// diff --git a/OpenSim/Framework/Statistics/SimExtraStatsReporter.cs b/OpenSim/Framework/Statistics/SimExtraStatsReporter.cs index 167b771..567d8dd 100644 --- a/OpenSim/Framework/Statistics/SimExtraStatsReporter.cs +++ b/OpenSim/Framework/Statistics/SimExtraStatsReporter.cs @@ -28,11 +28,8 @@ using System; using System.Collections.Generic; using System.Text; - -using OpenSim.Framework; -using OpenSim.Framework.Statistics.Interfaces; - using libsecondlife; +using OpenSim.Framework.Statistics.Interfaces; namespace OpenSim.Framework.Statistics { diff --git a/OpenSim/Framework/Statistics/UserStatsReporter.cs b/OpenSim/Framework/Statistics/UserStatsReporter.cs index e7c9bce..ce82615 100644 --- a/OpenSim/Framework/Statistics/UserStatsReporter.cs +++ b/OpenSim/Framework/Statistics/UserStatsReporter.cs @@ -25,7 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System.Text; using System.Timers; namespace OpenSim.Framework.Statistics diff --git a/OpenSim/Framework/TaskInventoryItem.cs b/OpenSim/Framework/TaskInventoryItem.cs index 36228b5..1cf2e58 100644 --- a/OpenSim/Framework/TaskInventoryItem.cs +++ b/OpenSim/Framework/TaskInventoryItem.cs @@ -25,13 +25,14 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using System; using System.Collections.Generic; +using System.Reflection; using System.Xml; using System.Xml.Schema; using System.Xml.Serialization; - using libsecondlife; -using System; +using log4net; namespace OpenSim.Framework { @@ -43,7 +44,7 @@ namespace OpenSim.Framework public class TaskInventoryDictionary : Dictionary, ICloneable, IXmlSerializable { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private static XmlSerializer tiiSerializer = new XmlSerializer(typeof(TaskInventoryItem)); diff --git a/OpenSim/Framework/ThreadTracker.cs b/OpenSim/Framework/ThreadTracker.cs index b71a0e1..8fe5b82 100644 --- a/OpenSim/Framework/ThreadTracker.cs +++ b/OpenSim/Framework/ThreadTracker.cs @@ -28,7 +28,6 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Text; using System.Threading; namespace OpenSim.Framework @@ -36,7 +35,7 @@ namespace OpenSim.Framework public static class ThreadTracker { public static List m_Threads; - public static System.Threading.Thread ThreadTrackerThread; + public static Thread ThreadTrackerThread; private static readonly long ThreadTimeout = 30 * 10000000; static ThreadTracker() @@ -46,7 +45,7 @@ namespace OpenSim.Framework ThreadTrackerThread = new Thread(ThreadTrackerThreadLoop); ThreadTrackerThread.Name = "ThreadTrackerThread"; ThreadTrackerThread.IsBackground = true; - ThreadTrackerThread.Priority = System.Threading.ThreadPriority.BelowNormal; + ThreadTrackerThread.Priority = ThreadPriority.BelowNormal; ThreadTrackerThread.Start(); #endif } @@ -60,7 +59,7 @@ namespace OpenSim.Framework } } - public static void Add(System.Threading.Thread thread) + public static void Add(Thread thread) { #if DEBUG lock (m_Threads) @@ -73,7 +72,7 @@ namespace OpenSim.Framework #endif } - public static void Remove(System.Threading.Thread thread) + public static void Remove(Thread thread) { #if DEBUG lock (m_Threads) @@ -126,7 +125,7 @@ namespace OpenSim.Framework public class ThreadTrackerItem { - public System.Threading.Thread Thread; + public Thread Thread; public long LastSeenActive; } } diff --git a/OpenSim/Framework/UserConfig.cs b/OpenSim/Framework/UserConfig.cs index 8335bba..8ae8f7e 100644 --- a/OpenSim/Framework/UserConfig.cs +++ b/OpenSim/Framework/UserConfig.cs @@ -26,7 +26,6 @@ */ using System; -using OpenSim.Framework.Console; namespace OpenSim.Framework { diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index ac1145f..2396519 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs @@ -26,24 +26,26 @@ */ using System; -using System.Collections.Generic; using System.Data; using System.IO; using System.Net; using System.Net.Sockets; +using System.Reflection; +using System.Runtime.Serialization; +using System.Runtime.Serialization.Formatters.Binary; using System.Security.Cryptography; using System.Text; +using System.Text.RegularExpressions; using libsecondlife; +using log4net; using Nini.Config; using Nwc.XmlRpc; -using System.Runtime.Serialization; -using System.Runtime.Serialization.Formatters.Binary; namespace OpenSim.Framework { public class Util { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private static Random randomClass = new Random(); private static uint nextXferID = 5000; @@ -385,7 +387,7 @@ namespace OpenSim.Framework /// safe path public static string safePath(string path) { - return System.Text.RegularExpressions.Regex.Replace(path, @regexInvalidPathChars, string.Empty); + return Regex.Replace(path, @regexInvalidPathChars, string.Empty); } /// @@ -395,7 +397,7 @@ namespace OpenSim.Framework /// safe filename public static string safeFileName(string filename) { - return System.Text.RegularExpressions.Regex.Replace(filename, @regexInvalidFileChars, string.Empty); ; + return Regex.Replace(filename, @regexInvalidFileChars, string.Empty); ; } // @@ -520,7 +522,7 @@ namespace OpenSim.Framework sr.Close(); return issue; } - catch (System.Exception) + catch (Exception) { return ""; } diff --git a/OpenSim/Grid/AssetServer/Main.cs b/OpenSim/Grid/AssetServer/Main.cs index 3a38e85..5a013b9 100644 --- a/OpenSim/Grid/AssetServer/Main.cs +++ b/OpenSim/Grid/AssetServer/Main.cs @@ -29,6 +29,8 @@ using System; using System.IO; using System.Reflection; using libsecondlife; +using log4net; +using log4net.Config; using OpenSim.Framework; using OpenSim.Framework.AssetLoader.Filesystem; using OpenSim.Framework.Console; @@ -42,7 +44,7 @@ namespace OpenSim.Grid.AssetServer /// public class OpenAsset_Main : BaseOpenSimServer, conscmd_callback { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public AssetConfig m_config; @@ -56,7 +58,7 @@ namespace OpenSim.Grid.AssetServer [STAThread] public static void Main(string[] args) { - log4net.Config.XmlConfigurator.Configure(); + XmlConfigurator.Configure(); m_log.Info("Starting...\n"); diff --git a/OpenSim/Grid/AssetServer/RestService.cs b/OpenSim/Grid/AssetServer/RestService.cs index ae56a68..ece826e 100644 --- a/OpenSim/Grid/AssetServer/RestService.cs +++ b/OpenSim/Grid/AssetServer/RestService.cs @@ -27,12 +27,13 @@ using System; using System.IO; +using System.Reflection; using System.Text; using System.Xml; using System.Xml.Serialization; using libsecondlife; +using log4net; using OpenSim.Framework; -using OpenSim.Framework.Console; using OpenSim.Framework.Servers; using OpenSim.Framework.Statistics; @@ -40,7 +41,7 @@ namespace OpenSim.Grid.AssetServer { public class GetAssetStreamHandler : BaseStreamHandler { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private OpenAsset_Main m_assetManager; private IAssetProvider m_assetProvider; @@ -115,7 +116,7 @@ namespace OpenSim.Grid.AssetServer public class PostAssetStreamHandler : BaseStreamHandler { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private OpenAsset_Main m_assetManager; private IAssetProvider m_assetProvider; diff --git a/OpenSim/Grid/GridServer/GridManager.cs b/OpenSim/Grid/GridServer/GridManager.cs index ba526c0..ee2f129 100644 --- a/OpenSim/Grid/GridServer/GridManager.cs +++ b/OpenSim/Grid/GridServer/GridManager.cs @@ -31,18 +31,18 @@ using System.Collections.Generic; using System.Reflection; using System.Xml; using libsecondlife; +using log4net; using Nwc.XmlRpc; -using OpenSim.Framework; -using OpenSim.Framework.Console; using OpenSim.Data; -using OpenSim.Framework.Servers; using OpenSim.Data.MySQL; +using OpenSim.Framework; +using OpenSim.Framework.Servers; namespace OpenSim.Grid.GridServer { public class GridManager { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private Dictionary _plugins = new Dictionary(); private Dictionary _logplugins = new Dictionary(); @@ -630,7 +630,7 @@ namespace OpenSim.Grid.GridServer //OpenSim.Data.MySQL.MySQLGridData dbengine = new OpenSim.Data.MySQL.MySQLGridData(); try { - OpenSim.Data.MySQL.MySQLGridData mysqldata = (OpenSim.Data.MySQL.MySQLGridData)(kvp.Value); + MySQLGridData mysqldata = (MySQLGridData)(kvp.Value); //DataResponse insertResponse = mysqldata.DeleteProfile(TheSim); DataResponse insertResponse = mysqldata.DeleteProfile(uuid); switch (insertResponse) diff --git a/OpenSim/Grid/GridServer/GridServerBase.cs b/OpenSim/Grid/GridServer/GridServerBase.cs index 3be98d8..2feaac3 100644 --- a/OpenSim/Grid/GridServer/GridServerBase.cs +++ b/OpenSim/Grid/GridServer/GridServerBase.cs @@ -26,16 +26,13 @@ */ using System; +using System.Collections.Generic; using System.IO; using System.Timers; -using System.Collections; -using System.Collections.Generic; +using Mono.Addins; using OpenSim.Framework; using OpenSim.Framework.Console; using OpenSim.Framework.Servers; -using Nwc.XmlRpc; -using Mono.Addins; -using Mono.Addins.Description; namespace OpenSim.Grid.GridServer { diff --git a/OpenSim/Grid/GridServer/Program.cs b/OpenSim/Grid/GridServer/Program.cs index b95e422..6eb4e15 100644 --- a/OpenSim/Grid/GridServer/Program.cs +++ b/OpenSim/Grid/GridServer/Program.cs @@ -26,9 +26,7 @@ */ using System; -using System.Collections.Generic; -using System.Text; -using OpenSim.Framework.Console; +using log4net.Config; namespace OpenSim.Grid.GridServer { @@ -37,7 +35,7 @@ namespace OpenSim.Grid.GridServer [STAThread] public static void Main(string[] args) { - log4net.Config.XmlConfigurator.Configure(); + XmlConfigurator.Configure(); GridServerBase app = new GridServerBase(); diff --git a/OpenSim/Grid/InventoryServer/GridInventoryService.cs b/OpenSim/Grid/InventoryServer/GridInventoryService.cs index f7c9828..82ba7df 100644 --- a/OpenSim/Grid/InventoryServer/GridInventoryService.cs +++ b/OpenSim/Grid/InventoryServer/GridInventoryService.cs @@ -27,13 +27,11 @@ using System; using System.Collections.Generic; -using System.Threading; - +using System.Reflection; using libsecondlife; - +using log4net; using OpenSim.Framework; using OpenSim.Framework.Communications; -using OpenSim.Framework.Console; namespace OpenSim.Grid.InventoryServer { @@ -42,8 +40,8 @@ namespace OpenSim.Grid.InventoryServer /// public class GridInventoryService : InventoryServiceBase { - private static readonly log4net.ILog m_log - = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log + = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public override void RequestInventoryForUser(LLUUID userID, InventoryReceiptCallback callback) { diff --git a/OpenSim/Grid/InventoryServer/InventoryManager.cs b/OpenSim/Grid/InventoryServer/InventoryManager.cs index ed154a8..b3c6891 100644 --- a/OpenSim/Grid/InventoryServer/InventoryManager.cs +++ b/OpenSim/Grid/InventoryServer/InventoryManager.cs @@ -32,15 +32,15 @@ using System.Text; using System.Xml; using System.Xml.Serialization; using libsecondlife; +using log4net; using OpenSim.Framework; -using OpenSim.Framework.Console; using OpenSim.Framework.Servers; namespace OpenSim.Grid.InventoryServer { public class InventoryManager { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private IInventoryData _databasePlugin; diff --git a/OpenSim/Grid/InventoryServer/Main.cs b/OpenSim/Grid/InventoryServer/Main.cs index 3987334..2454650 100644 --- a/OpenSim/Grid/InventoryServer/Main.cs +++ b/OpenSim/Grid/InventoryServer/Main.cs @@ -28,7 +28,10 @@ using System; using System.Collections.Generic; using System.IO; +using System.Reflection; using libsecondlife; +using log4net; +using log4net.Config; using OpenSim.Framework; using OpenSim.Framework.Console; using OpenSim.Framework.Servers; @@ -37,7 +40,7 @@ namespace OpenSim.Grid.InventoryServer { public class OpenInventory_Main : BaseOpenSimServer, conscmd_callback { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private InventoryManager m_inventoryManager; private InventoryConfig m_config; @@ -48,7 +51,7 @@ namespace OpenSim.Grid.InventoryServer [STAThread] public static void Main(string[] args) { - log4net.Config.XmlConfigurator.Configure(); + XmlConfigurator.Configure(); OpenInventory_Main theServer = new OpenInventory_Main(); theServer.Startup(); diff --git a/OpenSim/Grid/MessagingServer/Main.cs b/OpenSim/Grid/MessagingServer/Main.cs index b288b33..bf793bf 100644 --- a/OpenSim/Grid/MessagingServer/Main.cs +++ b/OpenSim/Grid/MessagingServer/Main.cs @@ -26,11 +26,12 @@ */ using System; -using System.Collections.Generic; using System.IO; +using System.Reflection; using libsecondlife; +using log4net; +using log4net.Config; using OpenSim.Framework; -using OpenSim.Framework.Communications.Cache; using OpenSim.Framework.Console; using OpenSim.Framework.Servers; @@ -40,7 +41,7 @@ namespace OpenSim.Grid.MessagingServer /// public class OpenMessage_Main : BaseOpenSimServer, conscmd_callback { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private MessageServerConfig Cfg; private MessageService msgsvc; @@ -50,7 +51,7 @@ namespace OpenSim.Grid.MessagingServer [STAThread] public static void Main(string[] args) { - log4net.Config.XmlConfigurator.Configure(); + XmlConfigurator.Configure(); m_log.Info("Launching MessagingServer..."); diff --git a/OpenSim/Grid/MessagingServer/MessageService.cs b/OpenSim/Grid/MessagingServer/MessageService.cs index 1b16cb2..d824d21 100644 --- a/OpenSim/Grid/MessagingServer/MessageService.cs +++ b/OpenSim/Grid/MessagingServer/MessageService.cs @@ -26,25 +26,23 @@ */ using System; -using System.Net; -using System.Net.Sockets; using System.Collections; using System.Collections.Generic; +using System.Net; +using System.Reflection; using System.Threading; -//using System.Xml; using libsecondlife; +using log4net; using Nwc.XmlRpc; -using OpenSim.Framework; -using OpenSim.Framework.Console; using OpenSim.Data; -using OpenSim.Framework.Servers; -using FriendRights = libsecondlife.FriendRights; +using OpenSim.Framework; +//using System.Xml; namespace OpenSim.Grid.MessagingServer { public class MessageService { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private MessageServerConfig m_cfg; diff --git a/OpenSim/Grid/MessagingServer/PresenceInformer.cs b/OpenSim/Grid/MessagingServer/PresenceInformer.cs index f270bbe..59d0e13 100644 --- a/OpenSim/Grid/MessagingServer/PresenceInformer.cs +++ b/OpenSim/Grid/MessagingServer/PresenceInformer.cs @@ -25,18 +25,11 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; using System.Collections; -using System.Collections.Generic; -using System.Net; -using System.Net.Sockets; -using System.Text; -using libsecondlife; +using System.Reflection; +using log4net; using Nwc.XmlRpc; -using OpenSim.Framework; -using OpenSim.Framework.Console; using OpenSim.Data; -using OpenSim.Framework.Servers; namespace OpenSim.Grid.MessagingServer { @@ -44,7 +37,7 @@ namespace OpenSim.Grid.MessagingServer { public UserPresenceData presence1 = null; public UserPresenceData presence2 = null; - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public PresenceInformer() { diff --git a/OpenSim/Grid/MessagingServer/UserPresenceData.cs b/OpenSim/Grid/MessagingServer/UserPresenceData.cs index 4390903..7188201 100644 --- a/OpenSim/Grid/MessagingServer/UserPresenceData.cs +++ b/OpenSim/Grid/MessagingServer/UserPresenceData.cs @@ -26,11 +26,10 @@ */ using System; -using System.Collections; using System.Collections.Generic; using libsecondlife; -using OpenSim.Framework; using OpenSim.Data; +using OpenSim.Framework; namespace OpenSim.Grid.MessagingServer { diff --git a/OpenSim/Grid/MessagingServer/WorkUnitBase.cs b/OpenSim/Grid/MessagingServer/WorkUnitBase.cs index c4e6240..d25f044 100644 --- a/OpenSim/Grid/MessagingServer/WorkUnitBase.cs +++ b/OpenSim/Grid/MessagingServer/WorkUnitBase.cs @@ -25,10 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; -using System.Text; - namespace OpenSim.Grid.MessagingServer { public class WorkUnitBase diff --git a/OpenSim/Grid/MessagingServer/WorkUnitPresenceUpdate.cs b/OpenSim/Grid/MessagingServer/WorkUnitPresenceUpdate.cs index c54b4d9..c31f0c7 100644 --- a/OpenSim/Grid/MessagingServer/WorkUnitPresenceUpdate.cs +++ b/OpenSim/Grid/MessagingServer/WorkUnitPresenceUpdate.cs @@ -25,10 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; -using System.Text; - namespace OpenSim.Grid.MessagingServer { public class WorkUnitPresenceUpdate : WorkUnitBase diff --git a/OpenSim/Grid/MessagingServer/XMPPHTTPService.cs b/OpenSim/Grid/MessagingServer/XMPPHTTPService.cs index 4a66717..df3bc22 100644 --- a/OpenSim/Grid/MessagingServer/XMPPHTTPService.cs +++ b/OpenSim/Grid/MessagingServer/XMPPHTTPService.cs @@ -27,19 +27,16 @@ using System; using System.IO; -using System.Text; -using System.Xml; -using System.Xml.Serialization; +using System.Reflection; using libsecondlife; -using OpenSim.Framework; -using OpenSim.Framework.Console; +using log4net; using OpenSim.Framework.Servers; namespace OpenSim.Grid.MessagingServer { public class XMPPHTTPStreamHandler : BaseStreamHandler { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); /// @@ -85,7 +82,7 @@ namespace OpenSim.Grid.MessagingServer public class PostXMPPStreamHandler : BaseStreamHandler { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public override byte[] Handle(string path, Stream request) { diff --git a/OpenSim/Grid/ScriptServer/Application.cs b/OpenSim/Grid/ScriptServer/Application.cs index 5cf781f..ef93f65 100644 --- a/OpenSim/Grid/ScriptServer/Application.cs +++ b/OpenSim/Grid/ScriptServer/Application.cs @@ -26,6 +26,7 @@ */ using System; +using log4net.Config; namespace OpenSim.Grid.ScriptServer { @@ -35,7 +36,7 @@ namespace OpenSim.Grid.ScriptServer private static void Main(string[] args) { - log4net.Config.XmlConfigurator.Configure(); + XmlConfigurator.Configure(); AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); diff --git a/OpenSim/Grid/ScriptServer/FakeScene.cs b/OpenSim/Grid/ScriptServer/FakeScene.cs index bb2ff4e..480050d 100644 --- a/OpenSim/Grid/ScriptServer/FakeScene.cs +++ b/OpenSim/Grid/ScriptServer/FakeScene.cs @@ -25,9 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; -using System.Text; using OpenSim.Framework; using OpenSim.Framework.Communications; using OpenSim.Framework.Communications.Cache; diff --git a/OpenSim/Grid/ScriptServer/RemotingObject.cs b/OpenSim/Grid/ScriptServer/RemotingObject.cs index 8cdebe7..9d3065b 100644 --- a/OpenSim/Grid/ScriptServer/RemotingObject.cs +++ b/OpenSim/Grid/ScriptServer/RemotingObject.cs @@ -26,9 +26,6 @@ */ using System; -using System.Collections.Generic; -using System.Text; -using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.ScriptEngine.Common; namespace OpenSim.Grid.ScriptServer diff --git a/OpenSim/Grid/ScriptServer/RemotingServer.cs b/OpenSim/Grid/ScriptServer/RemotingServer.cs index 6d8cc19..7d0e334 100644 --- a/OpenSim/Grid/ScriptServer/RemotingServer.cs +++ b/OpenSim/Grid/ScriptServer/RemotingServer.cs @@ -25,13 +25,9 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; -using System.Text; using System.Runtime.Remoting; using System.Runtime.Remoting.Channels; using System.Runtime.Remoting.Channels.Tcp; -using OpenSim.Region.ScriptEngine.Common; namespace OpenSim.Grid.ScriptServer { diff --git a/OpenSim/Grid/ScriptServer/ScriptServer/Region/RegionConnectionManager.cs b/OpenSim/Grid/ScriptServer/ScriptServer/Region/RegionConnectionManager.cs index a3d014d..a9679f8 100644 --- a/OpenSim/Grid/ScriptServer/ScriptServer/Region/RegionConnectionManager.cs +++ b/OpenSim/Grid/ScriptServer/ScriptServer/Region/RegionConnectionManager.cs @@ -25,8 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using OpenSim.Framework.Console; - namespace OpenSim.Grid.ScriptServer { // Maintains connection and communication to a region diff --git a/OpenSim/Grid/ScriptServer/ScriptServer/RegionCommManager.cs b/OpenSim/Grid/ScriptServer/ScriptServer/RegionCommManager.cs index 6cfd6bf..c87352c 100644 --- a/OpenSim/Grid/ScriptServer/ScriptServer/RegionCommManager.cs +++ b/OpenSim/Grid/ScriptServer/ScriptServer/RegionCommManager.cs @@ -27,7 +27,7 @@ using System.Collections.Generic; using System.Threading; -using OpenSim.Framework.Console; +using OpenSim.Framework; namespace OpenSim.Grid.ScriptServer { @@ -61,7 +61,7 @@ namespace OpenSim.Grid.ScriptServer listenThread.Name = "ListenThread"; listenThread.IsBackground = true; listenThread.Start(); - OpenSim.Framework.ThreadTracker.Add(listenThread); + ThreadTracker.Add(listenThread); } /// diff --git a/OpenSim/Grid/ScriptServer/ScriptServer/ScriptEngineLoader.cs b/OpenSim/Grid/ScriptServer/ScriptServer/ScriptEngineLoader.cs index 6fcf5c8..4d8c559 100644 --- a/OpenSim/Grid/ScriptServer/ScriptServer/ScriptEngineLoader.cs +++ b/OpenSim/Grid/ScriptServer/ScriptServer/ScriptEngineLoader.cs @@ -28,14 +28,14 @@ using System; using System.IO; using System.Reflection; -using OpenSim.Framework.Console; +using log4net; using OpenSim.Region.ScriptEngine.Common; namespace OpenSim.Grid.ScriptServer.ScriptServer { internal class ScriptEngineLoader { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public ScriptServerInterfaces.ScriptEngine LoadScriptEngine(string EngineName) { diff --git a/OpenSim/Grid/ScriptServer/ScriptServer/ScriptEnginesManager.cs b/OpenSim/Grid/ScriptServer/ScriptServer/ScriptEnginesManager.cs index 2cb46dd..9d67602 100644 --- a/OpenSim/Grid/ScriptServer/ScriptServer/ScriptEnginesManager.cs +++ b/OpenSim/Grid/ScriptServer/ScriptServer/ScriptEnginesManager.cs @@ -26,7 +26,6 @@ */ using System.Collections.Generic; -using OpenSim.Framework.Console; using OpenSim.Region.ScriptEngine.Common; namespace OpenSim.Grid.ScriptServer.ScriptServer diff --git a/OpenSim/Grid/ScriptServer/ScriptServerMain.cs b/OpenSim/Grid/ScriptServer/ScriptServerMain.cs index 12e5f1d..729d262 100644 --- a/OpenSim/Grid/ScriptServer/ScriptServerMain.cs +++ b/OpenSim/Grid/ScriptServer/ScriptServerMain.cs @@ -25,10 +25,10 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System.IO; +using System; +using System.Reflection; using libsecondlife; -using Nini.Config; -using OpenSim.Framework; +using log4net; using OpenSim.Framework.Console; using OpenSim.Framework.Servers; using OpenSim.Grid.ScriptServer.ScriptServer; @@ -39,7 +39,7 @@ namespace OpenSim.Grid.ScriptServer { public class ScriptServerMain : BaseOpenSimServer, conscmd_callback { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); // // Root object. Creates objects used. @@ -77,7 +77,7 @@ namespace OpenSim.Grid.ScriptServer RPC.ReceiveCommand += new TRPC_Remote.ReceiveCommandDelegate(RPC_ReceiveCommand); m_TCPServer.StartListen(); - System.Console.ReadLine(); + Console.ReadLine(); } private void RPC_ReceiveCommand(int ID, string Command, object[] p) diff --git a/OpenSim/Grid/UserServer/Main.cs b/OpenSim/Grid/UserServer/Main.cs index 0f0104e..0534e3b 100644 --- a/OpenSim/Grid/UserServer/Main.cs +++ b/OpenSim/Grid/UserServer/Main.cs @@ -28,7 +28,11 @@ using System; using System.Collections.Generic; using System.IO; +using System.Net; +using System.Reflection; using libsecondlife; +using log4net; +using log4net.Config; using OpenSim.Framework; using OpenSim.Framework.Communications.Cache; using OpenSim.Framework.Console; @@ -41,7 +45,7 @@ namespace OpenSim.Grid.UserServer /// public class OpenUser_Main : BaseOpenSimServer, conscmd_callback { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private UserConfig Cfg; @@ -54,7 +58,7 @@ namespace OpenSim.Grid.UserServer [STAThread] public static void Main(string[] args) { - log4net.Config.XmlConfigurator.Configure(); + XmlConfigurator.Configure(); m_log.Info("Launching UserServer..."); @@ -191,7 +195,7 @@ namespace OpenSim.Grid.UserServer } } - catch (System.Net.WebException e) + catch (WebException e) { m_log.ErrorFormat( "[USERS]: Could not contact the inventory service at {0} to create an inventory for {1}", diff --git a/OpenSim/Grid/UserServer/MessageServersConnector.cs b/OpenSim/Grid/UserServer/MessageServersConnector.cs index 6355c4d..22505cb 100644 --- a/OpenSim/Grid/UserServer/MessageServersConnector.cs +++ b/OpenSim/Grid/UserServer/MessageServersConnector.cs @@ -25,23 +25,20 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; using System.Collections; using System.Collections.Generic; -using System.Text; -using System.Threading; +using System.Net; +using System.Reflection; using libsecondlife; +using log4net; using Nwc.XmlRpc; -using OpenSim.Framework; -using OpenSim.Framework.Communications.Cache; -using OpenSim.Framework.Console; using OpenSim.Framework.Servers; namespace OpenSim.Grid.UserServer { public class MessageServersConnector { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public Dictionary MessageServers; @@ -214,7 +211,7 @@ namespace OpenSim.Grid.UserServer { XmlRpcResponse GridResp = GridReq.Send(serv.URI, 6000); } - catch (System.Net.WebException) + catch (WebException) { m_log.Warn("[MSGCONNECTOR]: Unable to notify Message Server about log out. Other users might still think this user is online"); } @@ -249,7 +246,7 @@ namespace OpenSim.Grid.UserServer XmlRpcResponse GridResp = GridReq.Send(serv.URI, 6000); m_log.Info("[LOGIN]: Notified : " + serv.URI + " about user login"); } - catch (System.Net.WebException) + catch (WebException) { m_log.Warn("[MSGCONNECTOR]: Unable to notify Message Server about login. Presence might be borked for this user"); } diff --git a/OpenSim/Grid/UserServer/UserLoginService.cs b/OpenSim/Grid/UserServer/UserLoginService.cs index d7a3b1a..f294dcf 100644 --- a/OpenSim/Grid/UserServer/UserLoginService.cs +++ b/OpenSim/Grid/UserServer/UserLoginService.cs @@ -28,18 +28,15 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Threading; +using System.Reflection; using libsecondlife; +using log4net; using Nwc.XmlRpc; - +using OpenSim.Data; using OpenSim.Framework; using OpenSim.Framework.Communications.Cache; -using OpenSim.Framework.Console; -using OpenSim.Data; using OpenSim.Framework.Servers; -using OpenSim.Framework.Statistics; using OpenSim.Framework.UserManagement; -using InventoryFolder=OpenSim.Framework.InventoryFolder; namespace OpenSim.Grid.UserServer { @@ -48,7 +45,7 @@ namespace OpenSim.Grid.UserServer public class UserLoginService : LoginService { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public event UserLoggedInAtLocation OnUserLoggedInAtLocation; diff --git a/OpenSim/Grid/UserServer/UserManager.cs b/OpenSim/Grid/UserServer/UserManager.cs index 2a53d7b..aa2c959 100644 --- a/OpenSim/Grid/UserServer/UserManager.cs +++ b/OpenSim/Grid/UserServer/UserManager.cs @@ -28,11 +28,12 @@ using System; using System.Collections; using System.Collections.Generic; +using System.Reflection; using System.Text.RegularExpressions; using libsecondlife; +using log4net; using Nwc.XmlRpc; using OpenSim.Framework; -using OpenSim.Framework.Statistics; using OpenSim.Framework.UserManagement; namespace OpenSim.Grid.UserServer @@ -41,7 +42,7 @@ namespace OpenSim.Grid.UserServer public class UserManager : UserManagerBase { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public event logOffUser OnLogOffUser; private logOffUser handlerLogOffUser = null; @@ -389,7 +390,7 @@ namespace OpenSim.Grid.UserServer { userProfile.HomeLocationX = (float)Convert.ToDecimal((string)requestData["home_pos_x"]); } - catch (System.InvalidCastException) + catch (InvalidCastException) { m_log.Error("[PROFILE]:Failed to set home postion x"); } @@ -401,7 +402,7 @@ namespace OpenSim.Grid.UserServer { userProfile.HomeLocationY = (float)Convert.ToDecimal((string)requestData["home_pos_y"]); } - catch (System.InvalidCastException) + catch (InvalidCastException) { m_log.Error("[PROFILE]:Failed to set home postion y"); } @@ -412,7 +413,7 @@ namespace OpenSim.Grid.UserServer { userProfile.HomeLocationZ = (float)Convert.ToDecimal((string)requestData["home_pos_z"]); } - catch (System.InvalidCastException) + catch (InvalidCastException) { m_log.Error("[PROFILE]:Failed to set home postion z"); } @@ -423,7 +424,7 @@ namespace OpenSim.Grid.UserServer { userProfile.HomeLookAtX = (float)Convert.ToDecimal((string)requestData["home_look_x"]); } - catch (System.InvalidCastException) + catch (InvalidCastException) { m_log.Error("[PROFILE]:Failed to set home lookat x"); } @@ -434,7 +435,7 @@ namespace OpenSim.Grid.UserServer { userProfile.HomeLookAtY = (float)Convert.ToDecimal((string)requestData["home_look_y"]); } - catch (System.InvalidCastException) + catch (InvalidCastException) { m_log.Error("[PROFILE]:Failed to set home lookat y"); } @@ -445,7 +446,7 @@ namespace OpenSim.Grid.UserServer { userProfile.HomeLookAtZ = (float)Convert.ToDecimal((string)requestData["home_look_z"]); } - catch (System.InvalidCastException) + catch (InvalidCastException) { m_log.Error("[PROFILE]:Failed to set home lookat z"); } diff --git a/OpenSim/Region/Application/Application.cs b/OpenSim/Region/Application/Application.cs index ae299a4..eaa4788 100644 --- a/OpenSim/Region/Application/Application.cs +++ b/OpenSim/Region/Application/Application.cs @@ -26,7 +26,7 @@ */ using System; -using System.Net; +using log4net.Config; using Nini.Config; using OpenSim.Framework; using OpenSim.Framework.Console; @@ -44,7 +44,7 @@ namespace OpenSim // First line AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); - log4net.Config.XmlConfigurator.Configure(); + XmlConfigurator.Configure(); Console.WriteLine("OpenSim " + VersionInfo.Version + "\n"); diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index 14cbe13..aa08f81 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs @@ -29,10 +29,13 @@ using System; using System.Collections; using System.Collections.Generic; using System.IO; +using System.Net; +using System.Reflection; using System.Text; using System.Threading; using System.Timers; using libsecondlife; +using log4net; using Mono.Addins; using Nini.Config; using OpenSim.Framework; @@ -47,7 +50,7 @@ using OpenSim.Region.Environment; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; using OpenSim.Region.Physics.Manager; -using Timer = System.Timers.Timer; +using Timer=System.Timers.Timer; namespace OpenSim { @@ -55,7 +58,7 @@ namespace OpenSim public class OpenSimMain : RegionApplicationBase, conscmd_callback { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private string proxyUrl; private int proxyOffset = 0; @@ -757,7 +760,7 @@ namespace OpenSim } else { - m_sceneManager.CurrentScene.SetSceneCoreDebug(!System.Convert.ToBoolean(cmdparams[0]), !System.Convert.ToBoolean(cmdparams[1]), !System.Convert.ToBoolean(cmdparams[2])); + m_sceneManager.CurrentScene.SetSceneCoreDebug(!Convert.ToBoolean(cmdparams[0]), !Convert.ToBoolean(cmdparams[1]), !Convert.ToBoolean(cmdparams[2])); } } else @@ -813,7 +816,7 @@ namespace OpenSim // m_console.Notice("THREAD", _tc + ": ID: " + pt.Id + ", Started: " + pt.StartTime.ToString() + ", CPU time: " + pt.TotalProcessorTime + ", Pri: " + pt.BasePriority.ToString() + ", State: " + pt.ThreadState.ToString()); // } - List threads = OpenSim.Framework.ThreadTracker.GetThreads(); + List threads = ThreadTracker.GetThreads(); if (threads == null) { m_console.Notice("THREAD", "Thread tracking is only enabled in DEBUG mode."); @@ -1056,7 +1059,7 @@ namespace OpenSim case "unload": if (cmdparams.Length > 1) { - foreach (IRegionModule rm in new System.Collections.ArrayList(m_moduleLoader.GetLoadedSharedModules)) + foreach (IRegionModule rm in new ArrayList(m_moduleLoader.GetLoadedSharedModules)) { if (rm.Name.ToLower() == cmdparams[1].ToLower()) { @@ -1069,7 +1072,7 @@ namespace OpenSim case "load": if (cmdparams.Length > 1) { - foreach (Scene s in new System.Collections.ArrayList(m_sceneManager.Scenes)) + foreach (Scene s in new ArrayList(m_sceneManager.Scenes)) { m_console.Notice("Loading module: " + cmdparams[1]); @@ -1142,7 +1145,7 @@ namespace OpenSim { RegionInfo regionInfo = m_sceneManager.GetRegionInfo(presence.RegionHandle); string regionName; - System.Net.EndPoint ep = null; + EndPoint ep = null; if (regionInfo == null) { diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs index 292f7f6..7ff1f23 100644 --- a/OpenSim/Region/ClientStack/ClientView.cs +++ b/OpenSim/Region/ClientStack/ClientView.cs @@ -29,17 +29,18 @@ using System; using System.Collections.Generic; using System.Net; using System.Net.Sockets; +using System.Reflection; using System.Text; using System.Threading; using System.Timers; using Axiom.Math; using libsecondlife; using libsecondlife.Packets; +using log4net; using OpenSim.Framework; using OpenSim.Framework.Communications.Cache; -using OpenSim.Framework.Console; using OpenSim.Region.Environment.Scenes; -using Timer = System.Timers.Timer; +using Timer=System.Timers.Timer; namespace OpenSim.Region.ClientStack { @@ -51,7 +52,7 @@ namespace OpenSim.Region.ClientStack /// public class ClientView : IClientAPI { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); // ~ClientView() // { @@ -341,7 +342,7 @@ namespace OpenSim.Region.ClientStack m_clientThread.Name = "ClientThread"; m_clientThread.IsBackground = true; m_clientThread.Start(); - OpenSim.Framework.ThreadTracker.Add(m_clientThread); + ThreadTracker.Add(m_clientThread); } public void SetDebug(int newDebug) diff --git a/OpenSim/Region/ClientStack/PacketServer.cs b/OpenSim/Region/ClientStack/PacketServer.cs index 485c013..f9e3dc8 100644 --- a/OpenSim/Region/ClientStack/PacketServer.cs +++ b/OpenSim/Region/ClientStack/PacketServer.cs @@ -25,7 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; using System.Net; using System.Net.Sockets; using libsecondlife; diff --git a/OpenSim/Region/ClientStack/RegionApplicationBase.cs b/OpenSim/Region/ClientStack/RegionApplicationBase.cs index 2b023a6..bc0bea3 100644 --- a/OpenSim/Region/ClientStack/RegionApplicationBase.cs +++ b/OpenSim/Region/ClientStack/RegionApplicationBase.cs @@ -25,10 +25,11 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; using System.Collections.Generic; using System.Net; +using System.Reflection; using libsecondlife; +using log4net; using OpenSim.Framework; using OpenSim.Framework.Communications; using OpenSim.Framework.Communications.Cache; @@ -42,8 +43,8 @@ namespace OpenSim.Region.ClientStack { public abstract class RegionApplicationBase : BaseOpenSimServer { - private static readonly log4net.ILog m_log - = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log + = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); protected AssetCache m_assetCache; protected Dictionary m_clientCircuits = new Dictionary(); diff --git a/OpenSim/Region/ClientStack/UDPServer.cs b/OpenSim/Region/ClientStack/UDPServer.cs index 7a4cc97..7c4c03c 100644 --- a/OpenSim/Region/ClientStack/UDPServer.cs +++ b/OpenSim/Region/ClientStack/UDPServer.cs @@ -26,20 +26,20 @@ */ using System; -using System.Collections; using System.Collections.Generic; using System.Net; using System.Net.Sockets; +using System.Reflection; using libsecondlife.Packets; +using log4net; using OpenSim.Framework; using OpenSim.Framework.Communications.Cache; -using OpenSim.Framework.Console; namespace OpenSim.Region.ClientStack { public class UDPServer : ClientStackNetworkHandler { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); protected Dictionary clientCircuits = new Dictionary(); public Dictionary clientCircuits_reverse = new Dictionary(); diff --git a/OpenSim/Region/Communications/Local/LocalBackEndServices.cs b/OpenSim/Region/Communications/Local/LocalBackEndServices.cs index f5a5e83..2960a62 100644 --- a/OpenSim/Region/Communications/Local/LocalBackEndServices.cs +++ b/OpenSim/Region/Communications/Local/LocalBackEndServices.cs @@ -25,18 +25,20 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using System; using System.Collections; using System.Collections.Generic; +using System.Reflection; using libsecondlife; +using log4net; using OpenSim.Framework; using OpenSim.Framework.Communications; -using OpenSim.Framework.Console; namespace OpenSim.Region.Communications.Local { public class LocalBackEndServices : IGridServices, IInterRegionCommunications { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); protected Dictionary m_regions = new Dictionary(); @@ -47,7 +49,7 @@ namespace OpenSim.Region.Communications.Local private Dictionary m_queuedGridSettings = new Dictionary(); - public string _gdebugRegionName = System.String.Empty; + public string _gdebugRegionName = String.Empty; bool m_bAvailable=true; @@ -67,7 +69,7 @@ namespace OpenSim.Region.Communications.Local set { _gdebugRegionName = value; } } - public string _rdebugRegionName = System.String.Empty; + public string _rdebugRegionName = String.Empty; public string rdebugRegionName { diff --git a/OpenSim/Region/Communications/Local/LocalInventoryService.cs b/OpenSim/Region/Communications/Local/LocalInventoryService.cs index dafd637..a567eeb 100644 --- a/OpenSim/Region/Communications/Local/LocalInventoryService.cs +++ b/OpenSim/Region/Communications/Local/LocalInventoryService.cs @@ -26,7 +26,9 @@ */ using System.Collections.Generic; +using System.Reflection; using libsecondlife; +using log4net; using OpenSim.Framework; using OpenSim.Framework.Communications; using OpenSim.Framework.Communications.Cache; @@ -39,8 +41,8 @@ namespace OpenSim.Region.Communications.Local /// public class LocalInventoryService : InventoryServiceBase { - private static readonly log4net.ILog m_log - = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log + = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public override void RequestInventoryForUser(LLUUID userID, InventoryReceiptCallback callback) { diff --git a/OpenSim/Region/Communications/Local/LocalLoginService.cs b/OpenSim/Region/Communications/Local/LocalLoginService.cs index 79bf9e5..c4823f4 100644 --- a/OpenSim/Region/Communications/Local/LocalLoginService.cs +++ b/OpenSim/Region/Communications/Local/LocalLoginService.cs @@ -28,14 +28,11 @@ using System; using System.Collections; using System.Collections.Generic; +using System.Reflection; using libsecondlife; - +using log4net; using OpenSim.Framework; -using OpenSim.Framework.Communications.Cache; -using OpenSim.Framework.Console; -using OpenSim.Framework.Statistics; using OpenSim.Framework.UserManagement; -using InventoryFolder=OpenSim.Framework.InventoryFolder; namespace OpenSim.Region.Communications.Local { @@ -43,8 +40,8 @@ namespace OpenSim.Region.Communications.Local public class LocalLoginService : LoginService { - private static readonly log4net.ILog m_log - = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log + = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private CommunicationsLocal m_Parent; diff --git a/OpenSim/Region/Communications/Local/LocalUserServices.cs b/OpenSim/Region/Communications/Local/LocalUserServices.cs index c543762..29de8fd 100644 --- a/OpenSim/Region/Communications/Local/LocalUserServices.cs +++ b/OpenSim/Region/Communications/Local/LocalUserServices.cs @@ -29,7 +29,6 @@ using System; using libsecondlife; using OpenSim.Framework; using OpenSim.Framework.Communications; -using OpenSim.Framework.Statistics; using OpenSim.Framework.UserManagement; namespace OpenSim.Region.Communications.Local diff --git a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs index 1135ddd..eada868 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs @@ -30,15 +30,17 @@ using System.Collections; using System.Collections.Generic; using System.Net; using System.Net.Sockets; +using System.Reflection; using System.Runtime.Remoting; using System.Runtime.Remoting.Channels; using System.Runtime.Remoting.Channels.Tcp; using System.Security.Authentication; +using System.Threading; using libsecondlife; +using log4net; using Nwc.XmlRpc; using OpenSim.Framework; using OpenSim.Framework.Communications; -using OpenSim.Framework.Console; using OpenSim.Framework.Servers; using OpenSim.Region.Communications.Local; @@ -46,7 +48,7 @@ namespace OpenSim.Region.Communications.OGS1 { public class OGS1GridServices : IGridServices, IInterRegionCommunications { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private LocalBackEndServices m_localBackend = new LocalBackEndServices(); private Dictionary m_remoteRegionInfoCache = new Dictionary(); @@ -1461,7 +1463,7 @@ namespace OpenSim.Region.Communications.OGS1 Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); IAsyncResult ar = socket.BeginConnect(m_EndPoint, ConnectedMethodCallback, socket); ar.AsyncWaitHandle.WaitOne(timeOut*1000, false); - System.Threading.Thread.Sleep(500); + Thread.Sleep(500); } public bool Available diff --git a/OpenSim/Region/Communications/OGS1/OGS1InterSimComms.cs b/OpenSim/Region/Communications/OGS1/OGS1InterSimComms.cs index 2e106d7..8285fb1 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1InterSimComms.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1InterSimComms.cs @@ -26,8 +26,10 @@ */ using System; +using System.Reflection; using System.Runtime.Remoting; using libsecondlife; +using log4net; using OpenSim.Framework; namespace OpenSim.Region.Communications.OGS1 @@ -153,7 +155,7 @@ namespace OpenSim.Region.Communications.OGS1 public class OGS1InterRegionRemoting : MarshalByRefObject { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public OGS1InterRegionRemoting() { diff --git a/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs b/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs index fbe905c..e0167a7 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs @@ -27,19 +27,21 @@ using System; using System.Collections.Generic; +using System.Net; +using System.Reflection; using libsecondlife; +using log4net; using OpenSim.Framework; using OpenSim.Framework.Communications; using OpenSim.Framework.Communications.Cache; -using OpenSim.Framework.Console; using OpenSim.Framework.Servers; namespace OpenSim.Region.Communications.OGS1 { public class OGS1InventoryService : IInventoryServices { - private static readonly log4net.ILog m_log - = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log + = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private string _inventoryServerUrl; private Dictionary m_RequestingInventory = new Dictionary(); @@ -71,7 +73,7 @@ namespace OpenSim.Region.Communications.OGS1 requester.BeginPostObject(_inventoryServerUrl + "/GetInventory/", userID.UUID); } - catch (System.Net.WebException e) + catch (WebException e) { m_log.ErrorFormat("[OGS1 INVENTORY SERVICE]: Request inventory operation failed, {0} {1}", e.Source, e.Message); @@ -153,7 +155,7 @@ namespace OpenSim.Region.Communications.OGS1 SynchronousRestObjectPoster.BeginPostObject( "POST", _inventoryServerUrl + "/NewFolder/", folder); } - catch (System.Net.WebException e) + catch (WebException e) { m_log.ErrorFormat("[OGS1 INVENTORY SERVICE]: Add new inventory folder operation failed, {0} {1}", e.Source, e.Message); @@ -167,7 +169,7 @@ namespace OpenSim.Region.Communications.OGS1 SynchronousRestObjectPoster.BeginPostObject( "POST", _inventoryServerUrl + "/MoveFolder/", folder); } - catch (System.Net.WebException e) + catch (WebException e) { m_log.ErrorFormat("[OGS1 INVENTORY SERVICE]: Move inventory folder operation failed, {0} {1}", e.Source, e.Message); @@ -181,7 +183,7 @@ namespace OpenSim.Region.Communications.OGS1 SynchronousRestObjectPoster.BeginPostObject( "POST", _inventoryServerUrl + "/NewItem/", item); } - catch (System.Net.WebException e) + catch (WebException e) { m_log.ErrorFormat("[OGS1 INVENTORY SERVICE]: Add new inventory item operation failed, {0} {1}", e.Source, e.Message); @@ -195,7 +197,7 @@ namespace OpenSim.Region.Communications.OGS1 SynchronousRestObjectPoster.BeginPostObject( "POST", _inventoryServerUrl + "/DeleteItem/", item); } - catch (System.Net.WebException e) + catch (WebException e) { m_log.ErrorFormat("[OGS1 INVENTORY SERVICE]: Delete inventory item operation failed, {0} {1}", e.Source, e.Message); diff --git a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs index c140213..56b0e8c 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs @@ -29,17 +29,18 @@ using System; using System.Collections; using System.Collections.Generic; using System.Net; +using System.Reflection; using System.Text.RegularExpressions; using libsecondlife; +using log4net; using Nwc.XmlRpc; using OpenSim.Framework; -using OpenSim.Framework.Console; namespace OpenSim.Region.Communications.OGS1 { public class OGS1UserServices : IUserService { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private CommunicationsOGS1 m_parent; @@ -158,7 +159,7 @@ namespace OpenSim.Region.Communications.OGS1 { XmlRpcResponse resp = req.Send(m_parent.NetworkServersInfo.UserURL, 3000); } - catch (System.Net.WebException) + catch (WebException) { m_log.Warn("[LOGOFF]: Unable to notify grid server of user logoff"); } diff --git a/OpenSim/Region/DataSnapshot/DataRequestHandler.cs b/OpenSim/Region/DataSnapshot/DataRequestHandler.cs index a59d86a..7e096df 100644 --- a/OpenSim/Region/DataSnapshot/DataRequestHandler.cs +++ b/OpenSim/Region/DataSnapshot/DataRequestHandler.cs @@ -26,14 +26,11 @@ * */ -using System; -using System.Collections.Generic; using System.Collections; -using System.Text; +using System.Reflection; using System.Xml; +using log4net; using OpenSim.Region.Environment.Scenes; -using OpenSim.Framework.Servers; -using OpenSim.Framework.Console; namespace OpenSim.Region.DataSnapshot { @@ -41,7 +38,7 @@ namespace OpenSim.Region.DataSnapshot { private Scene m_scene = null; private DataSnapshotManager m_externalData = null; - private log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public DataRequestHandler(Scene scene, DataSnapshotManager externalData) { diff --git a/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs b/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs index cb9ce44..682763b 100644 --- a/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs +++ b/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs @@ -28,18 +28,18 @@ using System; using System.Collections.Generic; -using System.Reflection; -using System.Xml; using System.IO; +using System.Net; +using System.Reflection; using System.Text; using System.Timers; -using OpenSim.Framework; +using System.Xml; +using libsecondlife; +using log4net; +using Nini.Config; using OpenSim.Framework.Communications; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; -using Nini.Config; -using libsecondlife; -using libsecondlife.Packets; namespace OpenSim.Region.DataSnapshot { @@ -47,13 +47,13 @@ namespace OpenSim.Region.DataSnapshot { #region Class members private List m_scenes = new List(); - private log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private bool m_enabled = false; private bool m_configLoaded = false; internal object m_syncInit = new object(); private DataRequestHandler m_requests = null; private Dictionary> m_dataproviders = new Dictionary>(); - private Dictionary m_gridinfo = new Dictionary(); + private Dictionary m_gridinfo = new Dictionary(); //private int m_oldestSnapshot = 0; private int m_maxSnapshots = 500; private int m_lastSnapshot = 0; @@ -63,7 +63,7 @@ namespace OpenSim.Region.DataSnapshot private string m_hostname = "127.0.0.1"; private Timer m_periodic = null; private int m_period = 60; // in seconds - private List m_disabledModules = new List(); + private List m_disabledModules = new List(); #endregion #region IRegionModule @@ -72,7 +72,7 @@ namespace OpenSim.Region.DataSnapshot } - public void Initialise(Scene scene, Nini.Config.IConfigSource config) + public void Initialise(Scene scene, IConfigSource config) { if (!m_scenes.Contains(scene)) m_scenes.Add(scene); @@ -495,7 +495,7 @@ namespace OpenSim.Region.DataSnapshot { reply = cli.Request(); } - catch (System.Net.WebException) + catch (WebException) { m_log.Warn("[DATASNAPSHOT] Unable to notify " + url); } @@ -514,7 +514,7 @@ namespace OpenSim.Region.DataSnapshot m_log.Warn("[DATASNAPSHOT] Unable to decode reply from data service. Ignoring. " + e.StackTrace); } // This is not quite working, so... - string responseStr = System.Text.ASCIIEncoding.UTF8.GetString(response); + string responseStr = ASCIIEncoding.UTF8.GetString(response); m_log.Info("[DATASNAPSHOT] data service notified: " + url); } diff --git a/OpenSim/Region/DataSnapshot/EstateSnapshot.cs b/OpenSim/Region/DataSnapshot/EstateSnapshot.cs index b517c16..20ba27c 100644 --- a/OpenSim/Region/DataSnapshot/EstateSnapshot.cs +++ b/OpenSim/Region/DataSnapshot/EstateSnapshot.cs @@ -26,16 +26,9 @@ */ using System; -using System.Collections.Generic; -using System.Text; using System.Xml; -using OpenSim.Region.Environment.Scenes; -using OpenSim.Region.Environment.Modules.LandManagement; -using OpenSim.Framework; -using OpenSim.Framework.Console; -using OpenSim.Framework.Communications; using libsecondlife; -using libsecondlife.Packets; +using OpenSim.Region.Environment.Scenes; namespace OpenSim.Region.DataSnapshot { diff --git a/OpenSim/Region/DataSnapshot/Interfaces/IDataSnapshotProvider.cs b/OpenSim/Region/DataSnapshot/Interfaces/IDataSnapshotProvider.cs index 26124ce..8f580fc 100644 --- a/OpenSim/Region/DataSnapshot/Interfaces/IDataSnapshotProvider.cs +++ b/OpenSim/Region/DataSnapshot/Interfaces/IDataSnapshotProvider.cs @@ -26,12 +26,8 @@ * */ -using System; -using System.Collections.Generic; -using System.Text; using System.Xml; using OpenSim.Region.Environment.Scenes; -using libsecondlife; namespace OpenSim.Region.DataSnapshot { diff --git a/OpenSim/Region/DataSnapshot/LandSnapshot.cs b/OpenSim/Region/DataSnapshot/LandSnapshot.cs index a82f4be..4c17513 100644 --- a/OpenSim/Region/DataSnapshot/LandSnapshot.cs +++ b/OpenSim/Region/DataSnapshot/LandSnapshot.cs @@ -28,18 +28,14 @@ using System; using System.Collections.Generic; -using System.Text; -using System.Xml; using System.Reflection; - -using OpenSim.Region.Environment.Scenes; -using OpenSim.Region.Environment.Modules.LandManagement; -using OpenSim.Region.Environment.Interfaces; -using OpenSim.Framework; -using OpenSim.Framework.Console; -using OpenSim.Framework.Communications; +using System.Xml; using libsecondlife; -using libsecondlife.Packets; +using log4net; +using OpenSim.Framework; +using OpenSim.Region.Environment.Interfaces; +using OpenSim.Region.Environment.Modules.LandManagement; +using OpenSim.Region.Environment.Scenes; namespace OpenSim.Region.DataSnapshot { @@ -48,7 +44,7 @@ namespace OpenSim.Region.DataSnapshot private Scene m_scene = null; private DataSnapshotManager m_parent = null; //private Dictionary m_landIndexed = new Dictionary(); - private log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); #region Dead code diff --git a/OpenSim/Region/DataSnapshot/ObjectSnapshot.cs b/OpenSim/Region/DataSnapshot/ObjectSnapshot.cs index 353a02b..d48ecfd 100644 --- a/OpenSim/Region/DataSnapshot/ObjectSnapshot.cs +++ b/OpenSim/Region/DataSnapshot/ObjectSnapshot.cs @@ -25,14 +25,10 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; -using System.Text; -using System.Xml; using System.Reflection; +using System.Xml; +using log4net; using OpenSim.Region.Environment.Scenes; -using OpenSim.Framework; -using libsecondlife; namespace OpenSim.Region.DataSnapshot { @@ -40,7 +36,7 @@ namespace OpenSim.Region.DataSnapshot { private Scene m_scene = null; private DataSnapshotManager m_parent = null; - private log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public void Initialize(Scene scene, DataSnapshotManager parent) { diff --git a/OpenSim/Region/Environment/EstateManager.cs b/OpenSim/Region/Environment/EstateManager.cs index ba4f0c6..b3ffd10 100644 --- a/OpenSim/Region/Environment/EstateManager.cs +++ b/OpenSim/Region/Environment/EstateManager.cs @@ -27,11 +27,11 @@ using System; using System.Collections.Generic; -using System.Text; +using System.Reflection; using libsecondlife; using libsecondlife.Packets; +using log4net; using OpenSim.Framework; -using OpenSim.Framework.Console; using OpenSim.Region.Environment.Scenes; namespace OpenSim.Region.Environment @@ -41,7 +41,7 @@ namespace OpenSim.Region.Environment /// public class EstateManager { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private Scene m_scene; private RegionInfo m_regInfo; diff --git a/OpenSim/Region/Environment/Interfaces/ICommand.cs b/OpenSim/Region/Environment/Interfaces/ICommand.cs index c119736..4eeb16c 100644 --- a/OpenSim/Region/Environment/Interfaces/ICommand.cs +++ b/OpenSim/Region/Environment/Interfaces/ICommand.cs @@ -25,16 +25,14 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; - -using OpenSim.Region.Environment.Modules.ModuleFramework; +using System.Collections.Generic; namespace OpenSim.Region.Environment.Interfaces { public interface ICommand { void AddArgument(string name, string helptext, string type); - System.Collections.Generic.Dictionary Arguments { get; } + Dictionary Arguments { get; } string Help { get; } string Name { get; } void Run(object[] args); diff --git a/OpenSim/Region/Environment/Interfaces/ICommandableModule.cs b/OpenSim/Region/Environment/Interfaces/ICommandableModule.cs index 067c43a..c4ed942 100644 --- a/OpenSim/Region/Environment/Interfaces/ICommandableModule.cs +++ b/OpenSim/Region/Environment/Interfaces/ICommandableModule.cs @@ -25,12 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; -using System.Text; - -using OpenSim.Region.Environment.Modules.ModuleFramework; - namespace OpenSim.Region.Environment.Interfaces { public interface ICommandableModule diff --git a/OpenSim/Region/Environment/Interfaces/ICommander.cs b/OpenSim/Region/Environment/Interfaces/ICommander.cs index 7cc6ffb..c4102af 100644 --- a/OpenSim/Region/Environment/Interfaces/ICommander.cs +++ b/OpenSim/Region/Environment/Interfaces/ICommander.cs @@ -25,10 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; - -using OpenSim.Region.Environment.Modules.ModuleFramework; - namespace OpenSim.Region.Environment.Interfaces { public interface ICommander diff --git a/OpenSim/Region/Environment/Interfaces/ILandChannel.cs b/OpenSim/Region/Environment/Interfaces/ILandChannel.cs index 98bab63..464a213 100644 --- a/OpenSim/Region/Environment/Interfaces/ILandChannel.cs +++ b/OpenSim/Region/Environment/Interfaces/ILandChannel.cs @@ -25,14 +25,11 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; using System.Collections.Generic; -using System.Text; - using libsecondlife; using libsecondlife.Packets; -using OpenSim.Region.Environment.Scenes; using OpenSim.Framework; +using OpenSim.Region.Environment.Scenes; namespace OpenSim.Region.Environment.Interfaces { diff --git a/OpenSim/Region/Environment/Interfaces/ILandObject.cs b/OpenSim/Region/Environment/Interfaces/ILandObject.cs index 33ccddc..420ffc3 100644 --- a/OpenSim/Region/Environment/Interfaces/ILandObject.cs +++ b/OpenSim/Region/Environment/Interfaces/ILandObject.cs @@ -25,15 +25,11 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; using System.Collections.Generic; -using System.Text; - using libsecondlife; using libsecondlife.Packets; -using OpenSim.Region.Environment.Scenes; - using OpenSim.Framework; +using OpenSim.Region.Environment.Scenes; namespace OpenSim.Region.Environment.Interfaces { diff --git a/OpenSim/Region/Environment/Interfaces/ITextureSender.cs b/OpenSim/Region/Environment/Interfaces/ITextureSender.cs index f262b9a..1b9e4eb 100644 --- a/OpenSim/Region/Environment/Interfaces/ITextureSender.cs +++ b/OpenSim/Region/Environment/Interfaces/ITextureSender.cs @@ -25,8 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; - namespace OpenSim.Region.Environment.Interfaces { /// diff --git a/OpenSim/Region/Environment/Interfaces/IXMLRPC.cs b/OpenSim/Region/Environment/Interfaces/IXMLRPC.cs index 358b56f..c7f1001 100644 --- a/OpenSim/Region/Environment/Interfaces/IXMLRPC.cs +++ b/OpenSim/Region/Environment/Interfaces/IXMLRPC.cs @@ -27,8 +27,6 @@ using libsecondlife; using OpenSim.Region.Environment.Modules; -using System.Collections; -using System.Collections.Generic; namespace OpenSim.Region.Environment.Interfaces { diff --git a/OpenSim/Region/Environment/ModuleLoader.cs b/OpenSim/Region/Environment/ModuleLoader.cs index 7fb8d8a..43ca7bd 100644 --- a/OpenSim/Region/Environment/ModuleLoader.cs +++ b/OpenSim/Region/Environment/ModuleLoader.cs @@ -29,8 +29,8 @@ using System; using System.Collections.Generic; using System.IO; using System.Reflection; +using log4net; using Nini.Config; -using OpenSim.Framework.Console; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Modules; using OpenSim.Region.Environment.Scenes; @@ -39,7 +39,7 @@ namespace OpenSim.Region.Environment { public class ModuleLoader { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public Dictionary LoadedAssemblys = new Dictionary(); diff --git a/OpenSim/Region/Environment/Modules/AgentAssetTransactionModule.cs b/OpenSim/Region/Environment/Modules/AgentAssetTransactionModule.cs index 7ae3eba..cec7192 100644 --- a/OpenSim/Region/Environment/Modules/AgentAssetTransactionModule.cs +++ b/OpenSim/Region/Environment/Modules/AgentAssetTransactionModule.cs @@ -27,7 +27,9 @@ using System; using System.Collections.Generic; +using System.Reflection; using libsecondlife; +using log4net; using Nini.Config; using OpenSim.Framework; using OpenSim.Region.Environment.Interfaces; @@ -129,8 +131,8 @@ namespace OpenSim.Region.Environment.Modules //should merge this classes and clean up public class AgentAssetTransactionsManager { - private static readonly log4net.ILog m_log - = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log + = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); // Fields public Scene MyScene; diff --git a/OpenSim/Region/Environment/Modules/AssetDownloadModule.cs b/OpenSim/Region/Environment/Modules/AssetDownloadModule.cs index d5f1b36..97db31e 100644 --- a/OpenSim/Region/Environment/Modules/AssetDownloadModule.cs +++ b/OpenSim/Region/Environment/Modules/AssetDownloadModule.cs @@ -25,9 +25,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; using System.Collections.Generic; -using System.Threading; using libsecondlife; using libsecondlife.Packets; using Nini.Config; diff --git a/OpenSim/Region/Environment/Modules/AsteriskVoiceModule.cs b/OpenSim/Region/Environment/Modules/AsteriskVoiceModule.cs index 52b9c3e..1b537c2 100644 --- a/OpenSim/Region/Environment/Modules/AsteriskVoiceModule.cs +++ b/OpenSim/Region/Environment/Modules/AsteriskVoiceModule.cs @@ -27,24 +27,25 @@ using System; using System.Collections; -using System.Collections.Generic; +using System.Reflection; using libsecondlife; +using log4net; using Nini.Config; using Nwc.XmlRpc; using OpenSim.Framework; using OpenSim.Framework.Communications.Cache; using OpenSim.Framework.Servers; using OpenSim.Region.Capabilities; -using Caps = OpenSim.Region.Capabilities.Caps; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; +using Caps=OpenSim.Region.Capabilities.Caps; namespace OpenSim.Region.Environment.Modules { public class AsteriskVoiceModule : IRegionModule { - private static readonly log4net.ILog m_log = - log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = + LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private Scene m_scene; private IConfig m_config; diff --git a/OpenSim/Region/Environment/Modules/AvatarProfilesModule.cs b/OpenSim/Region/Environment/Modules/AvatarProfilesModule.cs index e3ad297..44b3f8b 100644 --- a/OpenSim/Region/Environment/Modules/AvatarProfilesModule.cs +++ b/OpenSim/Region/Environment/Modules/AvatarProfilesModule.cs @@ -25,7 +25,10 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using System; +using System.Reflection; using libsecondlife; +using log4net; using Nini.Config; using OpenSim.Framework; using OpenSim.Region.Environment.Interfaces; @@ -35,7 +38,7 @@ namespace OpenSim.Region.Environment.Modules { public class AvatarProfilesModule : IRegionModule { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private Scene m_scene; public AvatarProfilesModule() @@ -92,8 +95,8 @@ namespace OpenSim.Region.Environment.Modules { remoteClient.SendAvatarProperties(profile.ID, profile.AboutText, Util.ToDateTime(profile.Created).ToString(), - System.String.Empty, profile.FirstLifeAboutText, profile.CanDoMask, - profile.FirstLifeImage, profile.Image, System.String.Empty, partner); + String.Empty, profile.FirstLifeAboutText, profile.CanDoMask, + profile.FirstLifeImage, profile.Image, String.Empty, partner); } else { diff --git a/OpenSim/Region/Environment/Modules/BetaGridLikeMoneyModule.cs b/OpenSim/Region/Environment/Modules/BetaGridLikeMoneyModule.cs index 0748719..d5b2ea2 100644 --- a/OpenSim/Region/Environment/Modules/BetaGridLikeMoneyModule.cs +++ b/OpenSim/Region/Environment/Modules/BetaGridLikeMoneyModule.cs @@ -30,16 +30,15 @@ using System.Collections; using System.Collections.Generic; using System.Net; using System.Net.Sockets; +using System.Reflection; using System.Xml; using libsecondlife; +using log4net; using Nini.Config; +using Nwc.XmlRpc; using OpenSim.Framework; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; -using Nwc.XmlRpc; - -using MoneyTransferArgs = OpenSim.Region.Environment.Scenes.EventManager.MoneyTransferArgs; -using LandBuyArgs = OpenSim.Region.Environment.Scenes.EventManager.LandBuyArgs; namespace OpenSim.Region.Environment.Modules { @@ -56,7 +55,7 @@ namespace OpenSim.Region.Environment.Modules /// public class BetaGridLikeMoneyModule: IRegionModule { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); /// /// Region UUIDS indexed by AgentID @@ -341,7 +340,7 @@ namespace OpenSim.Region.Environment.Modules } } - private void ValidateLandBuy (Object osender, LandBuyArgs e) + private void ValidateLandBuy (Object osender, EventManager.LandBuyArgs e) { if (m_MoneyAddress.Length == 0) { @@ -372,7 +371,7 @@ namespace OpenSim.Region.Environment.Modules } } - private void processLandBuy(Object osender, LandBuyArgs e) + private void processLandBuy(Object osender, EventManager.LandBuyArgs e) { lock(e) { @@ -396,7 +395,7 @@ namespace OpenSim.Region.Environment.Modules /// /// /// - private void MoneyTransferAction (Object osender, MoneyTransferArgs e) + private void MoneyTransferAction (Object osender, EventManager.MoneyTransferArgs e) { IClientAPI sender = null; IClientAPI receiver = null; @@ -724,7 +723,7 @@ namespace OpenSim.Region.Environment.Modules { returnfunds = GetFundsForAgentID(agentID); } - catch (System.Exception e) + catch (Exception e) { client.SendAlertMessage(e.Message + " "); } diff --git a/OpenSim/Region/Environment/Modules/ChatModule.cs b/OpenSim/Region/Environment/Modules/ChatModule.cs index f854409..30c1397 100644 --- a/OpenSim/Region/Environment/Modules/ChatModule.cs +++ b/OpenSim/Region/Environment/Modules/ChatModule.cs @@ -29,9 +29,11 @@ using System; using System.Collections.Generic; using System.IO; using System.Net.Sockets; +using System.Reflection; using System.Text.RegularExpressions; using System.Threading; using libsecondlife; +using log4net; using Nini.Config; using OpenSim.Framework; using OpenSim.Region.Environment.Interfaces; @@ -41,7 +43,7 @@ namespace OpenSim.Region.Environment.Modules { public class ChatModule : IRegionModule, ISimChat { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private List m_scenes = new List(); @@ -116,7 +118,7 @@ namespace OpenSim.Region.Environment.Modules if (!m_irc_connector.IsAlive) { m_irc_connector.Start(); - OpenSim.Framework.ThreadTracker.Add(m_irc_connector); + ThreadTracker.Add(m_irc_connector); } } catch (Exception) @@ -267,7 +269,7 @@ namespace OpenSim.Region.Environment.Modules if (!m_irc_connector.IsAlive) { m_irc_connector.Start(); - OpenSim.Framework.ThreadTracker.Add(m_irc_connector); + ThreadTracker.Add(m_irc_connector); } } catch (Exception) @@ -336,7 +338,7 @@ namespace OpenSim.Region.Environment.Modules internal class IRCChatModule { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private string m_server = null; private uint m_port = 6668; @@ -431,13 +433,13 @@ namespace OpenSim.Region.Environment.Modules pingSender.Name = "PingSenderThread"; pingSender.IsBackground = true; pingSender.Start(); - OpenSim.Framework.ThreadTracker.Add(pingSender); + ThreadTracker.Add(pingSender); listener = new Thread(new ThreadStart(ListenerRun)); listener.Name = "IRCChatModuleListenerThread"; listener.IsBackground = true; listener.Start(); - OpenSim.Framework.ThreadTracker.Add(listener); + ThreadTracker.Add(listener); m_writer.WriteLine(m_user); m_writer.Flush(); diff --git a/OpenSim/Region/Environment/Modules/CommanderTestModule.cs b/OpenSim/Region/Environment/Modules/CommanderTestModule.cs index 0133f27..a30de73 100644 --- a/OpenSim/Region/Environment/Modules/CommanderTestModule.cs +++ b/OpenSim/Region/Environment/Modules/CommanderTestModule.cs @@ -26,13 +26,10 @@ */ using System; -using System.Collections.Generic; -using libsecondlife; using Nini.Config; -using OpenSim.Framework; using OpenSim.Region.Environment.Interfaces; -using OpenSim.Region.Environment.Scenes; using OpenSim.Region.Environment.Modules.ModuleFramework; +using OpenSim.Region.Environment.Scenes; namespace OpenSim.Region.Environment.Modules { diff --git a/OpenSim/Region/Environment/Modules/DynamicTextureModule.cs b/OpenSim/Region/Environment/Modules/DynamicTextureModule.cs index ee84499..02354f1 100644 --- a/OpenSim/Region/Environment/Modules/DynamicTextureModule.cs +++ b/OpenSim/Region/Environment/Modules/DynamicTextureModule.cs @@ -26,14 +26,15 @@ */ using System; -using System.Drawing; using System.Collections.Generic; +using System.Drawing; +using System.Drawing.Imaging; using libsecondlife; using Nini.Config; +using OpenJPEGNet; using OpenSim.Framework; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; -using OpenJPEGNet; namespace OpenSim.Region.Environment.Modules { @@ -252,7 +253,7 @@ namespace OpenSim.Region.Environment.Modules Bitmap joint; Graphics jG; - joint = new Bitmap(back.Width, back.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb); + joint = new Bitmap(back.Width, back.Height, PixelFormat.Format32bppArgb); jG = Graphics.FromImage(joint); jG.DrawImage(back, 0, 0, back.Width, back.Height); diff --git a/OpenSim/Region/Environment/Modules/ExportSerialiser/ExportSerialisationModule.cs b/OpenSim/Region/Environment/Modules/ExportSerialiser/ExportSerialisationModule.cs index 0faa573..f811f22 100644 --- a/OpenSim/Region/Environment/Modules/ExportSerialiser/ExportSerialisationModule.cs +++ b/OpenSim/Region/Environment/Modules/ExportSerialiser/ExportSerialisationModule.cs @@ -27,18 +27,15 @@ using System; using System.Collections.Generic; -using System.Drawing; -using libsecondlife; +using System.IO; using Nini.Config; -using OpenSim.Framework; using OpenSim.Region.Environment.Interfaces; -using OpenSim.Region.Environment.Scenes; using OpenSim.Region.Environment.Modules.ModuleFramework; -using System.IO; +using OpenSim.Region.Environment.Scenes; namespace OpenSim.Region.Environment.Modules.ExportSerialiser { - public class ExportSerialisationModule : IRegionModule, OpenSim.Region.Environment.Modules.ExportSerialiser.IRegionSerialiser + public class ExportSerialisationModule : IRegionModule, IRegionSerialiser { private List m_regions = new List(); private List m_serialisers = new List(); diff --git a/OpenSim/Region/Environment/Modules/ExportSerialiser/IFileSerialiser.cs b/OpenSim/Region/Environment/Modules/ExportSerialiser/IFileSerialiser.cs index f13c8fa..8cd97a8 100644 --- a/OpenSim/Region/Environment/Modules/ExportSerialiser/IFileSerialiser.cs +++ b/OpenSim/Region/Environment/Modules/ExportSerialiser/IFileSerialiser.cs @@ -25,10 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; -using System.Text; - using OpenSim.Region.Environment.Scenes; namespace OpenSim.Region.Environment.Modules.ExportSerialiser diff --git a/OpenSim/Region/Environment/Modules/ExportSerialiser/IRegionSerialiser.cs b/OpenSim/Region/Environment/Modules/ExportSerialiser/IRegionSerialiser.cs index a9454fc..5b10957 100644 --- a/OpenSim/Region/Environment/Modules/ExportSerialiser/IRegionSerialiser.cs +++ b/OpenSim/Region/Environment/Modules/ExportSerialiser/IRegionSerialiser.cs @@ -25,11 +25,13 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; +using System.Collections.Generic; +using OpenSim.Region.Environment.Scenes; + namespace OpenSim.Region.Environment.Modules.ExportSerialiser { public interface IRegionSerialiser { - System.Collections.Generic.List SerialiseRegion(OpenSim.Region.Environment.Scenes.Scene scene, string saveDir); + List SerialiseRegion(Scene scene, string saveDir); } } diff --git a/OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseObjects.cs b/OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseObjects.cs index e413466..ac80f40 100644 --- a/OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseObjects.cs +++ b/OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseObjects.cs @@ -25,10 +25,11 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using OpenSim.Region.Environment.Scenes; -using System.IO; using System.Collections.Generic; +using System.IO; +using System.Text; using System.Xml; +using OpenSim.Region.Environment.Scenes; namespace OpenSim.Region.Environment.Modules.ExportSerialiser { @@ -61,7 +62,7 @@ namespace OpenSim.Region.Environment.Modules.ExportSerialiser xmlstream += ""; MemoryStream stream = new MemoryStream(); - XmlTextWriter formatter = new XmlTextWriter(stream, System.Text.Encoding.UTF8); + XmlTextWriter formatter = new XmlTextWriter(stream, Encoding.UTF8); XmlDocument doc = new XmlDocument(); doc.LoadXml(xmlstream); diff --git a/OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseTerrain.cs b/OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseTerrain.cs index eeeacdc..8555089 100644 --- a/OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseTerrain.cs +++ b/OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseTerrain.cs @@ -26,6 +26,7 @@ */ using OpenSim.Region.Environment.Modules.Terrain; +using OpenSim.Region.Environment.Modules.Terrain.FileLoaders; using OpenSim.Region.Environment.Scenes; namespace OpenSim.Region.Environment.Modules.ExportSerialiser @@ -36,7 +37,7 @@ namespace OpenSim.Region.Environment.Modules.ExportSerialiser public string WriteToFile(Scene scene, string dir) { - ITerrainLoader fileSystemExporter = new Terrain.FileLoaders.RAW32(); + ITerrainLoader fileSystemExporter = new RAW32(); string targetFileName = dir + "heightmap.r32"; lock (scene.Heightmap) diff --git a/OpenSim/Region/Environment/Modules/FriendsModule.cs b/OpenSim/Region/Environment/Modules/FriendsModule.cs index a2ec599..7e12618 100644 --- a/OpenSim/Region/Environment/Modules/FriendsModule.cs +++ b/OpenSim/Region/Environment/Modules/FriendsModule.cs @@ -26,8 +26,10 @@ */ using System; using System.Collections.Generic; +using System.Reflection; using libsecondlife; using libsecondlife.Packets; +using log4net; using Nini.Config; using Nwc.XmlRpc; using OpenSim.Framework; @@ -38,7 +40,7 @@ namespace OpenSim.Region.Environment.Modules { public class FriendsModule : IRegionModule { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private List m_scene = new List(); diff --git a/OpenSim/Region/Environment/Modules/GroupsModule.cs b/OpenSim/Region/Environment/Modules/GroupsModule.cs index 6cdae7b..b23bb91 100644 --- a/OpenSim/Region/Environment/Modules/GroupsModule.cs +++ b/OpenSim/Region/Environment/Modules/GroupsModule.cs @@ -27,7 +27,9 @@ using System; using System.Collections.Generic; +using System.Reflection; using libsecondlife; +using log4net; using Nini.Config; using OpenSim.Framework; using OpenSim.Region.Environment.Interfaces; @@ -37,7 +39,7 @@ namespace OpenSim.Region.Environment.Modules { public class GroupsModule : IRegionModule { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private List m_scene = new List(); private Dictionary m_iclientmap = new Dictionary(); diff --git a/OpenSim/Region/Environment/Modules/InventoryModule.cs b/OpenSim/Region/Environment/Modules/InventoryModule.cs index eadbb4f..ff5a02c 100644 --- a/OpenSim/Region/Environment/Modules/InventoryModule.cs +++ b/OpenSim/Region/Environment/Modules/InventoryModule.cs @@ -25,12 +25,11 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; using System.Collections.Generic; - +using System.Reflection; using libsecondlife; +using log4net; using Nini.Config; - using OpenSim.Framework; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; @@ -39,8 +38,8 @@ namespace OpenSim.Region.Environment.Modules { public class InventoryModule : IRegionModule { - private static readonly log4net.ILog m_log - = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log + = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private Scene m_scene; diff --git a/OpenSim/Region/Environment/Modules/LandManagement/LandChannel.cs b/OpenSim/Region/Environment/Modules/LandManagement/LandChannel.cs index e3b7cf5..561c5cf 100644 --- a/OpenSim/Region/Environment/Modules/LandManagement/LandChannel.cs +++ b/OpenSim/Region/Environment/Modules/LandManagement/LandChannel.cs @@ -27,18 +27,14 @@ using System; using System.Collections.Generic; -using System.Text; using Axiom.Math; using libsecondlife; using libsecondlife.Packets; using OpenSim.Framework; -using OpenSim.Framework.Console; -using OpenSim.Region.Environment.Scenes; using OpenSim.Region.Environment.Interfaces; +using OpenSim.Region.Environment.Scenes; using OpenSim.Region.Physics.Manager; -using LandBuyArgs = OpenSim.Region.Environment.Scenes.EventManager.LandBuyArgs; - namespace OpenSim.Region.Environment.Modules.LandManagement { public class LandChannel : ILandChannel @@ -245,7 +241,7 @@ namespace OpenSim.Region.Environment.Modules.LandManagement x = Convert.ToInt32(Math.Floor(Convert.ToDouble(x_float) / Convert.ToDouble(4.0))); y = Convert.ToInt32(Math.Floor(Convert.ToDouble(y_float) / Convert.ToDouble(4.0))); } - catch (System.OverflowException) + catch (OverflowException) { return null; } @@ -957,7 +953,7 @@ namespace OpenSim.Region.Environment.Modules.LandManagement // and land has been validated as well, this method transfers // the land ownership - public void handleLandBuyRequest(Object o, LandBuyArgs e) + public void handleLandBuyRequest(Object o, EventManager.LandBuyArgs e) { if (e.economyValidated && e.landValidated) { @@ -976,7 +972,7 @@ namespace OpenSim.Region.Environment.Modules.LandManagement // be validated. This method validates the right to buy the // parcel - public void handleLandValidationRequest(Object o, LandBuyArgs e) + public void handleLandValidationRequest(Object o, EventManager.LandBuyArgs e) { if (e.landValidated == false) { @@ -994,7 +990,7 @@ namespace OpenSim.Region.Environment.Modules.LandManagement int saleprice = lob.landData.salePrice; LLUUID pOwnerID = lob.landData.ownerID; - bool landforsale = ((lob.landData.landFlags & (uint)(libsecondlife.Parcel.ParcelFlags.ForSale | libsecondlife.Parcel.ParcelFlags.ForSaleObjects | libsecondlife.Parcel.ParcelFlags.SellParcelObjects)) != 0); + bool landforsale = ((lob.landData.landFlags & (uint)(Parcel.ParcelFlags.ForSale | Parcel.ParcelFlags.ForSaleObjects | Parcel.ParcelFlags.SellParcelObjects)) != 0); if ((AuthorizedID == LLUUID.Zero || AuthorizedID == e.agentId) && e.parcelPrice >= saleprice && landforsale) { lock (e) diff --git a/OpenSim/Region/Environment/Modules/LandManagement/LandManagementModule.cs b/OpenSim/Region/Environment/Modules/LandManagement/LandManagementModule.cs index 20f75df..1c36c0c 100644 --- a/OpenSim/Region/Environment/Modules/LandManagement/LandManagementModule.cs +++ b/OpenSim/Region/Environment/Modules/LandManagement/LandManagementModule.cs @@ -25,17 +25,9 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; -using libsecondlife; -using libsecondlife.Packets; -using OpenSim.Framework; -using OpenSim.Framework.Console; -using OpenSim.Region.Environment.Scenes; -using OpenSim.Region.Environment.Interfaces; using Nini.Config; - -using LandBuyArgs = OpenSim.Region.Environment.Scenes.EventManager.LandBuyArgs; +using OpenSim.Region.Environment.Interfaces; +using OpenSim.Region.Environment.Scenes; namespace OpenSim.Region.Environment.Modules.LandManagement { diff --git a/OpenSim/Region/Environment/Modules/LandManagement/LandObject.cs b/OpenSim/Region/Environment/Modules/LandManagement/LandObject.cs index 69d3c05..f9684e6 100644 --- a/OpenSim/Region/Environment/Modules/LandManagement/LandObject.cs +++ b/OpenSim/Region/Environment/Modules/LandManagement/LandObject.cs @@ -27,12 +27,13 @@ using System; using System.Collections.Generic; +using System.Reflection; using libsecondlife; using libsecondlife.Packets; +using log4net; using OpenSim.Framework; -using OpenSim.Framework.Console; -using OpenSim.Region.Environment.Scenes; using OpenSim.Region.Environment.Interfaces; +using OpenSim.Region.Environment.Scenes; namespace OpenSim.Region.Environment.Modules.LandManagement { @@ -46,7 +47,7 @@ namespace OpenSim.Region.Environment.Modules.LandManagement { #region Member Variables - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); protected LandData m_landData = new LandData(); protected List primsOverMe = new List(); @@ -273,7 +274,7 @@ namespace OpenSim.Region.Environment.Modules.LandManagement newData.claimPrice = claimprice; newData.salePrice = 0; newData.authBuyerID = LLUUID.Zero; - newData.landFlags &= ~(uint)(libsecondlife.Parcel.ParcelFlags.ForSale | Parcel.ParcelFlags.ForSaleObjects | Parcel.ParcelFlags.SellParcelObjects); + newData.landFlags &= ~(uint)(Parcel.ParcelFlags.ForSale | Parcel.ParcelFlags.ForSaleObjects | Parcel.ParcelFlags.SellParcelObjects); m_scene.LandChannel.updateLandObject(landData.localID, newData); sendLandUpdateToAvatarsOverMe(); diff --git a/OpenSim/Region/Environment/Modules/ModuleFramework/Commander.cs b/OpenSim/Region/Environment/Modules/ModuleFramework/Commander.cs index 9834a8a..27d73b5 100644 --- a/OpenSim/Region/Environment/Modules/ModuleFramework/Commander.cs +++ b/OpenSim/Region/Environment/Modules/ModuleFramework/Commander.cs @@ -27,8 +27,10 @@ using System; using System.Collections.Generic; +using System.Reflection; using System.Text; - +using log4net; +using OpenSim.Framework; using OpenSim.Region.Environment.Interfaces; namespace OpenSim.Region.Environment.Modules.ModuleFramework @@ -39,9 +41,9 @@ namespace OpenSim.Region.Environment.Modules.ModuleFramework /// public class Command : ICommand { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); - private Action m_command; + private Action m_command; private string m_name; private string m_help; private List m_args = new List(); @@ -197,7 +199,7 @@ namespace OpenSim.Region.Environment.Modules.ModuleFramework /// public class Commander : ICommander { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private Dictionary m_commands = new Dictionary(); private string m_name; @@ -241,7 +243,7 @@ namespace OpenSim.Region.Environment.Modules.ModuleFramework classSrc += "\tpublic void " + EscapeRuntimeAPICommand(com.Name) + "( "; foreach (KeyValuePair arg in com.Arguments) { - classSrc += arg.Value + " " + Framework.Util.Md5Hash(arg.Key) + ","; + classSrc += arg.Value + " " + Util.Md5Hash(arg.Key) + ","; } classSrc = classSrc.Remove(classSrc.Length - 1); // Delete the last comma classSrc += " )\n\t{\n"; @@ -249,7 +251,7 @@ namespace OpenSim.Region.Environment.Modules.ModuleFramework int i = 0; foreach (KeyValuePair arg in com.Arguments) { - classSrc += "\t\targs[" + i.ToString() + "] = " + Framework.Util.Md5Hash(arg.Key) + " " + ";\n"; + classSrc += "\t\targs[" + i.ToString() + "] = " + Util.Md5Hash(arg.Key) + " " + ";\n"; i++; } classSrc += "\t\tGetCommander(\"" + m_name + "\").Run(\"" + com.Name + "\", args);\n"; diff --git a/OpenSim/Region/Environment/Modules/ScriptsHttpRequests.cs b/OpenSim/Region/Environment/Modules/ScriptsHttpRequests.cs index 10e3840..2de5975 100644 --- a/OpenSim/Region/Environment/Modules/ScriptsHttpRequests.cs +++ b/OpenSim/Region/Environment/Modules/ScriptsHttpRequests.cs @@ -33,6 +33,7 @@ using System.Text; using System.Threading; using libsecondlife; using Nini.Config; +using OpenSim.Framework; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; @@ -289,7 +290,7 @@ namespace OpenSim.Region.Environment.Modules httpThread.IsBackground = true; finished = false; httpThread.Start(); - OpenSim.Framework.ThreadTracker.Add(httpThread); + ThreadTracker.Add(httpThread); } /* diff --git a/OpenSim/Region/Environment/Modules/TextureDownloadModule.cs b/OpenSim/Region/Environment/Modules/TextureDownloadModule.cs index 1d32c1f..bde0dc0 100644 --- a/OpenSim/Region/Environment/Modules/TextureDownloadModule.cs +++ b/OpenSim/Region/Environment/Modules/TextureDownloadModule.cs @@ -74,7 +74,7 @@ namespace OpenSim.Region.Environment.Modules m_thread.Name = "ProcessTextureSenderThread"; m_thread.IsBackground = true; m_thread.Start(); - OpenSim.Framework.ThreadTracker.Add(m_thread); + ThreadTracker.Add(m_thread); } if (!m_scenes.Contains(scene)) diff --git a/OpenSim/Region/Environment/Modules/TextureSender.cs b/OpenSim/Region/Environment/Modules/TextureSender.cs index 1500bdb..e54a1a2 100644 --- a/OpenSim/Region/Environment/Modules/TextureSender.cs +++ b/OpenSim/Region/Environment/Modules/TextureSender.cs @@ -26,10 +26,10 @@ */ using System; -using libsecondlife; +using System.Reflection; using libsecondlife.Packets; +using log4net; using OpenSim.Framework; -using OpenSim.Framework.Console; using OpenSim.Region.Environment.Interfaces; namespace OpenSim.Region.Environment.Modules @@ -40,8 +40,8 @@ namespace OpenSim.Region.Environment.Modules /// public class TextureSender : ITextureSender { - private static readonly log4net.ILog m_log - = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log + = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); /// /// Records the number of times texture send has been called. diff --git a/OpenSim/Region/Environment/Modules/TreePopulatorModule.cs b/OpenSim/Region/Environment/Modules/TreePopulatorModule.cs index ec977ba..2051a0f 100644 --- a/OpenSim/Region/Environment/Modules/TreePopulatorModule.cs +++ b/OpenSim/Region/Environment/Modules/TreePopulatorModule.cs @@ -27,10 +27,13 @@ using System; using System.Collections.Generic; +using System.Reflection; +using System.Timers; +using Axiom.Math; using libsecondlife; +using log4net; using Nini.Config; using OpenSim.Framework; -using OpenSim.Framework.Console; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; @@ -42,7 +45,7 @@ namespace OpenSim.Region.Environment.Modules public class TreePopulatorModule : IRegionModule { private Scene m_scene; - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private List m_trees; @@ -63,8 +66,8 @@ namespace OpenSim.Region.Environment.Modules m_scene.EventManager.OnPluginConsole += new EventManager.OnPluginConsoleDelegate(EventManager_OnPluginConsole); - System.Timers.Timer CalculateTrees = new System.Timers.Timer(m_tree_updates); - CalculateTrees.Elapsed += new System.Timers.ElapsedEventHandler(CalculateTrees_Elapsed); + Timer CalculateTrees = new Timer(m_tree_updates); + CalculateTrees.Elapsed += new ElapsedEventHandler(CalculateTrees_Elapsed); CalculateTrees.Start(); m_log.Debug("[TREES]: Initialised tree module"); } @@ -168,7 +171,7 @@ namespace OpenSim.Region.Environment.Modules } else { - selectedTree.SetText(killLikelyhood.ToString(), new Axiom.Math.Vector3(1.0f, 1.0f, 1.0f), 1.0); + selectedTree.SetText(killLikelyhood.ToString(), new Vector3(1.0f, 1.0f, 1.0f), 1.0); } } else @@ -217,7 +220,7 @@ namespace OpenSim.Region.Environment.Modules tree.SendGroupFullUpdate(); } - void CalculateTrees_Elapsed(object sender, System.Timers.ElapsedEventArgs e) + void CalculateTrees_Elapsed(object sender, ElapsedEventArgs e) { growTrees(); seedTrees(); diff --git a/OpenSim/Region/Environment/Modules/UserTextureDownloadService.cs b/OpenSim/Region/Environment/Modules/UserTextureDownloadService.cs index 59ec981..b487628 100644 --- a/OpenSim/Region/Environment/Modules/UserTextureDownloadService.cs +++ b/OpenSim/Region/Environment/Modules/UserTextureDownloadService.cs @@ -25,15 +25,12 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; using System.Collections.Generic; - +using System.Reflection; using libsecondlife; -using libsecondlife.Packets; - +using log4net; using OpenSim.Framework; using OpenSim.Framework.Communications.Limit; -using OpenSim.Framework.Console; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; @@ -46,8 +43,8 @@ namespace OpenSim.Region.Environment.Modules /// public class UserTextureDownloadService { - private static readonly log4net.ILog m_log - = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log + = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); /// /// We will allow the client to request the same texture n times before dropping further requests diff --git a/OpenSim/Region/Environment/Modules/VectorRenderModule.cs b/OpenSim/Region/Environment/Modules/VectorRenderModule.cs index 9c91b25..0ea6fc3 100644 --- a/OpenSim/Region/Environment/Modules/VectorRenderModule.cs +++ b/OpenSim/Region/Environment/Modules/VectorRenderModule.cs @@ -27,15 +27,17 @@ using System; using System.Drawing; +using System.Drawing.Imaging; +using System.Globalization; using System.IO; using System.Net; -using System.Globalization; using libsecondlife; using Nini.Config; using OpenJPEGNet; -using OpenSim.Framework; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; +using Image=System.Drawing.Image; + //using Cairo; namespace OpenSim.Region.Environment.Modules @@ -96,9 +98,9 @@ namespace OpenSim.Region.Environment.Modules if ((size < 128) || (size > 1024)) size = 256; - Bitmap bitmap = new Bitmap(size, size, System.Drawing.Imaging.PixelFormat.Format32bppArgb); + Bitmap bitmap = new Bitmap(size, size, PixelFormat.Format32bppArgb); - System.Drawing.Graphics graph = System.Drawing.Graphics.FromImage(bitmap); + Graphics graph = Graphics.FromImage(bitmap); extraParams = extraParams.ToLower(); int alpha = 255; @@ -166,11 +168,11 @@ namespace OpenSim.Region.Environment.Modules } */ - private void GDIDraw(string data, System.Drawing.Graphics graph) + private void GDIDraw(string data, Graphics graph) { - System.Drawing.Point startPoint = new System.Drawing.Point(0, 0); - System.Drawing.Point endPoint = new System.Drawing.Point(0, 0); - System.Drawing.Pen drawPen = new Pen(System.Drawing.Color.Black, 7); + Point startPoint = new Point(0, 0); + Point endPoint = new Point(0, 0); + Pen drawPen = new Pen(Color.Black, 7); Font myFont = new Font("Times New Roman", 14); SolidBrush myBrush = new SolidBrush(Color.Black); char[] lineDelimiter = { ';' }; @@ -213,7 +215,7 @@ namespace OpenSim.Region.Environment.Modules GetParams(partsDelimiter, ref nextLine, 5, ref x, ref y); endPoint.X = (int)x; endPoint.Y = (int)y; - System.Drawing.Image image = ImageHttpRequest(nextLine); + Image image = ImageHttpRequest(nextLine); graph.DrawImage(image, (float)startPoint.X, (float)startPoint.Y, x, y); startPoint.X += endPoint.X; startPoint.Y += endPoint.Y; diff --git a/OpenSim/Region/Environment/Modules/VoiceModule.cs b/OpenSim/Region/Environment/Modules/VoiceModule.cs index 8ca4698..106becd 100644 --- a/OpenSim/Region/Environment/Modules/VoiceModule.cs +++ b/OpenSim/Region/Environment/Modules/VoiceModule.cs @@ -27,23 +27,24 @@ using System; using System.Collections; -using System.Collections.Generic; +using System.Reflection; using libsecondlife; +using log4net; using Nini.Config; using OpenSim.Framework; using OpenSim.Framework.Communications.Cache; using OpenSim.Framework.Servers; using OpenSim.Region.Capabilities; -using Caps = OpenSim.Region.Capabilities.Caps; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; +using Caps=OpenSim.Region.Capabilities.Caps; namespace OpenSim.Region.Environment.Modules { public class VoiceModule : IRegionModule { - private static readonly log4net.ILog m_log = - log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = + LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private Scene m_scene; private IConfig m_config; diff --git a/OpenSim/Region/Environment/Modules/WorldCommModule.cs b/OpenSim/Region/Environment/Modules/WorldCommModule.cs index 79e475c..5b18757 100644 --- a/OpenSim/Region/Environment/Modules/WorldCommModule.cs +++ b/OpenSim/Region/Environment/Modules/WorldCommModule.cs @@ -27,7 +27,6 @@ using System; using System.Collections; -using System.Collections.Generic; using libsecondlife; using Nini.Config; using OpenSim.Framework; diff --git a/OpenSim/Region/Environment/Modules/XMLRPCModule.cs b/OpenSim/Region/Environment/Modules/XMLRPCModule.cs index 4f52ad6..e915fb8 100644 --- a/OpenSim/Region/Environment/Modules/XMLRPCModule.cs +++ b/OpenSim/Region/Environment/Modules/XMLRPCModule.cs @@ -28,11 +28,14 @@ using System; using System.Collections; using System.Collections.Generic; +using System.Net; +using System.Reflection; using System.Threading; using libsecondlife; +using log4net; using Nini.Config; using Nwc.XmlRpc; -using OpenSim.Framework.Console; +using OpenSim.Framework; using OpenSim.Framework.Servers; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; @@ -74,7 +77,7 @@ namespace OpenSim.Region.Environment.Modules { public class XMLRPCModule : IRegionModule, IXMLRPC { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private object XMLRPCListLock = new object(); private string m_name = "XMLRPCModule"; @@ -208,7 +211,7 @@ namespace OpenSim.Region.Environment.Modules } } - System.Collections.IEnumerator tmpEnumerator = tmp.GetEnumerator(); + IEnumerator tmpEnumerator = tmp.GetEnumerator(); while ( tmpEnumerator.MoveNext() ) m_openChannels.Remove((LLUUID)tmpEnumerator.Current); } @@ -559,7 +562,7 @@ namespace OpenSim.Region.Environment.Modules private Thread httpThread; public LLUUID m_itemID; public uint m_localID; - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public SendRemoteDataRequest(uint localID, LLUUID itemID, string channel, string dest, int idata, string sdata) { @@ -583,7 +586,7 @@ namespace OpenSim.Region.Environment.Modules httpThread.IsBackground = true; finished = false; httpThread.Start(); - OpenSim.Framework.ThreadTracker.Add(httpThread); + ThreadTracker.Add(httpThread); return reqID; @@ -648,7 +651,7 @@ namespace OpenSim.Region.Environment.Modules } } } - catch (System.Net.WebException we) + catch (WebException we) { sdata = we.Message; m_log.Warn("[SendRemoteDataRequest]: Request failed"); diff --git a/OpenSim/Region/Environment/PermissionManager.cs b/OpenSim/Region/Environment/PermissionManager.cs index 29987d8..12ef110 100644 --- a/OpenSim/Region/Environment/PermissionManager.cs +++ b/OpenSim/Region/Environment/PermissionManager.cs @@ -26,8 +26,9 @@ */ using libsecondlife; -using OpenSim.Region.Environment.Scenes; using OpenSim.Region.Environment.Interfaces; +using OpenSim.Region.Environment.Scenes; + namespace OpenSim.Region.Environment { public class PermissionManager diff --git a/OpenSim/Region/Environment/Scenes/AvatarAnimations.cs b/OpenSim/Region/Environment/Scenes/AvatarAnimations.cs index 75d4870..fe9c8e7 100644 --- a/OpenSim/Region/Environment/Scenes/AvatarAnimations.cs +++ b/OpenSim/Region/Environment/Scenes/AvatarAnimations.cs @@ -25,11 +25,9 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; using System.Collections.Generic; using System.Xml; using libsecondlife; -using OpenSim.Framework.Console; namespace OpenSim.Region.Environment.Scenes { diff --git a/OpenSim/Region/Environment/Scenes/AvatarAppearance.cs b/OpenSim/Region/Environment/Scenes/AvatarAppearance.cs index 750129b..8f29507 100644 --- a/OpenSim/Region/Environment/Scenes/AvatarAppearance.cs +++ b/OpenSim/Region/Environment/Scenes/AvatarAppearance.cs @@ -26,11 +26,11 @@ */ using System; +using System.Runtime.Serialization; +using System.Security.Permissions; using libsecondlife; using libsecondlife.Packets; using OpenSim.Framework; -using System.Runtime.Serialization; -using System.Security.Permissions; namespace OpenSim.Region.Environment.Scenes { @@ -159,7 +159,7 @@ namespace OpenSim.Region.Environment.Scenes if (info == null) { - throw new System.ArgumentNullException("info"); + throw new ArgumentNullException("info"); } m_scenePresenceID = new LLUUID((Guid)info.GetValue("m_scenePresenceID", typeof(Guid))); @@ -182,7 +182,7 @@ namespace OpenSim.Region.Environment.Scenes { if (info == null) { - throw new System.ArgumentNullException("info"); + throw new ArgumentNullException("info"); } info.AddValue("m_scenePresenceID", m_scenePresenceID.UUID); diff --git a/OpenSim/Region/Environment/Scenes/EntityBase.cs b/OpenSim/Region/Environment/Scenes/EntityBase.cs index 438118f..1faba9a 100644 --- a/OpenSim/Region/Environment/Scenes/EntityBase.cs +++ b/OpenSim/Region/Environment/Scenes/EntityBase.cs @@ -25,13 +25,11 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System.Collections.Generic; -using Axiom.Math; -using libsecondlife; - using System; using System.Runtime.Serialization; using System.Security.Permissions; +using Axiom.Math; +using libsecondlife; namespace OpenSim.Region.Environment.Scenes { @@ -145,7 +143,7 @@ namespace OpenSim.Region.Environment.Scenes if (info == null) { - throw new System.ArgumentNullException("info"); + throw new ArgumentNullException("info"); } m_uuid = new LLUUID((Guid)info.GetValue("m_uuid", typeof(Guid))); @@ -188,7 +186,7 @@ namespace OpenSim.Region.Environment.Scenes { if (info == null) { - throw new System.ArgumentNullException("info"); + throw new ArgumentNullException("info"); } info.AddValue("m_uuid", m_uuid.UUID); diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs index 8894db0..329f900 100644 --- a/OpenSim/Region/Environment/Scenes/InnerScene.cs +++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs @@ -27,11 +27,12 @@ using System; using System.Collections.Generic; +using System.Reflection; using Axiom.Math; using libsecondlife; using libsecondlife.Packets; +using log4net; using OpenSim.Framework; -using OpenSim.Framework.Console; using OpenSim.Region.Environment.Types; using OpenSim.Region.Physics.Manager; @@ -41,7 +42,7 @@ namespace OpenSim.Region.Environment.Scenes public class InnerScene { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); #region Events @@ -295,7 +296,7 @@ namespace OpenSim.Region.Environment.Scenes public void AttachObject(IClientAPI remoteClient, uint objectLocalID, uint AttachmentPt, LLQuaternion rot) { - System.Console.WriteLine("Attaching object " + objectLocalID + " to " + AttachmentPt); + Console.WriteLine("Attaching object " + objectLocalID + " to " + AttachmentPt); SceneObjectPart p = GetSceneObjectPart(objectLocalID); if (p != null) { diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index 2db9242..c5a1be1 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs @@ -27,23 +27,21 @@ using System; using System.Collections.Generic; -using Axiom.Math; +using System.Reflection; +using System.Text; using libsecondlife; using libsecondlife.Packets; +using log4net; using OpenSim.Framework; using OpenSim.Framework.Communications.Cache; -using OpenSim.Framework.Console; -using System.IO; -using System.Text; -using System.Xml; using OpenSim.Region.Environment.Interfaces; namespace OpenSim.Region.Environment.Scenes { public partial class Scene { - private static readonly log4net.ILog m_log - = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log + = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); /// /// Start all the scripts in the scene which should be started. @@ -454,7 +452,7 @@ namespace OpenSim.Region.Environment.Scenes InventoryItemBase item = userInfo.RootFolder.HasItem(itemID); if (item != null) { - if (newName != System.String.Empty) + if (newName != String.Empty) { item.Name = newName; } @@ -1014,7 +1012,7 @@ namespace OpenSim.Region.Environment.Scenes public void RezSingleAttachment(IClientAPI remoteClient, LLUUID itemID, uint AttachmentPt, uint ItemFlags, uint NextOwnerMask) { - System.Console.WriteLine("RezSingleAttachment: unimplemented yet"); + Console.WriteLine("RezSingleAttachment: unimplemented yet"); } } } diff --git a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs index 7e2c9ff..8fdb468 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs @@ -29,8 +29,6 @@ using System.Collections.Generic; using libsecondlife; using libsecondlife.Packets; using OpenSim.Framework; -using OpenSim.Framework.UserManagement; -using OpenSim.Framework.Console; namespace OpenSim.Region.Environment.Scenes { diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index a3f6948..6d8d481 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -40,11 +40,12 @@ using OpenSim.Framework.Communications; using OpenSim.Framework.Communications.Cache; using OpenSim.Framework.Servers; using OpenSim.Region.Environment.Interfaces; +using OpenSim.Region.Environment.Modules.Terrain; using OpenSim.Region.Environment.Scenes.Scripting; using OpenSim.Region.Physics.Manager; -using Caps = OpenSim.Region.Capabilities.Caps; -using Image = System.Drawing.Image; -using Timer = System.Timers.Timer; +using Caps=OpenSim.Region.Capabilities.Caps; +using Image=System.Drawing.Image; +using Timer=System.Timers.Timer; namespace OpenSim.Region.Environment.Scenes { @@ -580,7 +581,7 @@ namespace OpenSim.Region.Environment.Scenes if (!avatar.IsChildAgent) avatar.ControllingClient.Kick("The simulator is going down."); - avatar.ControllingClient.OutPacket(PacketPool.Instance.GetPacket(libsecondlife.Packets.PacketType.DisableSimulator), + avatar.ControllingClient.OutPacket(PacketPool.Instance.GetPacket(PacketType.DisableSimulator), ThrottleOutPacketType.Task); }); @@ -755,17 +756,17 @@ namespace OpenSim.Region.Environment.Scenes { throw; } - catch (System.AccessViolationException e) + catch (AccessViolationException e) { m_log.Error("[Scene]: Failed with exception " + e.ToString() + " On Region: " + RegionInfo.RegionName); } - catch (System.NullReferenceException e) + catch (NullReferenceException e) { m_log.Error("[Scene]: Failed with exception " + e.ToString() + " On Region: " + RegionInfo.RegionName); } - catch (System.InvalidOperationException e) + catch (InvalidOperationException e) { m_log.Error("[Scene]: Failed with exception " + e.ToString() + " On Region: " + RegionInfo.RegionName); @@ -941,13 +942,13 @@ namespace OpenSim.Region.Environment.Scenes if (map == null) { m_log.Info("[TERRAIN]: No default terrain. Generating a new terrain."); - Heightmap = new Modules.Terrain.TerrainChannel(); + Heightmap = new TerrainChannel(); m_storageManager.DataStore.StoreTerrain(Heightmap.GetDoubles(), RegionInfo.RegionID); } else { - Heightmap = new Modules.Terrain.TerrainChannel(map); + Heightmap = new TerrainChannel(map); } } @@ -1094,7 +1095,7 @@ namespace OpenSim.Region.Environment.Scenes byte[] data; try { - data = OpenJPEGNet.OpenJPEG.EncodeFromImage(mapbmp, false); + data = OpenJPEG.EncodeFromImage(mapbmp, false); } catch (Exception) { @@ -1420,7 +1421,7 @@ namespace OpenSim.Region.Environment.Scenes { DeleteSceneObjectGroup(grp); } - catch (System.Exception) + catch (Exception) { m_log.Warn("[DATABASE]: exception when trying to remove the prim that crossed the border."); } @@ -1714,7 +1715,7 @@ namespace OpenSim.Region.Environment.Scenes { client.SendKillObject(avatar.RegionHandle, avatar.LocalId); } - catch (System.NullReferenceException) + catch (NullReferenceException) { //We can safely ignore null reference exceptions. It means the avatar are dead and cleaned up anyway. } @@ -2041,7 +2042,7 @@ namespace OpenSim.Region.Environment.Scenes m_innerScene.removeUserCount(true); } // Tell a single agent to disconnect from the region. - libsecondlife.Packets.DisableSimulatorPacket disable = (libsecondlife.Packets.DisableSimulatorPacket)PacketPool.Instance.GetPacket(libsecondlife.Packets.PacketType.DisableSimulator); + DisableSimulatorPacket disable = (DisableSimulatorPacket)PacketPool.Instance.GetPacket(PacketType.DisableSimulator); presence.ControllingClient.OutPacket(disable, ThrottleOutPacketType.Unknown); presence.ControllingClient.Close(true); } diff --git a/OpenSim/Region/Environment/Scenes/SceneBase.cs b/OpenSim/Region/Environment/Scenes/SceneBase.cs index 5551173..d9dc1da 100644 --- a/OpenSim/Region/Environment/Scenes/SceneBase.cs +++ b/OpenSim/Region/Environment/Scenes/SceneBase.cs @@ -27,18 +27,18 @@ using System; using System.Collections.Generic; +using System.Reflection; using libsecondlife; +using log4net; using OpenSim.Framework; using OpenSim.Framework.Communications.Cache; -using OpenSim.Framework.Console; -using OpenSim.Region.Terrain; using OpenSim.Region.Environment.Interfaces; namespace OpenSim.Region.Environment.Scenes { public abstract class SceneBase : IScene { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); #region Events @@ -204,7 +204,7 @@ namespace OpenSim.Region.Environment.Scenes /// /// XXX These two methods are very temporary /// - protected Dictionary capsPaths = new Dictionary(); + protected Dictionary capsPaths = new Dictionary(); public string GetCapsPath(LLUUID agentId) { if (capsPaths.ContainsKey(agentId)) diff --git a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs index db2327e..0062e4d 100644 --- a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs +++ b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs @@ -28,10 +28,11 @@ using System; using System.Collections.Generic; using System.Net; +using System.Reflection; using libsecondlife; +using log4net; using OpenSim.Framework; using OpenSim.Framework.Communications; -using OpenSim.Framework.Console; namespace OpenSim.Region.Environment.Scenes { @@ -41,7 +42,7 @@ namespace OpenSim.Region.Environment.Scenes public class SceneCommunicationService //one instance per region { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); protected CommunicationsManager m_commsProvider; protected RegionInfo m_regionInfo; @@ -416,7 +417,7 @@ namespace OpenSim.Region.Environment.Scenes } } } - catch (System.InvalidOperationException) + catch (InvalidOperationException) { // We're ignoring a collection was modified error because this data gets old and outdated fast. } diff --git a/OpenSim/Region/Environment/Scenes/SceneEvents.cs b/OpenSim/Region/Environment/Scenes/SceneEvents.cs index 5cf8ece..c9c0ad6 100644 --- a/OpenSim/Region/Environment/Scenes/SceneEvents.cs +++ b/OpenSim/Region/Environment/Scenes/SceneEvents.cs @@ -25,11 +25,11 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using libsecondlife; using System; +using libsecondlife; using OpenSim.Framework; using OpenSim.Region.Environment.Interfaces; -using Caps = OpenSim.Region.Capabilities.Caps; +using Caps=OpenSim.Region.Capabilities.Caps; namespace OpenSim.Region.Environment.Scenes { @@ -155,7 +155,7 @@ namespace OpenSim.Region.Environment.Scenes public delegate void DeregisterCapsEvent(LLUUID agentID, Caps caps); public event DeregisterCapsEvent OnDeregisterCaps; - public class MoneyTransferArgs : System.EventArgs + public class MoneyTransferArgs : EventArgs { public LLUUID sender; public LLUUID receiver; @@ -176,7 +176,7 @@ namespace OpenSim.Region.Environment.Scenes } } - public class LandBuyArgs : System.EventArgs + public class LandBuyArgs : EventArgs { public LLUUID agentId = LLUUID.Zero; diff --git a/OpenSim/Region/Environment/Scenes/SceneManager.cs b/OpenSim/Region/Environment/Scenes/SceneManager.cs index 102be30..61a4eae 100644 --- a/OpenSim/Region/Environment/Scenes/SceneManager.cs +++ b/OpenSim/Region/Environment/Scenes/SceneManager.cs @@ -28,10 +28,10 @@ using System; using System.Collections.Generic; using System.Net; -using System.Net.Sockets; +using System.Reflection; using libsecondlife; +using log4net; using OpenSim.Framework; -using OpenSim.Framework.Console; namespace OpenSim.Region.Environment.Scenes { @@ -39,7 +39,7 @@ namespace OpenSim.Region.Environment.Scenes public class SceneManager { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public event RestartSim OnRestartSim; diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs index 495b604..d9808e6 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs @@ -25,19 +25,17 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; - +using System.Reflection; using libsecondlife; - +using log4net; using OpenSim.Framework; -using OpenSim.Framework.Console; using OpenSim.Region.Environment.Interfaces; namespace OpenSim.Region.Environment.Scenes { public partial class SceneObjectGroup : EntityBase { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); /// /// Start a given script. diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 7abaaee..8651d7e 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs @@ -29,13 +29,11 @@ using System; using System.Collections.Generic; using System.Drawing; using System.IO; -using System.Text; using System.Xml; using Axiom.Math; using libsecondlife; using libsecondlife.Packets; using OpenSim.Framework; -using OpenSim.Framework.Console; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Physics.Manager; diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs index 8ce71c4..72f78f3 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs @@ -27,13 +27,11 @@ using System; using System.Collections.Generic; -using System.Xml.Serialization; - +using System.Reflection; using libsecondlife; - +using log4net; using OpenSim.Framework; using OpenSim.Framework.Communications.Cache; -using OpenSim.Framework.Console; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes.Scripting; @@ -41,7 +39,7 @@ namespace OpenSim.Region.Environment.Scenes { public partial class SceneObjectPart : IScriptHost { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private string m_inventoryFileName = String.Empty; diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 61d10c9..40a9fcf 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -28,18 +28,16 @@ using System; using System.Collections.Generic; using System.Drawing; +using System.Runtime.Serialization; +using System.Security.Permissions; using System.Xml; using System.Xml.Serialization; using Axiom.Math; using libsecondlife; using libsecondlife.Packets; using OpenSim.Framework; -using OpenSim.Framework.Console; -using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes.Scripting; using OpenSim.Region.Physics.Manager; -using System.Runtime.Serialization; -using System.Security.Permissions; namespace OpenSim.Region.Environment.Scenes { @@ -324,7 +322,7 @@ namespace OpenSim.Region.Environment.Scenes ParentGroup.ResetChildPrimPhysicsPositions(); } - catch (System.NullReferenceException) + catch (NullReferenceException) { // Ignore, and skip over. } @@ -2326,7 +2324,7 @@ namespace OpenSim.Region.Environment.Scenes if (info == null) { - throw new System.ArgumentNullException("info"); + throw new ArgumentNullException("info"); } /* @@ -2344,7 +2342,7 @@ namespace OpenSim.Region.Environment.Scenes { if (info == null) { - throw new System.ArgumentNullException("info"); + throw new ArgumentNullException("info"); } info.AddValue("m_inventoryFileName", m_inventoryFileName); diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index 8b8373d..d85eea6 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs @@ -27,16 +27,16 @@ using System; using System.Collections.Generic; +using System.Reflection; +using System.Runtime.Serialization; +using System.Security.Permissions; using Axiom.Math; using libsecondlife; using libsecondlife.Packets; +using log4net; using OpenSim.Framework; -using OpenSim.Framework.Console; using OpenSim.Region.Environment.Types; using OpenSim.Region.Physics.Manager; -using OpenSim.Region.Environment.Interfaces; -using System.Runtime.Serialization; -using System.Security.Permissions; namespace OpenSim.Region.Environment.Scenes { @@ -48,7 +48,7 @@ namespace OpenSim.Region.Environment.Scenes // System.Console.WriteLine("[ScenePresence] Destructor called"); // } - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public static AvatarAnimations Animations = new AvatarAnimations(); public static byte[] DefaultTexture; @@ -1746,7 +1746,7 @@ namespace OpenSim.Region.Environment.Scenes movementvector.Z = force.Z; Velocity = movementvector; } - catch (System.NullReferenceException) + catch (NullReferenceException) { // Under extreme load, this returns a NullReference Exception that we can ignore. // Ignoring this causes no movement to be sent to the physics engine... @@ -1800,7 +1800,7 @@ namespace OpenSim.Region.Environment.Scenes if (info == null) { - throw new System.ArgumentNullException("info"); + throw new ArgumentNullException("info"); } FullID = new LLUUID((Guid)info.GetValue("FullID", typeof(Guid))); @@ -1817,7 +1817,7 @@ namespace OpenSim.Region.Environment.Scenes { if (info == null) { - throw new System.ArgumentNullException("info"); + throw new ArgumentNullException("info"); } info.AddValue("FullID", FullID.UUID); @@ -1928,7 +1928,7 @@ namespace OpenSim.Region.Environment.Scenes if (info == null) { - throw new System.ArgumentNullException("info"); + throw new ArgumentNullException("info"); } /* JB if (Animations == null) @@ -2100,7 +2100,7 @@ namespace OpenSim.Region.Environment.Scenes { if (info == null) { - throw new System.ArgumentNullException("info"); + throw new ArgumentNullException("info"); } base.GetObjectData(info, context); diff --git a/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineInterface.cs b/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineInterface.cs index 18b3f46..b1ee519 100644 --- a/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineInterface.cs +++ b/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineInterface.cs @@ -25,8 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using OpenSim.Framework.Console; - //TODO: WHERE TO PLACE THIS? namespace OpenSim.Region.Environment.Scenes.Scripting diff --git a/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineLoader.cs b/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineLoader.cs index 7dee2e4..6216e2c 100644 --- a/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineLoader.cs +++ b/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineLoader.cs @@ -29,13 +29,13 @@ using System; using System.IO; using System.Reflection; -using OpenSim.Framework.Console; +using log4net; namespace OpenSim.Region.Environment.Scenes.Scripting { public class ScriptEngineLoader { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public ScriptEngineInterface LoadScriptEngine(string EngineName) { diff --git a/OpenSim/Region/Environment/StorageManager.cs b/OpenSim/Region/Environment/StorageManager.cs index 4cbadba..b9a42a2 100644 --- a/OpenSim/Region/Environment/StorageManager.cs +++ b/OpenSim/Region/Environment/StorageManager.cs @@ -27,14 +27,14 @@ using System; using System.Reflection; -using OpenSim.Framework.Console; +using log4net; using OpenSim.Region.Environment.Interfaces; namespace OpenSim.Region.Environment { public class StorageManager { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private IRegionDataStore m_dataStore; diff --git a/OpenSim/Region/Environment/Types/BasicQuadTreeNode.cs b/OpenSim/Region/Environment/Types/BasicQuadTreeNode.cs index f1f2302..24ce94b 100644 --- a/OpenSim/Region/Environment/Types/BasicQuadTreeNode.cs +++ b/OpenSim/Region/Environment/Types/BasicQuadTreeNode.cs @@ -25,6 +25,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using System; using System.Collections.Generic; using OpenSim.Region.Environment.Scenes; @@ -261,7 +262,7 @@ namespace OpenSim.Region.Environment.Types public string[] GetNeighbours(string nodeName) { string[] retVal = new string[1]; - retVal[0] = System.String.Empty; + retVal[0] = String.Empty; return retVal; } } diff --git a/OpenSim/Region/Environment/Types/UpdateQueue.cs b/OpenSim/Region/Environment/Types/UpdateQueue.cs index 4d273ce..ec1ffd2 100644 --- a/OpenSim/Region/Environment/Types/UpdateQueue.cs +++ b/OpenSim/Region/Environment/Types/UpdateQueue.cs @@ -25,13 +25,12 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using System; using System.Collections.Generic; -using libsecondlife; -using OpenSim.Region.Environment.Scenes; - -using System; using System.Runtime.Serialization; using System.Security.Permissions; +using libsecondlife; +using OpenSim.Region.Environment.Scenes; namespace OpenSim.Region.Environment.Types { @@ -97,7 +96,7 @@ namespace OpenSim.Region.Environment.Types if (info == null) { - throw new System.ArgumentNullException("info"); + throw new ArgumentNullException("info"); } m_queue = (Queue)info.GetValue("m_queue", typeof(Queue)); @@ -118,7 +117,7 @@ namespace OpenSim.Region.Environment.Types { if (info == null) { - throw new System.ArgumentNullException("info"); + throw new ArgumentNullException("info"); } List ids_work = new List(); diff --git a/OpenSim/Region/Examples/SimpleModule/Properties/AssemblyInfo.cs b/OpenSim/Region/Examples/SimpleModule/Properties/AssemblyInfo.cs index aeb79e0..e0e8fd9 100644 --- a/OpenSim/Region/Examples/SimpleModule/Properties/AssemblyInfo.cs +++ b/OpenSim/Region/Examples/SimpleModule/Properties/AssemblyInfo.cs @@ -26,7 +26,6 @@ */ using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/OpenSim/Region/Examples/SimpleModule/RegionModule.cs b/OpenSim/Region/Examples/SimpleModule/RegionModule.cs index 218908c..6e9fe6d 100644 --- a/OpenSim/Region/Examples/SimpleModule/RegionModule.cs +++ b/OpenSim/Region/Examples/SimpleModule/RegionModule.cs @@ -25,10 +25,8 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; using System.Collections.Generic; using System.IO; -using System.Text; using libsecondlife; using Nini.Config; using OpenSim.Framework; diff --git a/OpenSim/Region/ExtensionsScriptModule/Engines/CSharp/CSharpScriptEngine.cs b/OpenSim/Region/ExtensionsScriptModule/Engines/CSharp/CSharpScriptEngine.cs index deb289f..43049fc 100644 --- a/OpenSim/Region/ExtensionsScriptModule/Engines/CSharp/CSharpScriptEngine.cs +++ b/OpenSim/Region/ExtensionsScriptModule/Engines/CSharp/CSharpScriptEngine.cs @@ -28,14 +28,15 @@ using System; using System.CodeDom.Compiler; using System.Collections.Generic; +using System.Reflection; +using log4net; using Microsoft.CSharp; -using OpenSim.Framework.Console; namespace OpenSim.Region.ExtensionsScriptModule.CSharp { public class CSharpScriptEngine : IScriptCompiler { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public string FileExt() { diff --git a/OpenSim/Region/ExtensionsScriptModule/Engines/JScript/JScriptEngine.cs b/OpenSim/Region/ExtensionsScriptModule/Engines/JScript/JScriptEngine.cs index f5689cb..52afe3f 100644 --- a/OpenSim/Region/ExtensionsScriptModule/Engines/JScript/JScriptEngine.cs +++ b/OpenSim/Region/ExtensionsScriptModule/Engines/JScript/JScriptEngine.cs @@ -28,14 +28,15 @@ using System; using System.CodeDom.Compiler; using System.Collections.Generic; +using System.Reflection; +using log4net; using Microsoft.JScript; -using OpenSim.Framework.Console; namespace OpenSim.Region.ExtensionsScriptModule.JScript { public class JScriptEngine : IScriptCompiler { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public string FileExt() { diff --git a/OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JVM/Interpreter.Methods.cs b/OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JVM/Interpreter.Methods.cs index 16c6e79..efd01e9 100644 --- a/OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JVM/Interpreter.Methods.cs +++ b/OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JVM/Interpreter.Methods.cs @@ -25,6 +25,8 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using System; + namespace OpenSim.Region.ExtensionsScriptModule.JVMEngine.JVM { partial class Thread @@ -46,8 +48,8 @@ namespace OpenSim.Region.ExtensionsScriptModule.JVMEngine.JVM string typ = ((ClassRecord.PoolMethodRef) m_thread.currentClass.m_constantsPool[refIndex - 1]). mNameType.Type.Value; - string typeparam = System.String.Empty; - string typereturn = System.String.Empty; + string typeparam = String.Empty; + string typereturn = String.Empty; int firstbrak = 0; int secondbrak = 0; firstbrak = typ.LastIndexOf('('); diff --git a/OpenSim/Region/ExtensionsScriptModule/ScriptInfo.cs b/OpenSim/Region/ExtensionsScriptModule/ScriptInfo.cs index 428192f..16c449f 100644 --- a/OpenSim/Region/ExtensionsScriptModule/ScriptInfo.cs +++ b/OpenSim/Region/ExtensionsScriptModule/ScriptInfo.cs @@ -25,8 +25,9 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using System.Reflection; using libsecondlife; -using OpenSim.Framework.Console; +using log4net; using OpenSim.Region.Environment.Scenes; namespace OpenSim.Region.ExtensionsScriptModule @@ -36,7 +37,7 @@ namespace OpenSim.Region.ExtensionsScriptModule /// public class ScriptInfo { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); // Reference to world.eventsManager provided for convenience public EventManager events; @@ -47,7 +48,7 @@ namespace OpenSim.Region.ExtensionsScriptModule // API Access public ScriptAPI api; - public log4net.ILog Log + public ILog Log { get { return m_log; } } diff --git a/OpenSim/Region/ExtensionsScriptModule/ScriptInterpretedAPI.cs b/OpenSim/Region/ExtensionsScriptModule/ScriptInterpretedAPI.cs index d0a0e86..a11fb0f 100644 --- a/OpenSim/Region/ExtensionsScriptModule/ScriptInterpretedAPI.cs +++ b/OpenSim/Region/ExtensionsScriptModule/ScriptInterpretedAPI.cs @@ -26,9 +26,10 @@ */ using System; +using System.Reflection; using System.Text; using Axiom.Math; -using OpenSim.Framework.Console; +using log4net; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; using Key = libsecondlife.LLUUID; @@ -44,7 +45,7 @@ namespace OpenSim.Region.ExtensionsScriptModule /// Avoid at all costs. This should ONLY be used for LSL. internal class ScriptInterpretedAPI { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); protected Key m_object; protected Scene m_scene; diff --git a/OpenSim/Region/ExtensionsScriptModule/ScriptManager.cs b/OpenSim/Region/ExtensionsScriptModule/ScriptManager.cs index 9edc6dc..8c11f7a 100644 --- a/OpenSim/Region/ExtensionsScriptModule/ScriptManager.cs +++ b/OpenSim/Region/ExtensionsScriptModule/ScriptManager.cs @@ -26,8 +26,9 @@ */ using System.Collections.Generic; +using System.Reflection; +using log4net; using Nini.Config; -using OpenSim.Framework.Console; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; using OpenSim.Region.ExtensionsScriptModule.CSharp; @@ -38,7 +39,7 @@ namespace OpenSim.Region.ExtensionsScriptModule { public class ScriptManager : IRegionModule, IExtensionScriptModule { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private readonly List scripts = new List(); private Scene m_scene; diff --git a/OpenSim/Region/Modules/AvatarFactory/AppearanceTableMapper.cs b/OpenSim/Region/Modules/AvatarFactory/AppearanceTableMapper.cs index d6ef1fb..2d9f32f 100644 --- a/OpenSim/Region/Modules/AvatarFactory/AppearanceTableMapper.cs +++ b/OpenSim/Region/Modules/AvatarFactory/AppearanceTableMapper.cs @@ -26,11 +26,10 @@ */ using System; -using System.Collections.Generic; -using System.Text; -using OpenSim.Region.Environment.Scenes; -using OpenSim.Framework; +using libsecondlife; using OpenSim.Data.Base; +using OpenSim.Framework; +using OpenSim.Region.Environment.Scenes; namespace OpenSim.Region.Modules.AvatarFactory { @@ -52,7 +51,7 @@ namespace OpenSim.Region.Modules.AvatarFactory m_keyFieldMapper = rowMapperSchema.AddMapping("UUID", delegate(AppearanceRowMapper mapper) { return mapper.Object.ScenePresenceID.UUID; }, - delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.ScenePresenceID = new libsecondlife.LLUUID(value.ToString()); }); + delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.ScenePresenceID = new LLUUID(value.ToString()); }); rowMapperSchema.AddMapping("Serial", delegate(AppearanceRowMapper mapper) { return (uint)mapper.Object.WearablesSerial; }, @@ -64,127 +63,127 @@ namespace OpenSim.Region.Modules.AvatarFactory { if (mapper.Object.Wearables == null) { - mapper.Object.Wearables = new OpenSim.Framework.AvatarWearable[13]; + mapper.Object.Wearables = new AvatarWearable[13]; for (int i = 0; i < 13; i++) { mapper.Object.Wearables[i] = new AvatarWearable(); } } - mapper.Object.Wearables[0].ItemID = new libsecondlife.LLUUID(value.ToString()); + mapper.Object.Wearables[0].ItemID = new LLUUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableAsset0", delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[0].AssetID.UUID; }, delegate(AppearanceRowMapper mapper, Guid value) - { mapper.Object.Wearables[0].AssetID = new libsecondlife.LLUUID(value.ToString()); }); + { mapper.Object.Wearables[0].AssetID = new LLUUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableItem1", delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[1].ItemID.UUID; }, - delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[1].ItemID = new libsecondlife.LLUUID(value.ToString()); }); + delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[1].ItemID = new LLUUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableAsset1", delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[1].AssetID.UUID; }, delegate(AppearanceRowMapper mapper, Guid value) - { mapper.Object.Wearables[1].AssetID = new libsecondlife.LLUUID(value.ToString()); }); + { mapper.Object.Wearables[1].AssetID = new LLUUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableItem2", delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[2].ItemID.UUID; }, - delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[2].ItemID = new libsecondlife.LLUUID(value.ToString()); }); + delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[2].ItemID = new LLUUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableAsset2", delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[2].AssetID.UUID; }, delegate(AppearanceRowMapper mapper, Guid value) - { mapper.Object.Wearables[2].AssetID = new libsecondlife.LLUUID(value.ToString()); }); + { mapper.Object.Wearables[2].AssetID = new LLUUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableItem3", delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[3].ItemID.UUID; }, - delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[3].ItemID = new libsecondlife.LLUUID(value.ToString()); }); + delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[3].ItemID = new LLUUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableAsset3", delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[3].AssetID.UUID; }, delegate(AppearanceRowMapper mapper, Guid value) - { mapper.Object.Wearables[3].AssetID = new libsecondlife.LLUUID(value.ToString()); }); + { mapper.Object.Wearables[3].AssetID = new LLUUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableItem4", delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[4].ItemID.UUID; }, - delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[4].ItemID = new libsecondlife.LLUUID(value.ToString()); }); + delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[4].ItemID = new LLUUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableAsset4", delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[4].AssetID.UUID; }, delegate(AppearanceRowMapper mapper, Guid value) - { mapper.Object.Wearables[4].AssetID = new libsecondlife.LLUUID(value.ToString()); }); + { mapper.Object.Wearables[4].AssetID = new LLUUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableItem5", delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[5].ItemID.UUID; }, - delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[5].ItemID = new libsecondlife.LLUUID(value.ToString()); }); + delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[5].ItemID = new LLUUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableAsset5", delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[5].AssetID.UUID; }, delegate(AppearanceRowMapper mapper, Guid value) - { mapper.Object.Wearables[5].AssetID = new libsecondlife.LLUUID(value.ToString()); }); + { mapper.Object.Wearables[5].AssetID = new LLUUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableItem6", delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[6].ItemID.UUID; }, - delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[6].ItemID = new libsecondlife.LLUUID(value.ToString()); }); + delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[6].ItemID = new LLUUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableAsset6", delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[6].AssetID.UUID; }, delegate(AppearanceRowMapper mapper, Guid value) - { mapper.Object.Wearables[6].AssetID = new libsecondlife.LLUUID(value.ToString()); }); + { mapper.Object.Wearables[6].AssetID = new LLUUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableItem7", delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[7].ItemID.UUID; }, - delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[7].ItemID = new libsecondlife.LLUUID(value.ToString()); }); + delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[7].ItemID = new LLUUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableAsset7", delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[7].AssetID.UUID; }, delegate(AppearanceRowMapper mapper, Guid value) - { mapper.Object.Wearables[7].AssetID = new libsecondlife.LLUUID(value.ToString()); }); + { mapper.Object.Wearables[7].AssetID = new LLUUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableItem8", delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[8].ItemID.UUID; }, - delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[8].ItemID = new libsecondlife.LLUUID(value.ToString()); }); + delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[8].ItemID = new LLUUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableAsset8", delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[8].AssetID.UUID; }, delegate(AppearanceRowMapper mapper, Guid value) - { mapper.Object.Wearables[8].AssetID = new libsecondlife.LLUUID(value.ToString()); }); + { mapper.Object.Wearables[8].AssetID = new LLUUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableItem9", delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[9].ItemID.UUID; }, - delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[9].ItemID = new libsecondlife.LLUUID(value.ToString()); }); + delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[9].ItemID = new LLUUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableAsset9", delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[9].AssetID.UUID; }, delegate(AppearanceRowMapper mapper, Guid value) - { mapper.Object.Wearables[9].AssetID = new libsecondlife.LLUUID(value.ToString()); }); + { mapper.Object.Wearables[9].AssetID = new LLUUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableItem10", delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[10].ItemID.UUID; }, - delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[10].ItemID = new libsecondlife.LLUUID(value.ToString()); }); + delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[10].ItemID = new LLUUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableAsset10", delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[10].AssetID.UUID; }, delegate(AppearanceRowMapper mapper, Guid value) - { mapper.Object.Wearables[10].AssetID = new libsecondlife.LLUUID(value.ToString()); }); + { mapper.Object.Wearables[10].AssetID = new LLUUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableItem11", delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[11].ItemID.UUID; }, - delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[11].ItemID = new libsecondlife.LLUUID(value.ToString()); }); + delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[11].ItemID = new LLUUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableAsset11", delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[11].AssetID.UUID; }, delegate(AppearanceRowMapper mapper, Guid value) - { mapper.Object.Wearables[11].AssetID = new libsecondlife.LLUUID(value.ToString()); }); + { mapper.Object.Wearables[11].AssetID = new LLUUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableItem12", delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[12].ItemID.UUID; }, - delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[12].ItemID = new libsecondlife.LLUUID(value.ToString()); }); + delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[12].ItemID = new LLUUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableAsset12", delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[12].AssetID.UUID; }, delegate(AppearanceRowMapper mapper, Guid value) - { mapper.Object.Wearables[12].AssetID = new libsecondlife.LLUUID(value.ToString()); }); + { mapper.Object.Wearables[12].AssetID = new LLUUID(value.ToString()); }); } diff --git a/OpenSim/Region/Modules/AvatarFactory/AvatarFactoryModule.cs b/OpenSim/Region/Modules/AvatarFactory/AvatarFactoryModule.cs index ae522ef..0ee8848 100644 --- a/OpenSim/Region/Modules/AvatarFactory/AvatarFactoryModule.cs +++ b/OpenSim/Region/Modules/AvatarFactory/AvatarFactoryModule.cs @@ -30,12 +30,12 @@ using System.Collections.Generic; using System.Threading; using libsecondlife; using Nini.Config; +using OpenSim.Data.Base; +using OpenSim.Data.MapperFactory; using OpenSim.Framework; using OpenSim.Framework.Communications.Cache; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; -using OpenSim.Data.Base; -using OpenSim.Data.MapperFactory; namespace OpenSim.Region.Modules.AvatarFactory { diff --git a/OpenSim/Region/Modules/AvatarFactory/Properties/AssemblyInfo.cs b/OpenSim/Region/Modules/AvatarFactory/Properties/AssemblyInfo.cs index ec9714a..a9fe53e 100644 --- a/OpenSim/Region/Modules/AvatarFactory/Properties/AssemblyInfo.cs +++ b/OpenSim/Region/Modules/AvatarFactory/Properties/AssemblyInfo.cs @@ -26,7 +26,6 @@ */ using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/OpenSim/Region/Modules/SvnSerialiser/Properties/AssemblyInfo.cs b/OpenSim/Region/Modules/SvnSerialiser/Properties/AssemblyInfo.cs index e50a89e..c9f8423 100644 --- a/OpenSim/Region/Modules/SvnSerialiser/Properties/AssemblyInfo.cs +++ b/OpenSim/Region/Modules/SvnSerialiser/Properties/AssemblyInfo.cs @@ -26,7 +26,6 @@ */ using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/OpenSim/Region/Modules/SvnSerialiser/SvnBackupModule.cs b/OpenSim/Region/Modules/SvnSerialiser/SvnBackupModule.cs index aaa7acf..4046a7c 100644 --- a/OpenSim/Region/Modules/SvnSerialiser/SvnBackupModule.cs +++ b/OpenSim/Region/Modules/SvnSerialiser/SvnBackupModule.cs @@ -1,20 +1,23 @@ using System; using System.Collections.Generic; +using System.IO; +using System.Reflection; +using System.Timers; +using log4net; using Nini.Config; using OpenSim.Region.Environment.Interfaces; -using OpenSim.Region.Environment.Scenes; using OpenSim.Region.Environment.Modules.ExportSerialiser; - -using PumaCode.SvnDotNet.SubversionSharp; +using OpenSim.Region.Environment.Modules.Terrain; +using OpenSim.Region.Environment.Scenes; using PumaCode.SvnDotNet.AprSharp; - +using PumaCode.SvnDotNet.SubversionSharp; using Slash=System.IO.Path; namespace OpenSim.Region.Modules.SvnSerialiser { public class SvnBackupModule : IRegionModule { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private SvnClient m_svnClient; private bool m_enabled = false; @@ -26,7 +29,7 @@ namespace OpenSim.Region.Modules.SvnSerialiser private TimeSpan m_svnperiod = new TimeSpan(0, 0, 15, 0, 0); private bool m_svnAutoSave = false; - private System.Timers.Timer m_timer = new System.Timers.Timer(); + private Timer m_timer = new Timer(); private IRegionSerialiser m_serialiser; private List m_scenes = new List(); @@ -87,7 +90,7 @@ namespace OpenSim.Region.Modules.SvnSerialiser { scene.LoadPrimsFromXml2(m_svndir + Slash.DirectorySeparatorChar + scene.RegionInfo.RegionID.ToString() + Slash.DirectorySeparatorChar + "objects.xml"); - scene.RequestModuleInterface().LoadFromFile(m_svndir + Slash.DirectorySeparatorChar + scene.RegionInfo.RegionID.ToString() + + scene.RequestModuleInterface().LoadFromFile(m_svndir + Slash.DirectorySeparatorChar + scene.RegionInfo.RegionID.ToString() + Slash.DirectorySeparatorChar + "heightmap.r32"); m_log.Info("[SVNBACKUP]: Region load successful (" + scene.RegionInfo.RegionName + ")."); } @@ -104,16 +107,16 @@ namespace OpenSim.Region.Modules.SvnSerialiser private void CheckoutSvnPartial(string subdir) { - if (!System.IO.Directory.Exists(m_svndir + Slash.DirectorySeparatorChar + subdir)) - System.IO.Directory.CreateDirectory(m_svndir + Slash.DirectorySeparatorChar + subdir); + if (!Directory.Exists(m_svndir + Slash.DirectorySeparatorChar + subdir)) + Directory.CreateDirectory(m_svndir + Slash.DirectorySeparatorChar + subdir); m_svnClient.Checkout2(m_svnurl + "/" + subdir, m_svndir, Svn.Revision.Head, Svn.Revision.Head, true, false); } private void CheckoutSvnPartial(string subdir, SvnRevision revision) { - if (!System.IO.Directory.Exists(m_svndir + Slash.DirectorySeparatorChar + subdir)) - System.IO.Directory.CreateDirectory(m_svndir + Slash.DirectorySeparatorChar + subdir); + if (!Directory.Exists(m_svndir + Slash.DirectorySeparatorChar + subdir)) + Directory.CreateDirectory(m_svndir + Slash.DirectorySeparatorChar + subdir); m_svnClient.Checkout2(m_svnurl + "/" + subdir, m_svndir, revision, revision, true, false); } @@ -138,7 +141,7 @@ namespace OpenSim.Region.Modules.SvnSerialiser { foreach (SvnClientCommitItem2 item in commitItems) { - m_log.Debug("[SVNBACKUP]: ... " + System.IO.Path.GetFileName(item.Path.ToString()) + " (" + item.Kind.ToString() + ") r" + item.Revision.ToString()); + m_log.Debug("[SVNBACKUP]: ... " + Path.GetFileName(item.Path.ToString()) + " (" + item.Kind.ToString() + ") r" + item.Revision.ToString()); } } @@ -277,7 +280,7 @@ namespace OpenSim.Region.Modules.SvnSerialiser if (m_svnAutoSave == true) { m_timer.Interval = m_svnperiod.TotalMilliseconds; - m_timer.Elapsed += new System.Timers.ElapsedEventHandler(m_timer_Elapsed); + m_timer.Elapsed += new ElapsedEventHandler(m_timer_Elapsed); m_timer.AutoReset = true; m_timer.Start(); } @@ -300,7 +303,7 @@ namespace OpenSim.Region.Modules.SvnSerialiser } } - void m_timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) + void m_timer_Elapsed(object sender, ElapsedEventArgs e) { SaveAllRegions(); } @@ -322,8 +325,8 @@ namespace OpenSim.Region.Modules.SvnSerialiser private void CreateSvnDirectory() { - if (!System.IO.Directory.Exists(m_svndir)) - System.IO.Directory.CreateDirectory(m_svndir); + if (!Directory.Exists(m_svndir)) + Directory.CreateDirectory(m_svndir); } public void Close() diff --git a/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs b/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs index 6cc7ff4..1ad1201 100644 --- a/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs +++ b/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs @@ -31,12 +31,10 @@ using System; using System.Collections.Generic; using MonoXnaCompactMaths; using OpenSim.Framework; -using OpenSim.Framework.Console; using OpenSim.Region.Physics.Manager; using XnaDevRu.BulletX; using XnaDevRu.BulletX.Dynamics; using AxiomQuaternion = Axiom.Math.Quaternion; -using BoxShape=XnaDevRu.BulletX.BoxShape; #endregion diff --git a/OpenSim/Region/Physics/Manager/CollisionLocker.cs b/OpenSim/Region/Physics/Manager/CollisionLocker.cs index f88554b..29a6188 100644 --- a/OpenSim/Region/Physics/Manager/CollisionLocker.cs +++ b/OpenSim/Region/Physics/Manager/CollisionLocker.cs @@ -27,7 +27,6 @@ using System; using System.Collections.Generic; -using System.Text; namespace OpenSim.Region.Physics.Manager { diff --git a/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs b/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs index 73b2721..e4ff725 100644 --- a/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs +++ b/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs @@ -29,7 +29,7 @@ using System; using System.Collections.Generic; using System.IO; using System.Reflection; -using OpenSim.Framework.Console; +using log4net; namespace OpenSim.Region.Physics.Manager { @@ -38,7 +38,7 @@ namespace OpenSim.Region.Physics.Manager /// public class PhysicsPluginManager { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private Dictionary _PhysPlugins = new Dictionary(); private Dictionary _MeshPlugins = new Dictionary(); diff --git a/OpenSim/Region/Physics/Manager/PhysicsScene.cs b/OpenSim/Region/Physics/Manager/PhysicsScene.cs index d3699a3..4c509b7 100644 --- a/OpenSim/Region/Physics/Manager/PhysicsScene.cs +++ b/OpenSim/Region/Physics/Manager/PhysicsScene.cs @@ -25,10 +25,10 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; +using System.Reflection; using Axiom.Math; +using log4net; using OpenSim.Framework; -using OpenSim.Framework.Console; namespace OpenSim.Region.Physics.Manager { @@ -36,7 +36,7 @@ namespace OpenSim.Region.Physics.Manager public abstract class PhysicsScene { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); // The only thing that should register for this event is the InnerScene // Anything else could cause problems. diff --git a/OpenSim/Region/Physics/Manager/PhysicsSensor.cs b/OpenSim/Region/Physics/Manager/PhysicsSensor.cs index a86d283..ce53108 100644 --- a/OpenSim/Region/Physics/Manager/PhysicsSensor.cs +++ b/OpenSim/Region/Physics/Manager/PhysicsSensor.cs @@ -26,10 +26,7 @@ */ using System; -using System.Collections.Generic; using System.Timers; -using Axiom.Math; -using OpenSim.Framework; namespace OpenSim.Region.Physics.Manager { diff --git a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs index d4b6a50..db91028 100644 --- a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs +++ b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs @@ -28,7 +28,6 @@ using System; using System.Collections.Generic; using OpenSim.Framework; -using OpenSim.Framework.Console; using OpenSim.Region.Physics.Manager; namespace OpenSim.Region.Physics.Meshing diff --git a/OpenSim/Region/Physics/Meshing/SimpleHull.cs b/OpenSim/Region/Physics/Meshing/SimpleHull.cs index c518b78..2896d3b 100644 --- a/OpenSim/Region/Physics/Meshing/SimpleHull.cs +++ b/OpenSim/Region/Physics/Meshing/SimpleHull.cs @@ -27,7 +27,6 @@ using System; using System.Collections.Generic; -using OpenSim.Framework.Console; using OpenSim.Region.Physics.Manager; namespace OpenSim.Region.Physics.Meshing diff --git a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs index 81126b6..042042c 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs @@ -121,7 +121,7 @@ namespace OpenSim.Region.Physics.OdePlugin _acceleration = new PhysicsVector(); _parent_scene = parent_scene; - if (System.Environment.OSVersion.Platform == PlatformID.Unix) + if (Environment.OSVersion.Platform == PlatformID.Unix) { m_tensor = 2000000f; } @@ -413,7 +413,7 @@ namespace OpenSim.Region.Physics.OdePlugin private void AvatarGeomAndBodyCreation(float npositionX, float npositionY, float npositionZ, float tensor) { - if (System.Environment.OSVersion.Platform == PlatformID.Unix) + if (Environment.OSVersion.Platform == PlatformID.Unix) { m_tensor = 2000000f; } @@ -641,7 +641,7 @@ namespace OpenSim.Region.Physics.OdePlugin // If the PID Controller isn't active then we set our force // calculating base velocity to the current position - if (System.Environment.OSVersion.Platform == PlatformID.Unix) + if (Environment.OSVersion.Platform == PlatformID.Unix) { PID_D = 3200.0f; PID_P = 1400.0f; diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs index 4e39eb4..8e0640b 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs @@ -27,8 +27,11 @@ using System; using System.Collections.Generic; +using System.Reflection; using System.Runtime.InteropServices; +using System.Threading; using Axiom.Math; +using log4net; using Ode.NET; using OpenSim.Framework; using OpenSim.Region.Physics.Manager; @@ -37,7 +40,7 @@ namespace OpenSim.Region.Physics.OdePlugin { public class OdePrim : PhysicsActor { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public PhysicsVector _position; private PhysicsVector _velocity; @@ -663,7 +666,7 @@ namespace OpenSim.Region.Physics.OdePlugin // This sleeper is there to moderate how long it takes between // setting up the mesh and pre-processing it when we get rapid fire mesh requests on a single object - System.Threading.Thread.Sleep(10); + Thread.Sleep(10); //Kill Body so that mesh can re-make the geom if (IsPhysical && Body != (IntPtr) 0) @@ -692,7 +695,7 @@ namespace OpenSim.Region.Physics.OdePlugin SetGeom(d.CreateTriMesh(m_targetSpace, _triMeshData, parent_scene.triCallback, null, null)); } } - catch (System.AccessViolationException) + catch (AccessViolationException) { m_log.Error("[PHYSICS]: MESH LOCKED"); @@ -934,7 +937,7 @@ namespace OpenSim.Region.Physics.OdePlugin { SetGeom(d.CreateSphere(m_targetSpace, _size.X / 2)); } - catch (System.AccessViolationException) + catch (AccessViolationException) { m_log.Warn("[PHYSICS]: Unable to create physics proxy for object"); ode.dunlock(_parent_scene.world); @@ -948,7 +951,7 @@ namespace OpenSim.Region.Physics.OdePlugin { SetGeom(d.CreateBox(m_targetSpace, _size.X, _size.Y, _size.Z)); } - catch (System.AccessViolationException) + catch (AccessViolationException) { m_log.Warn("[PHYSICS]: Unable to create physics proxy for object"); ode.dunlock(_parent_scene.world); @@ -963,7 +966,7 @@ namespace OpenSim.Region.Physics.OdePlugin { SetGeom(d.CreateBox(m_targetSpace, _size.X, _size.Y, _size.Z)); } - catch (System.AccessViolationException) + catch (AccessViolationException) { m_log.Warn("[PHYSICS]: Unable to create physics proxy for object"); ode.dunlock(_parent_scene.world); @@ -990,7 +993,7 @@ namespace OpenSim.Region.Physics.OdePlugin { SetGeom(d.CreateBox(m_targetSpace, _size.X, _size.Y, _size.Z)); } - catch (System.AccessViolationException) + catch (AccessViolationException) { m_log.Warn("[PHYSICS]: Unable to create physics proxy for object"); ode.dunlock(_parent_scene.world); @@ -1135,7 +1138,7 @@ namespace OpenSim.Region.Physics.OdePlugin // If the PID Controller isn't active then we set our force // calculating base velocity to the current position - if (System.Environment.OSVersion.Platform == PlatformID.Unix) + if (Environment.OSVersion.Platform == PlatformID.Unix) { PID_D = 3200.0f; //PID_P = 1400.0f; @@ -1670,7 +1673,7 @@ namespace OpenSim.Region.Physics.OdePlugin { - System.Threading.Thread.Sleep(20); + Thread.Sleep(20); if (IsPhysical) { if (Body != (IntPtr)0) diff --git a/OpenSim/Region/Physics/OdePlugin/ODETestClass.cs b/OpenSim/Region/Physics/OdePlugin/ODETestClass.cs index f56cf5c..94d98cb 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODETestClass.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODETestClass.cs @@ -26,15 +26,10 @@ */ using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; using Axiom.Math; -using Ode.NET; +using NUnit.Framework; using OpenSim.Framework; -using OpenSim.Framework.Console; using OpenSim.Region.Physics.Manager; -using NUnit.Framework; -using NUnit.Framework.SyntaxHelpers; namespace OpenSim.Region.Physics.OdePlugin { diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs index a2f440e..c346960 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs @@ -27,11 +27,13 @@ using System; using System.Collections.Generic; +using System.Reflection; using System.Runtime.InteropServices; +using System.Threading; using Axiom.Math; +using log4net; using Ode.NET; using OpenSim.Framework; -using OpenSim.Framework.Console; using OpenSim.Region.Physics.Manager; //using OpenSim.Region.Physics.OdePlugin.Meshing; @@ -114,12 +116,12 @@ namespace OpenSim.Region.Physics.OdePlugin public class OdeScene : PhysicsScene { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private Dictionary m_storedCollisions = new Dictionary(); CollisionLocker ode; - protected Random fluidRandomizer = new Random(System.Environment.TickCount); + protected Random fluidRandomizer = new Random(Environment.TickCount); private const uint m_regionWidth = Constants.RegionSize; private const uint m_regionHeight = Constants.RegionSize; @@ -331,7 +333,7 @@ namespace OpenSim.Region.Physics.OdePlugin { d.SpaceCollide2(g1, g2, IntPtr.Zero, nearCallback); } - catch (System.AccessViolationException) + catch (AccessViolationException) { m_log.Warn("[PHYSICS]: Unable to collide test a space"); return; @@ -404,7 +406,7 @@ namespace OpenSim.Region.Physics.OdePlugin ode.drelease(world); base.TriggerPhysicsBasedRestart(); } - catch (System.AccessViolationException) + catch (AccessViolationException) { m_log.Warn("[PHYSICS]: Unable to collide test an object"); @@ -1166,7 +1168,7 @@ namespace OpenSim.Region.Physics.OdePlugin } } - catch (System.AccessViolationException) + catch (AccessViolationException) { m_log.Info("[PHYSICS]: Couldn't remove prim from physics scene, it was already be removed."); } @@ -1243,7 +1245,7 @@ namespace OpenSim.Region.Physics.OdePlugin // never be called if the prim is physical(active) // All physical prim end up in the root space - System.Threading.Thread.Sleep(20); + Thread.Sleep(20); if (currentspace != space) { //m_log.Info("[SPACE]: C:" + currentspace.ToString() + " g:" + geom.ToString()); diff --git a/OpenSim/Region/ScriptEngine/Common/BuilIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/BuilIn_Commands.cs index a429272..1a50f0b 100644 --- a/OpenSim/Region/ScriptEngine/Common/BuilIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/BuilIn_Commands.cs @@ -25,9 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; -using System.Text; using libsecondlife; using OpenSim.Region.Environment.Scenes; diff --git a/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs b/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs index b6468c2..8aee94e 100644 --- a/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs +++ b/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs @@ -26,15 +26,14 @@ */ using System; -using System.Collections.Generic; using System.Runtime.Remoting.Lifetime; using System.Threading; -using OpenSim.Region.ScriptEngine.Common; +using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase; using integer = System.Int32; using key = System.String; -using vector = OpenSim.Region.ScriptEngine.Common.LSL_Types.Vector3; -using rotation = OpenSim.Region.ScriptEngine.Common.LSL_Types.Quaternion; +using vector = ScriptEngine.Common.LSL_Types.Vector3; +using rotation = Quaternion; namespace OpenSim.Region.ScriptEngine.Common { @@ -151,7 +150,7 @@ namespace OpenSim.Region.ScriptEngine.Common // They are only forwarders to LSL_BuiltIn_Commands.cs // - public OpenSim.Region.Environment.Interfaces.ICommander GetCommander(string name) + public ICommander GetCommander(string name) { return m_LSL_Functions.GetCommander(name); } @@ -216,52 +215,52 @@ namespace OpenSim.Region.ScriptEngine.Common return m_LSL_Functions.llRound(f); } - public double llVecMag(vector v) + public double llVecMag(LSL_Types.Vector3 v) { return m_LSL_Functions.llVecMag(v); } - public vector llVecNorm(vector v) + public LSL_Types.Vector3 llVecNorm(LSL_Types.Vector3 v) { return m_LSL_Functions.llVecNorm(v); } - public double llVecDist(vector a, vector b) + public double llVecDist(LSL_Types.Vector3 a, LSL_Types.Vector3 b) { return m_LSL_Functions.llVecDist(a, b); } - public vector llRot2Euler(rotation r) + public LSL_Types.Vector3 llRot2Euler(LSL_Types.Quaternion r) { return m_LSL_Functions.llRot2Euler(r); } - public rotation llEuler2Rot(vector v) + public LSL_Types.Quaternion llEuler2Rot(LSL_Types.Vector3 v) { return m_LSL_Functions.llEuler2Rot(v); } - public rotation llAxes2Rot(vector fwd, vector left, vector up) + public LSL_Types.Quaternion llAxes2Rot(LSL_Types.Vector3 fwd, LSL_Types.Vector3 left, LSL_Types.Vector3 up) { return m_LSL_Functions.llAxes2Rot(fwd, left, up); } - public vector llRot2Fwd(rotation r) + public LSL_Types.Vector3 llRot2Fwd(LSL_Types.Quaternion r) { return m_LSL_Functions.llRot2Fwd(r); } - public vector llRot2Left(rotation r) + public LSL_Types.Vector3 llRot2Left(LSL_Types.Quaternion r) { return m_LSL_Functions.llRot2Left(r); } - public vector llRot2Up(rotation r) + public LSL_Types.Vector3 llRot2Up(LSL_Types.Quaternion r) { return m_LSL_Functions.llRot2Up(r); } - public rotation llRotBetween(vector start, vector end) + public LSL_Types.Quaternion llRotBetween(LSL_Types.Vector3 start, LSL_Types.Vector3 end) { return m_LSL_Functions.llRotBetween(start, end); } @@ -334,22 +333,22 @@ namespace OpenSim.Region.ScriptEngine.Common return m_LSL_Functions.llDetectedType(number); } - public vector llDetectedPos(int number) + public LSL_Types.Vector3 llDetectedPos(int number) { return m_LSL_Functions.llDetectedPos(number); } - public vector llDetectedVel(int number) + public LSL_Types.Vector3 llDetectedVel(int number) { return m_LSL_Functions.llDetectedVel(number); } - public vector llDetectedGrab(int number) + public LSL_Types.Vector3 llDetectedGrab(int number) { return m_LSL_Functions.llDetectedGrab(number); } - public rotation llDetectedRot(int number) + public LSL_Types.Quaternion llDetectedRot(int number) { return m_LSL_Functions.llDetectedRot(number); } @@ -372,17 +371,17 @@ namespace OpenSim.Region.ScriptEngine.Common m_LSL_Functions.llDie(); } - public double llGround(vector offset) + public double llGround(LSL_Types.Vector3 offset) { return m_LSL_Functions.llGround(offset); } - public double llCloud(vector offset) + public double llCloud(LSL_Types.Vector3 offset) { return m_LSL_Functions.llCloud(offset); } - public vector llWind(vector offset) + public LSL_Types.Vector3 llWind(LSL_Types.Vector3 offset) { return m_LSL_Functions.llWind(offset); } @@ -397,17 +396,17 @@ namespace OpenSim.Region.ScriptEngine.Common return m_LSL_Functions.llGetStatus(status); } - public void llSetScale(vector scale) + public void llSetScale(LSL_Types.Vector3 scale) { m_LSL_Functions.llSetScale(scale); } - public vector llGetScale() + public LSL_Types.Vector3 llGetScale() { return m_LSL_Functions.llGetScale(); } - public void llSetColor(vector color, int face) + public void llSetColor(LSL_Types.Vector3 color, int face) { m_LSL_Functions.llSetColor(color, face); } @@ -422,7 +421,7 @@ namespace OpenSim.Region.ScriptEngine.Common m_LSL_Functions.llSetAlpha(alpha, face); } - public vector llGetColor(int face) + public LSL_Types.Vector3 llGetColor(int face) { return m_LSL_Functions.llGetColor(face); } @@ -455,47 +454,47 @@ namespace OpenSim.Region.ScriptEngine.Common // // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs // - public void llSetPos(vector pos) + public void llSetPos(LSL_Types.Vector3 pos) { m_LSL_Functions.llSetPos(pos); } - public vector llGetPos() + public LSL_Types.Vector3 llGetPos() { return m_LSL_Functions.llGetPos(); } - public vector llGetLocalPos() + public LSL_Types.Vector3 llGetLocalPos() { return m_LSL_Functions.llGetLocalPos(); } - public void llSetRot(rotation rot) + public void llSetRot(LSL_Types.Quaternion rot) { m_LSL_Functions.llSetRot(rot); } - public rotation llGetRot() + public LSL_Types.Quaternion llGetRot() { return m_LSL_Functions.llGetRot(); } - public rotation llGetLocalRot() + public LSL_Types.Quaternion llGetLocalRot() { return m_LSL_Functions.llGetLocalRot(); } - public void llSetForce(vector force, int local) + public void llSetForce(LSL_Types.Vector3 force, int local) { m_LSL_Functions.llSetForce(force, local); } - public vector llGetForce() + public LSL_Types.Vector3 llGetForce() { return m_LSL_Functions.llGetForce(); } - public int llTarget(vector position, double range) + public int llTarget(LSL_Types.Vector3 position, double range) { return m_LSL_Functions.llTarget(position, range); } @@ -505,7 +504,7 @@ namespace OpenSim.Region.ScriptEngine.Common m_LSL_Functions.llTargetRemove(number); } - public int llRotTarget(rotation rot, double error) + public int llRotTarget(LSL_Types.Quaternion rot, double error) { return m_LSL_Functions.llRotTarget(rot, error); } @@ -515,7 +514,7 @@ namespace OpenSim.Region.ScriptEngine.Common m_LSL_Functions.llRotTargetRemove(number); } - public void llMoveToTarget(vector target, double tau) + public void llMoveToTarget(LSL_Types.Vector3 target, double tau) { m_LSL_Functions.llMoveToTarget(target, tau); } @@ -525,7 +524,7 @@ namespace OpenSim.Region.ScriptEngine.Common m_LSL_Functions.llStopMoveToTarget(); } - public void llApplyImpulse(vector force, int local) + public void llApplyImpulse(LSL_Types.Vector3 force, int local) { m_LSL_Functions.llApplyImpulse(force, local); } @@ -533,37 +532,37 @@ namespace OpenSim.Region.ScriptEngine.Common // // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs // - public void llApplyRotationalImpulse(vector force, int local) + public void llApplyRotationalImpulse(LSL_Types.Vector3 force, int local) { m_LSL_Functions.llApplyRotationalImpulse(force, local); } - public void llSetTorque(vector torque, int local) + public void llSetTorque(LSL_Types.Vector3 torque, int local) { m_LSL_Functions.llSetTorque(torque, local); } - public vector llGetTorque() + public LSL_Types.Vector3 llGetTorque() { return m_LSL_Functions.llGetTorque(); } - public void llSetForceAndTorque(vector force, vector torque, int local) + public void llSetForceAndTorque(LSL_Types.Vector3 force, LSL_Types.Vector3 torque, int local) { m_LSL_Functions.llSetForceAndTorque(force, torque, local); } - public vector llGetVel() + public LSL_Types.Vector3 llGetVel() { return m_LSL_Functions.llGetVel(); } - public vector llGetAccel() + public LSL_Types.Vector3 llGetAccel() { return m_LSL_Functions.llGetAccel(); } - public vector llGetOmega() + public LSL_Types.Vector3 llGetOmega() { return m_LSL_Functions.llGetOmega(); } @@ -691,12 +690,12 @@ namespace OpenSim.Region.ScriptEngine.Common m_LSL_Functions.llMakeFire(); } - public void llRezObject(string inventory, vector pos, rotation rot, int param) + public void llRezObject(string inventory, LSL_Types.Vector3 pos, LSL_Types.Quaternion rot, int param) { m_LSL_Functions.llRezObject(inventory, pos, rot, param); } - public void llLookAt(vector target, double strength, double damping) + public void llLookAt(LSL_Types.Vector3 target, double strength, double damping) { m_LSL_Functions.llLookAt(target, strength, damping); } @@ -809,7 +808,7 @@ namespace OpenSim.Region.ScriptEngine.Common m_LSL_Functions.llSoundPreload(); } - public void llRotLookAt(rotation target, double strength, double damping) + public void llRotLookAt(LSL_Types.Quaternion target, double strength, double damping) { m_LSL_Functions.llRotLookAt(target, strength, damping); } @@ -842,7 +841,7 @@ namespace OpenSim.Region.ScriptEngine.Common m_LSL_Functions.llStopPointAt(); } - public void llTargetOmega(vector axis, double spinrate, double gain) + public void llTargetOmega(LSL_Types.Vector3 axis, double spinrate, double gain) { m_LSL_Functions.llTargetOmega(axis, spinrate, gain); } @@ -852,7 +851,7 @@ namespace OpenSim.Region.ScriptEngine.Common return m_LSL_Functions.llGetStartParameter(); } - public void llGodLikeRezObject(string inventory, vector pos) + public void llGodLikeRezObject(string inventory, LSL_Types.Vector3 pos) { m_LSL_Functions.llGodLikeRezObject(inventory, pos); } @@ -877,7 +876,7 @@ namespace OpenSim.Region.ScriptEngine.Common return m_LSL_Functions.llGetLinkNumber(); } - public void llSetLinkColor(int linknumber, vector color, int face) + public void llSetLinkColor(int linknumber, LSL_Types.Vector3 color, int face) { m_LSL_Functions.llSetLinkColor(linknumber, color, face); } @@ -940,12 +939,12 @@ namespace OpenSim.Region.ScriptEngine.Common m_LSL_Functions.llRemoveInventory(item); } - public void llSetText(string text, vector color, double alpha) + public void llSetText(string text, LSL_Types.Vector3 color, double alpha) { m_LSL_Functions.llSetText(text, color, alpha); } - public double llWater(vector offset) + public double llWater(LSL_Types.Vector3 offset) { return m_LSL_Functions.llWater(offset); } @@ -1005,7 +1004,7 @@ namespace OpenSim.Region.ScriptEngine.Common m_LSL_Functions.llMessageLinked(linknum, num, str, id); } - public void llPushObject(string target, vector impulse, vector ang_impulse, int local) + public void llPushObject(string target, LSL_Types.Vector3 impulse, LSL_Types.Vector3 ang_impulse, int local) { m_LSL_Functions.llPushObject(target, impulse, ang_impulse, local); } @@ -1028,12 +1027,12 @@ namespace OpenSim.Region.ScriptEngine.Common // // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs // - public rotation llAxisAngle2Rot(vector axis, double angle) + public LSL_Types.Quaternion llAxisAngle2Rot(LSL_Types.Vector3 axis, double angle) { return m_LSL_Functions.llAxisAngle2Rot(axis, angle); } - public vector llRot2Axis(rotation rot) + public LSL_Types.Vector3 llRot2Axis(LSL_Types.Quaternion rot) { return m_LSL_Functions.llRot2Axis(rot); } @@ -1053,7 +1052,7 @@ namespace OpenSim.Region.ScriptEngine.Common return m_LSL_Functions.llAsin(val); } - public double llAngleBetween(rotation a, rotation b) + public double llAngleBetween(LSL_Types.Quaternion a, LSL_Types.Quaternion b) { return m_LSL_Functions.llAngleBetween(a, b); } @@ -1068,17 +1067,17 @@ namespace OpenSim.Region.ScriptEngine.Common m_LSL_Functions.llAllowInventoryDrop(add); } - public vector llGetSunDirection() + public LSL_Types.Vector3 llGetSunDirection() { return m_LSL_Functions.llGetSunDirection(); } - public vector llGetTextureOffset(int face) + public LSL_Types.Vector3 llGetTextureOffset(int face) { return m_LSL_Functions.llGetTextureOffset(face); } - public vector llGetTextureScale(int side) + public LSL_Types.Vector3 llGetTextureScale(int side) { return m_LSL_Functions.llGetTextureScale(side); } @@ -1098,7 +1097,7 @@ namespace OpenSim.Region.ScriptEngine.Common return m_LSL_Functions.llGetOwnerKey(id); } - public vector llGetCenterOfMass() + public LSL_Types.Vector3 llGetCenterOfMass() { return m_LSL_Functions.llGetCenterOfMass(); } @@ -1136,12 +1135,12 @@ namespace OpenSim.Region.ScriptEngine.Common return m_LSL_Functions.llList2Key(src, index); } - public vector llList2Vector(LSL_Types.list src, int index) + public LSL_Types.Vector3 llList2Vector(LSL_Types.list src, int index) { return m_LSL_Functions.llList2Vector(src, index); } - public rotation llList2Rot(LSL_Types.list src, int index) + public LSL_Types.Quaternion llList2Rot(LSL_Types.list src, int index) { return m_LSL_Functions.llList2Rot(src, index); } @@ -1181,7 +1180,7 @@ namespace OpenSim.Region.ScriptEngine.Common return m_LSL_Functions.llList2ListStrided(src, start, end, stride); } - public vector llGetRegionCorner() + public LSL_Types.Vector3 llGetRegionCorner() { return m_LSL_Functions.llGetRegionCorner(); } @@ -1211,7 +1210,7 @@ namespace OpenSim.Region.ScriptEngine.Common return m_LSL_Functions.llGetDate(); } - public int llEdgeOfWorld(vector pos, vector dir) + public int llEdgeOfWorld(LSL_Types.Vector3 pos, LSL_Types.Vector3 dir) { return m_LSL_Functions.llEdgeOfWorld(pos, dir); } @@ -1249,7 +1248,7 @@ namespace OpenSim.Region.ScriptEngine.Common m_LSL_Functions.llSetTextureAnim(mode, face, sizex, sizey, start, length, rate); } - public void llTriggerSoundLimited(string sound, double volume, vector top_north_east, vector bottom_south_west) + public void llTriggerSoundLimited(string sound, double volume, LSL_Types.Vector3 top_north_east, LSL_Types.Vector3 bottom_south_west) { m_LSL_Functions.llTriggerSoundLimited(sound, volume, top_north_east, bottom_south_west); } @@ -1269,7 +1268,7 @@ namespace OpenSim.Region.ScriptEngine.Common return m_LSL_Functions.llOverMyLand(id); } - public string llGetLandOwnerAt(vector pos) + public string llGetLandOwnerAt(LSL_Types.Vector3 pos) { return m_LSL_Functions.llGetLandOwnerAt(pos); } @@ -1279,7 +1278,7 @@ namespace OpenSim.Region.ScriptEngine.Common return m_LSL_Functions.llGetNotecardLine(name, line); } - public vector llGetAgentSize(string id) + public LSL_Types.Vector3 llGetAgentSize(string id) { return m_LSL_Functions.llGetAgentSize(id); } @@ -1294,17 +1293,17 @@ namespace OpenSim.Region.ScriptEngine.Common m_LSL_Functions.llUnSit(id); } - public vector llGroundSlope(vector offset) + public LSL_Types.Vector3 llGroundSlope(LSL_Types.Vector3 offset) { return m_LSL_Functions.llGroundSlope(offset); } - public vector llGroundNormal(vector offset) + public LSL_Types.Vector3 llGroundNormal(LSL_Types.Vector3 offset) { return m_LSL_Functions.llGroundNormal(offset); } - public vector llGroundContour(vector offset) + public LSL_Types.Vector3 llGroundContour(LSL_Types.Vector3 offset) { return m_LSL_Functions.llGroundContour(offset); } @@ -1362,12 +1361,12 @@ namespace OpenSim.Region.ScriptEngine.Common m_LSL_Functions.llSetVehicledoubleParam(param, value); } - public void llSetVehicleVectorParam(int param, vector vec) + public void llSetVehicleVectorParam(int param, LSL_Types.Vector3 vec) { m_LSL_Functions.llSetVehicleVectorParam(param, vec); } - public void llSetVehicleRotationParam(int param, rotation rot) + public void llSetVehicleRotationParam(int param, LSL_Types.Quaternion rot) { m_LSL_Functions.llSetVehicleRotationParam(param, rot); } @@ -1382,7 +1381,7 @@ namespace OpenSim.Region.ScriptEngine.Common m_LSL_Functions.llRemoveVehicleFlags(flags); } - public void llSitTarget(vector offset, rotation rot) + public void llSitTarget(LSL_Types.Vector3 offset, LSL_Types.Quaternion rot) { m_LSL_Functions.llSitTarget(offset, rot); } @@ -1407,12 +1406,12 @@ namespace OpenSim.Region.ScriptEngine.Common m_LSL_Functions.llSetSitText(text); } - public void llSetCameraEyeOffset(vector offset) + public void llSetCameraEyeOffset(LSL_Types.Vector3 offset) { m_LSL_Functions.llSetCameraEyeOffset(offset); } - public void llSetCameraAtOffset(vector offset) + public void llSetCameraAtOffset(LSL_Types.Vector3 offset) { m_LSL_Functions.llSetCameraAtOffset(offset); } @@ -1422,7 +1421,7 @@ namespace OpenSim.Region.ScriptEngine.Common return m_LSL_Functions.llDumpList2String(src, seperator); } - public void llScriptDanger(vector pos) + public void llScriptDanger(LSL_Types.Vector3 pos) { m_LSL_Functions.llScriptDanger(pos); } @@ -1539,12 +1538,12 @@ namespace OpenSim.Region.ScriptEngine.Common m_LSL_Functions.llSetParcelMusicURL(url); } - public vector llGetRootPosition() + public LSL_Types.Vector3 llGetRootPosition() { return m_LSL_Functions.llGetRootPosition(); } - public rotation llGetRootRotation() + public LSL_Types.Quaternion llGetRootRotation() { return m_LSL_Functions.llGetRootRotation(); } @@ -1589,7 +1588,7 @@ namespace OpenSim.Region.ScriptEngine.Common return m_LSL_Functions.llGetBoundingBox(obj); } - public vector llGetGeometricCenter() + public LSL_Types.Vector3 llGetGeometricCenter() { return m_LSL_Functions.llGetGeometricCenter(); } @@ -1622,7 +1621,7 @@ namespace OpenSim.Region.ScriptEngine.Common return m_LSL_Functions.llGetSimulatorHostname(); } - public void llSetLocalRot(rotation rot) + public void llSetLocalRot(LSL_Types.Quaternion rot) { m_LSL_Functions.llSetLocalRot(rot); } @@ -1632,7 +1631,7 @@ namespace OpenSim.Region.ScriptEngine.Common return m_LSL_Functions.llParseStringKeepNulls(src, seperators, spacers); } - public void llRezAtRoot(string inventory, vector position, vector velocity, rotation rot, int param) + public void llRezAtRoot(string inventory, LSL_Types.Vector3 position, LSL_Types.Vector3 velocity, LSL_Types.Quaternion rot, int param) { m_LSL_Functions.llRezAtRoot(inventory, position, velocity, rot, param); } @@ -1720,12 +1719,12 @@ namespace OpenSim.Region.ScriptEngine.Common m_LSL_Functions.llSetPayPrice(price, quick_pay_buttons); } - public vector llGetCameraPos() + public LSL_Types.Vector3 llGetCameraPos() { return m_LSL_Functions.llGetCameraPos(); } - public rotation llGetCameraRot() + public LSL_Types.Quaternion llGetCameraRot() { return m_LSL_Functions.llGetCameraRot(); } @@ -1750,7 +1749,7 @@ namespace OpenSim.Region.ScriptEngine.Common return m_LSL_Functions.llUnescapeURL(url); } - public void llMapDestination(string simname, vector pos, vector look_at) + public void llMapDestination(string simname, LSL_Types.Vector3 pos, LSL_Types.Vector3 look_at) { m_LSL_Functions.llMapDestination(simname, pos, look_at); } @@ -1790,7 +1789,7 @@ namespace OpenSim.Region.ScriptEngine.Common return m_LSL_Functions.llGetUnixTime(); } - public int llGetParcelFlags(vector pos) + public int llGetParcelFlags(LSL_Types.Vector3 pos) { return m_LSL_Functions.llGetParcelFlags(pos); } @@ -1820,12 +1819,12 @@ namespace OpenSim.Region.ScriptEngine.Common m_LSL_Functions.llResetLandPassList(); } - public int llGetParcelPrimCount(vector pos, int category, int sim_wide) + public int llGetParcelPrimCount(LSL_Types.Vector3 pos, int category, int sim_wide) { return m_LSL_Functions.llGetParcelPrimCount(pos, category, sim_wide); } - public LSL_Types.list llGetParcelPrimOwners(vector pos) + public LSL_Types.list llGetParcelPrimOwners(LSL_Types.Vector3 pos) { return m_LSL_Functions.llGetParcelPrimOwners(pos); } @@ -1838,12 +1837,12 @@ namespace OpenSim.Region.ScriptEngine.Common // // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs // - public int llGetParcelMaxPrims(vector pos, int sim_wide) + public int llGetParcelMaxPrims(LSL_Types.Vector3 pos, int sim_wide) { return m_LSL_Functions.llGetParcelMaxPrims(pos, sim_wide); } - public LSL_Types.list llGetParcelDetails(vector pos, LSL_Types.list param) + public LSL_Types.list llGetParcelDetails(LSL_Types.Vector3 pos, LSL_Types.list param) { return m_LSL_Functions.llGetParcelDetails(pos, param); } @@ -2381,7 +2380,7 @@ namespace OpenSim.Region.ScriptEngine.Common public const int OBJECT_CREATOR = 8; // Can not be public const? - public vector ZERO_VECTOR = new vector(0.0, 0.0, 0.0); - public rotation ZERO_ROTATION = new rotation(0.0, 0, 0.0, 1.0); + public LSL_Types.Vector3 ZERO_VECTOR = new LSL_Types.Vector3(0.0, 0.0, 0.0); + public LSL_Types.Quaternion ZERO_ROTATION = new LSL_Types.Quaternion(0.0, 0, 0.0, 1.0); } } diff --git a/OpenSim/Region/ScriptEngine/Common/Executor.cs b/OpenSim/Region/ScriptEngine/Common/Executor.cs index 45f7355..8e0d6f1 100644 --- a/OpenSim/Region/ScriptEngine/Common/Executor.cs +++ b/OpenSim/Region/ScriptEngine/Common/Executor.cs @@ -28,7 +28,6 @@ using System; using System.Collections.Generic; using System.Reflection; -using System.Runtime.Remoting.Lifetime; namespace OpenSim.Region.ScriptEngine.Common { diff --git a/OpenSim/Region/ScriptEngine/Common/ExecutorBase.cs b/OpenSim/Region/ScriptEngine/Common/ExecutorBase.cs index 50eb56f..19fb487 100644 --- a/OpenSim/Region/ScriptEngine/Common/ExecutorBase.cs +++ b/OpenSim/Region/ScriptEngine/Common/ExecutorBase.cs @@ -26,9 +26,7 @@ */ using System; -using System.Collections.Generic; using System.Runtime.Remoting.Lifetime; -using System.Text; namespace OpenSim.Region.ScriptEngine.Common { diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index c00254d..04f8967 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs @@ -34,13 +34,12 @@ using System.Threading; using Axiom.Math; using libsecondlife; using OpenSim.Framework; -using OpenSim.Framework.Communications; +using OpenSim.Region.Environment; using OpenSim.Region.Environment.Interfaces; +using OpenSim.Region.Environment.Modules.LandManagement; using OpenSim.Region.Environment.Scenes; -using OpenSim.Region.ScriptEngine.Common; using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase; -using OpenSim.Region.Environment; -using OpenSim.Region.Environment.Modules.LandManagement; + //using OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL; namespace OpenSim.Region.ScriptEngine.Common @@ -86,7 +85,7 @@ namespace OpenSim.Region.ScriptEngine.Common } catch (AppDomainUnloadedException) { - System.Console.WriteLine("[SCRIPT]: state change called when script was unloaded. Nothing to worry about, but noting the occurance"); + Console.WriteLine("[SCRIPT]: state change called when script was unloaded. Nothing to worry about, but noting the occurance"); } } } @@ -1677,10 +1676,10 @@ namespace OpenSim.Region.ScriptEngine.Common //m_pendingFriendRequests.Add(friendTransactionID, fromAgentID); GridInstantMessage msg = new GridInstantMessage(); - msg.fromAgentID = new System.Guid(m_host.UUID.ToString()); // fromAgentID.UUID; - msg.fromAgentSession = new System.Guid(friendTransactionID.ToString());// fromAgentSession.UUID; - msg.toAgentID = new System.Guid(user); // toAgentID.UUID; - msg.imSessionID = new System.Guid(friendTransactionID.ToString()); // This is the item we're mucking with here + msg.fromAgentID = new Guid(m_host.UUID.ToString()); // fromAgentID.UUID; + msg.fromAgentSession = new Guid(friendTransactionID.ToString());// fromAgentSession.UUID; + msg.toAgentID = new Guid(user); // toAgentID.UUID; + msg.imSessionID = new Guid(friendTransactionID.ToString()); // This is the item we're mucking with here Console.WriteLine("[Scripting IM]: From:" + msg.fromAgentID.ToString() + " To: " + msg.toAgentID.ToString() + " Session:" + msg.imSessionID.ToString() + " Message:" + message); Console.WriteLine("[Scripting IM]: Filling Session: " + msg.imSessionID.ToString()); msg.timestamp = (uint)Util.UnixTimeSinceEpoch();// timestamp; @@ -2654,7 +2653,7 @@ namespace OpenSim.Region.ScriptEngine.Common { return new LSL_Types.Vector3(0, 0, 0); } - if (src.Data[index].GetType() == typeof(OpenSim.Region.ScriptEngine.Common.LSL_Types.Vector3)) + if (src.Data[index].GetType() == typeof(LSL_Types.Vector3)) { return (LSL_Types.Vector3)src.Data[index]; } @@ -2675,7 +2674,7 @@ namespace OpenSim.Region.ScriptEngine.Common { return new LSL_Types.Quaternion(0, 0, 0, 1); } - if (src.Data[index].GetType() == typeof(OpenSim.Region.ScriptEngine.Common.LSL_Types.Quaternion)) + if (src.Data[index].GetType() == typeof(LSL_Types.Quaternion)) { return (LSL_Types.Quaternion)src.Data[index]; } @@ -2713,11 +2712,11 @@ namespace OpenSim.Region.ScriptEngine.Common return 0; } - if (src.Data[index] is System.Int32) + if (src.Data[index] is Int32) return 1; - if (src.Data[index] is System.Double) + if (src.Data[index] is Double) return 2; - if (src.Data[index] is System.String) + if (src.Data[index] is String) { LLUUID tuuid; if (LLUUID.TryParse(src.Data[index].ToString(), out tuuid)) @@ -2729,11 +2728,11 @@ namespace OpenSim.Region.ScriptEngine.Common return 4; } } - if (src.Data[index] is OpenSim.Region.ScriptEngine.Common.LSL_Types.Vector3) + if (src.Data[index] is LSL_Types.Vector3) return 5; - if (src.Data[index] is OpenSim.Region.ScriptEngine.Common.LSL_Types.Quaternion) + if (src.Data[index] is LSL_Types.Quaternion) return 6; - if (src.Data[index] is OpenSim.Region.ScriptEngine.Common.LSL_Types.list) + if (src.Data[index] is LSL_Types.list) return 7; return 0; diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs index 8d8e0bc..fa957bb 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs @@ -25,7 +25,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System.Collections.Generic; +using OpenSim.Region.Environment.Interfaces; namespace OpenSim.Region.ScriptEngine.Common { @@ -35,7 +35,7 @@ namespace OpenSim.Region.ScriptEngine.Common string State { get; set; } - OpenSim.Region.Environment.Interfaces.ICommander GetCommander(string name); + ICommander GetCommander(string name); double llSin(double f); double llCos(double f); diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs index 55c13a4..7a8b4ca 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs @@ -26,8 +26,8 @@ */ using System; -using System.Text.RegularExpressions; using System.Collections; +using System.Text.RegularExpressions; namespace OpenSim.Region.ScriptEngine.Common { @@ -639,7 +639,7 @@ namespace OpenSim.Region.ScriptEngine.Common public double GeometricMean() { double ret = 1.0; - list nums = list.ToDoubleList(this); + list nums = ToDoubleList(this); for (int i = 0; i < nums.Data.Length; i++) { ret *= (double)nums.Data[i]; @@ -650,7 +650,7 @@ namespace OpenSim.Region.ScriptEngine.Common public double HarmonicMean() { double ret = 0.0; - list nums = list.ToDoubleList(this); + list nums = ToDoubleList(this); for (int i = 0; i < nums.Data.Length; i++) { ret += 1.0 / (double)nums.Data[i]; @@ -661,7 +661,7 @@ namespace OpenSim.Region.ScriptEngine.Common public double Variance() { double s = 0; - list num = list.ToDoubleList(this); + list num = ToDoubleList(this); for (int i = 0; i < num.Data.Length; i++) { s += Math.Pow((double)num.Data[i], 2); @@ -701,7 +701,7 @@ namespace OpenSim.Region.ScriptEngine.Common output = "["; foreach (object o in m_data) { - if (o is System.String) + if (o is String) { output = output + "\"" + o + "\", "; } @@ -837,7 +837,7 @@ namespace OpenSim.Region.ScriptEngine.Common #region Operators - static public implicit operator System.Boolean(key k) + static public implicit operator Boolean(key k) { if (k.value.Length == 0) { @@ -864,7 +864,7 @@ namespace OpenSim.Region.ScriptEngine.Common return new key(s); } - static public implicit operator System.String(key k) + static public implicit operator String(key k) { return k.value; } @@ -917,7 +917,7 @@ namespace OpenSim.Region.ScriptEngine.Common #endregion #region Operators - static public implicit operator System.Boolean(LSLString s) + static public implicit operator Boolean(LSLString s) { if (s.m_string.Length == 0) { @@ -929,7 +929,7 @@ namespace OpenSim.Region.ScriptEngine.Common } } - static public implicit operator System.String(LSLString s) + static public implicit operator String(LSLString s) { return s.m_string; } @@ -1017,12 +1017,12 @@ namespace OpenSim.Region.ScriptEngine.Common } #endregion - static public implicit operator System.Int32(LSLInteger i) + static public implicit operator Int32(LSLInteger i) { return i.value; } - static public implicit operator System.Boolean(LSLInteger i) + static public implicit operator Boolean(LSLInteger i) { if (i.value == 0) { @@ -1086,7 +1086,7 @@ namespace OpenSim.Region.ScriptEngine.Common #region Operators - static public implicit operator System.Double(LSLFloat f) + static public implicit operator Double(LSLFloat f) { return f.value; } @@ -1097,7 +1097,7 @@ namespace OpenSim.Region.ScriptEngine.Common //} - static public implicit operator System.Boolean(LSLFloat f) + static public implicit operator Boolean(LSLFloat f) { if (f.value == 0) { diff --git a/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs index de19f4e..b919f8d 100644 --- a/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs @@ -25,21 +25,13 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Remoting.Lifetime; -using System.Text; -using System.Threading; using Axiom.Math; using libsecondlife; -using OpenSim.Framework; -using OpenSim.Framework.Communications; +using Nini.Config; +using OpenSim.Framework.Console; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; -using OpenSim.Region.ScriptEngine.Common; -using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase; -using OpenSim.Region.Environment; -using OpenSim.Region.Environment.Modules.LandManagement; + //using OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL; namespace OpenSim.Region.ScriptEngine.Common @@ -408,7 +400,7 @@ namespace OpenSim.Region.ScriptEngine.Common public bool osConsoleCommand(string command) { m_host.AddScriptLPS(1); - Nini.Config.IConfigSource config = new Nini.Config.IniConfigSource(Application.iniFilePath); + IConfigSource config = new IniConfigSource(Application.iniFilePath); if (config.Configs["LL-Functions"] == null) config.AddConfig("LL-Functions"); @@ -416,7 +408,7 @@ namespace OpenSim.Region.ScriptEngine.Common { if (World.PermissionsMngr.CanRunConsoleCommand(m_host.OwnerID)) { - OpenSim.Framework.Console.MainConsole.Instance.RunCommand(command); + MainConsole.Instance.RunCommand(command); return true; } return false; diff --git a/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands_Interface.cs b/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands_Interface.cs index 3102e3f..a4dd3b0 100644 --- a/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands_Interface.cs +++ b/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands_Interface.cs @@ -25,10 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; -using System.Text; - namespace OpenSim.Region.ScriptEngine.Common { public interface OSSL_BuilIn_Commands_Interface diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AppDomainManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AppDomainManager.cs index 41100c9..262d75f 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AppDomainManager.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AppDomainManager.cs @@ -29,7 +29,6 @@ using System; using System.Collections; using System.Collections.Generic; using System.Reflection; -using OpenSim.Region.ScriptEngine.Common; namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase { diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandManager.cs index a1bb5c9..7dad7ee 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandManager.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandManager.cs @@ -25,16 +25,11 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; using System.Collections; -using System.Collections.Generic; using System.Threading; using libsecondlife; -using Axiom.Math; -using OpenSim.Region.Environment.Interfaces; -using OpenSim.Region.Environment.Modules; -using OpenSim.Region.Environment.Scenes; using OpenSim.Framework; +using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugins; using Timer=OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugins.Timer; @@ -50,11 +45,11 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase public ScriptEngine m_ScriptEngine; - public AsyncCommandPlugins.Timer m_Timer; - public AsyncCommandPlugins.HttpRequest m_HttpRequest; - public AsyncCommandPlugins.Listener m_Listener; - public AsyncCommandPlugins.SensorRepeat m_SensorRepeat; - public AsyncCommandPlugins.XmlRequest m_XmlRequest; + public Timer m_Timer; + public HttpRequest m_HttpRequest; + public Listener m_Listener; + public SensorRepeat m_SensorRepeat; + public XmlRequest m_XmlRequest; public AsyncCommandManager(ScriptEngine _ScriptEngine) { @@ -81,7 +76,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase cmdHandlerThread.Priority = ThreadPriority.BelowNormal; cmdHandlerThread.IsBackground = true; cmdHandlerThread.Start(); - OpenSim.Framework.ThreadTracker.Add(cmdHandlerThread); + ThreadTracker.Add(cmdHandlerThread); } } diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/HttpRequest.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/HttpRequest.cs index d62734f..521402e 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/HttpRequest.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/HttpRequest.cs @@ -26,16 +26,8 @@ */ using System; -using System.Collections; -using System.Collections.Generic; -using System.Threading; -using libsecondlife; -using Axiom.Math; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Modules; -using OpenSim.Region.Environment.Scenes; -using OpenSim.Framework; -using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugins; namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugins { diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/Listener.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/Listener.cs index 00cbd8c..874a905 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/Listener.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/Listener.cs @@ -25,16 +25,8 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Threading; -using libsecondlife; -using Axiom.Math; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Modules; -using OpenSim.Region.Environment.Scenes; -using OpenSim.Framework; namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugins { diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs index fd8dbd1..71ae80c 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs @@ -26,15 +26,10 @@ */ using System; -using System.Collections; using System.Collections.Generic; -using System.Threading; using libsecondlife; -using Axiom.Math; -using OpenSim.Region.Environment.Interfaces; -using OpenSim.Region.Environment.Modules; -using OpenSim.Region.Environment.Scenes; using OpenSim.Framework; +using OpenSim.Region.Environment.Scenes; namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugins { diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/Timer.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/Timer.cs index 63a8d19..141e471 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/Timer.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/Timer.cs @@ -28,13 +28,7 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Threading; using libsecondlife; -using Axiom.Math; -using OpenSim.Region.Environment.Interfaces; -using OpenSim.Region.Environment.Modules; -using OpenSim.Region.Environment.Scenes; -using OpenSim.Framework; namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugins { diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/XmlRequest.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/XmlRequest.cs index be4f418..c3e1804 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/XmlRequest.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/XmlRequest.cs @@ -26,15 +26,8 @@ */ using System; -using System.Collections; -using System.Collections.Generic; -using System.Threading; -using libsecondlife; -using Axiom.Math; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Modules; -using OpenSim.Region.Environment.Scenes; -using OpenSim.Framework; namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugins { diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs index 2f2b384..b4789a9 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs @@ -35,7 +35,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase /// Prepares events so they can be directly executed upon a script by EventQueueManager, then queues it. /// [Serializable] - public class EventManager : OpenSim.Region.ScriptEngine.Common.ScriptServerInterfaces.RemoteEvents, iScriptEngineFunctionModule + public class EventManager : ScriptServerInterfaces.RemoteEvents, iScriptEngineFunctionModule { // // Class is instanced in "ScriptEngine" and Uses "EventQueueManager" that is also instanced in "ScriptEngine". diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueManager.cs index cd03699..7cbbd4f 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueManager.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueManager.cs @@ -28,10 +28,7 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Threading; using libsecondlife; -using OpenSim.Framework; -using OpenSim.Region.Environment.Scenes.Scripting; namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase { diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs index b8d950a..d77f698 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs @@ -27,11 +27,8 @@ using System; using System.Collections; -using System.Collections.Generic; -using System.Text; using System.Threading; using libsecondlife; -using Nini.Config; using OpenSim.Framework; using OpenSim.Region.Environment.Scenes.Scripting; @@ -123,7 +120,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase EventQueueThread.Priority = MyThreadPriority; EventQueueThread.Name = "EventQueueManagerThread_" + ThreadCount; EventQueueThread.Start(); - OpenSim.Framework.ThreadTracker.Add(EventQueueThread); + ThreadTracker.Add(EventQueueThread); // Look at this... Don't you wish everyone did that solid coding everywhere? :P if (ThreadCount == int.MaxValue) diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs index ad41e5b..2bf0e41 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs @@ -27,9 +27,8 @@ using System; using System.Collections; -using System.Collections.Generic; -using System.Text; using System.Threading; +using OpenSim.Framework; namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase { @@ -94,7 +93,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase MaintenanceThreadThread.Name = "ScriptMaintenanceThread"; MaintenanceThreadThread.IsBackground = true; MaintenanceThreadThread.Start(); - OpenSim.Framework.ThreadTracker.Add(MaintenanceThreadThread); + ThreadTracker.Add(MaintenanceThreadThread); } } @@ -144,7 +143,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase { while (true) { - System.Threading.Thread.Sleep(MaintenanceLoopms); // Sleep before next pass + Thread.Sleep(MaintenanceLoopms); // Sleep before next pass // Reset counters? if (MaintenanceLoopTicks_ScriptLoadUnload_ResetCount) diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs index 02e49a2..a7ad50d 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs @@ -27,13 +27,11 @@ using System; using System.Collections.Generic; -using System.IO; +using System.Reflection; +using log4net; using Nini.Config; -using OpenSim.Framework.Console; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; -using OpenSim.Region.ScriptEngine.Common; -using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase; namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase { @@ -42,9 +40,9 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase /// /// [Serializable] - public abstract class ScriptEngine : IRegionModule, OpenSim.Region.ScriptEngine.Common.ScriptServerInterfaces.ScriptEngine, iScriptEngineFunctionModule + public abstract class ScriptEngine : IRegionModule, ScriptServerInterfaces.ScriptEngine, iScriptEngineFunctionModule { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public static List ScriptEngines = new List(); public Scene World; @@ -75,7 +73,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase public abstract ScriptManager _GetScriptManager(); - public log4net.ILog Log + public ILog Log { get { return m_log; } } diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs index 09f84d6..cd2e530 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs @@ -32,9 +32,7 @@ using System.Reflection; using System.Runtime.Serialization.Formatters.Binary; using System.Threading; using libsecondlife; -using OpenSim.Framework; using OpenSim.Region.Environment.Scenes; -using OpenSim.Region.ScriptEngine.Common; namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase { @@ -106,9 +104,9 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase #region Object init/shutdown - public ScriptEngineBase.ScriptEngine m_scriptEngine; + public ScriptEngine m_scriptEngine; - public ScriptManager(ScriptEngineBase.ScriptEngine scriptEngine) + public ScriptManager(ScriptEngine scriptEngine) { m_scriptEngine = scriptEngine; } diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/iScriptEngineFunctionModule.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/iScriptEngineFunctionModule.cs index 4e037b3..768ba6d 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/iScriptEngineFunctionModule.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/iScriptEngineFunctionModule.cs @@ -25,10 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; -using System.Text; - namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase { public interface iScriptEngineFunctionModule diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptServerInterfaces.cs b/OpenSim/Region/ScriptEngine/Common/ScriptServerInterfaces.cs index 6110251..1119fe8 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptServerInterfaces.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptServerInterfaces.cs @@ -28,7 +28,6 @@ using libsecondlife; using Nini.Config; using OpenSim.Framework; -using OpenSim.Framework.Console; using OpenSim.Region.Environment.Scenes; using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase; diff --git a/OpenSim/Region/ScriptEngine/Common/TRPC/MyBase.cs b/OpenSim/Region/ScriptEngine/Common/TRPC/MyBase.cs index 6fe6381..14c6078 100644 --- a/OpenSim/Region/ScriptEngine/Common/TRPC/MyBase.cs +++ b/OpenSim/Region/ScriptEngine/Common/TRPC/MyBase.cs @@ -25,10 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; -using System.Text; - namespace OpenSim.Region.ScriptEngine.Common.TRPC { class MyBase diff --git a/OpenSim/Region/ScriptEngine/Common/TRPC/TCPClient.cs b/OpenSim/Region/ScriptEngine/Common/TRPC/TCPClient.cs index 7689d69..624c3bb 100644 --- a/OpenSim/Region/ScriptEngine/Common/TRPC/TCPClient.cs +++ b/OpenSim/Region/ScriptEngine/Common/TRPC/TCPClient.cs @@ -25,12 +25,10 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; using System.Collections.Generic; using System.Diagnostics; using System.Net; using System.Net.Sockets; -using System.Text; namespace OpenSim.Region.ScriptEngine.Common.TRPC { diff --git a/OpenSim/Region/ScriptEngine/Common/TRPC/TCPCommon.cs b/OpenSim/Region/ScriptEngine/Common/TRPC/TCPCommon.cs index 521d75b..ab9d9b4 100644 --- a/OpenSim/Region/ScriptEngine/Common/TRPC/TCPCommon.cs +++ b/OpenSim/Region/ScriptEngine/Common/TRPC/TCPCommon.cs @@ -25,11 +25,13 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using System.Net; + namespace OpenSim.Region.ScriptEngine.Common.TRPC { public class TCPCommon { - public delegate void ClientConnectedDelegate(int ID, System.Net.EndPoint Remote); + public delegate void ClientConnectedDelegate(int ID, EndPoint Remote); public delegate void DataReceivedDelegate(int ID, byte[] data, int offset, int length); public delegate void DataSentDelegate(int ID, int length); public delegate void CloseDelegate(int ID); @@ -46,7 +48,7 @@ namespace OpenSim.Region.ScriptEngine.Common.TRPC public interface ClientInterface : ServerAndClientInterface { - event TCPCommon.ConnectErrorDelegate ConnectError; + event ConnectErrorDelegate ConnectError; void Connect(string RemoteHost, int RemotePort); void Disconnect(int ID); } diff --git a/OpenSim/Region/ScriptEngine/Common/TRPC/TCPServer.cs b/OpenSim/Region/ScriptEngine/Common/TRPC/TCPServer.cs index 5d1e53a..55a20e7 100644 --- a/OpenSim/Region/ScriptEngine/Common/TRPC/TCPServer.cs +++ b/OpenSim/Region/ScriptEngine/Common/TRPC/TCPServer.cs @@ -30,7 +30,6 @@ using System.Collections.Generic; using System.Diagnostics; using System.Net; using System.Net.Sockets; -using TCPCommon=OpenSim.Region.ScriptEngine.Common.TRPC.TCPCommon; namespace OpenSim.Region.ScriptEngine.Common.TRPC { diff --git a/OpenSim/Region/ScriptEngine/Common/TRPC_Remote.cs b/OpenSim/Region/ScriptEngine/Common/TRPC_Remote.cs index 4567e60..013ae0f 100644 --- a/OpenSim/Region/ScriptEngine/Common/TRPC_Remote.cs +++ b/OpenSim/Region/ScriptEngine/Common/TRPC_Remote.cs @@ -28,7 +28,9 @@ using System; using System.Collections.Generic; using System.Diagnostics; +using System.Net; using System.Text; +using System.Web; using libsecondlife; using OpenSim.Region.ScriptEngine.Common.TRPC; @@ -41,24 +43,24 @@ namespace OpenSim.Region.ScriptEngine.Common public delegate void ReceiveCommandDelegate(int ID, string Command, params object[] p); public event ReceiveCommandDelegate ReceiveCommand; - System.Collections.Generic.Dictionary TypeDictionary = new Dictionary(); + Dictionary TypeDictionary = new Dictionary(); Type[] Types = { - typeof(System.String), - typeof(System.Int16), - typeof(System.Int32), - typeof(System.Int64), - typeof(System.Double), - typeof(System.Decimal), - typeof(System.Array), + typeof(String), + typeof(Int16), + typeof(Int32), + typeof(Int64), + typeof(Double), + typeof(Decimal), + typeof(Array), typeof(LLUUID), - typeof(System.UInt16), - typeof(System.UInt32), - typeof(System.UInt64) + typeof(UInt16), + typeof(UInt32), + typeof(UInt64) }; // TODO: Maybe we should move queue into TCPSocket so we won't have to keep one queue instance per connection - private System.Collections.Generic.Dictionary InQueue = new Dictionary(); + private Dictionary InQueue = new Dictionary(); private class InQueueStruct { public byte[] Queue; @@ -81,7 +83,7 @@ namespace OpenSim.Region.ScriptEngine.Common } } - void TCPS_ClientConnected(int ID, System.Net.EndPoint Remote) + void TCPS_ClientConnected(int ID, EndPoint Remote) { // Create a incoming queue for this connection InQueueStruct iq = new InQueueStruct(); @@ -165,7 +167,7 @@ namespace OpenSim.Region.ScriptEngine.Common for (int i = 1; i < parts.Length; i++) { string[] spl; - spl = System.Web.HttpUtility.UrlDecode(parts[i]).Split('|'); + spl = HttpUtility.UrlDecode(parts[i]).Split('|'); string t = spl[0]; param[i - 1] = Convert.ChangeType(spl[1], TypeLookup(t)); } @@ -192,7 +194,7 @@ namespace OpenSim.Region.ScriptEngine.Common string tmpStr = Command; for (int i = 0; i < p.Length; i++) { - tmpStr += "," + p[i].GetType().ToString() + "|" + System.Web.HttpUtility.UrlEncode(p[i].ToString()); // .Replace(",", "%44") + tmpStr += "," + p[i].GetType().ToString() + "|" + HttpUtility.UrlEncode(p[i].ToString()); // .Replace(",", "%44") } tmpStr += "\n"; byte[] byteData = Encoding.ASCII.GetBytes(tmpStr); diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs index e3013c9..fc38ef2 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs @@ -30,10 +30,10 @@ using System.CodeDom.Compiler; using System.Collections.Generic; using System.Globalization; using System.IO; -using System.Reflection; using Microsoft.CSharp; -using Microsoft.VisualBasic; using Microsoft.JScript; +using Microsoft.VisualBasic; +using OpenSim.Region.Environment.Interfaces; namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL { @@ -62,8 +62,8 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL private bool WriteScriptSourceToDebugFile; private bool CompileWithDebugInformation; private bool CleanUpOldScriptsOnStartup; - private System.Collections.Generic.Dictionary AllowedCompilers = new Dictionary(StringComparer.CurrentCultureIgnoreCase); - private System.Collections.Generic.Dictionary LanguageMapping = new Dictionary(StringComparer.CurrentCultureIgnoreCase); + private Dictionary AllowedCompilers = new Dictionary(StringComparer.CurrentCultureIgnoreCase); + private Dictionary LanguageMapping = new Dictionary(StringComparer.CurrentCultureIgnoreCase); private string FilePrefix; private string ScriptEnginesPath = "ScriptEngines"; @@ -276,7 +276,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL if (enableCommanderLSL == true && l == enumCompileType.cs) { foreach (KeyValuePair com + ICommander> com in m_scriptEngine.World.GetCommanders()) { compileScript = com.Value.GenerateRuntimeAPI() + compileScript; diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs index 20c108d..0025b26 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs @@ -26,9 +26,9 @@ * */ +using System; using System.Collections.Generic; using System.Text.RegularExpressions; -using System; namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL { @@ -61,7 +61,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL public string Convert(string Script) { quotes.Clear(); - string Return = System.String.Empty; + string Return = String.Empty; Script = " \r\n" + Script; // @@ -77,12 +77,12 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL // temporarily replace quotes so we can work our magic on the script without // always considering if we are inside our outside quotes's // TODO: Does this work on half-quotes in strings? ;) - string _Script = System.String.Empty; + string _Script = String.Empty; string C; bool in_quote = false; bool quote_replaced = false; string quote_replacement_string = "Q_U_O_T_E_REPLACEMENT_"; - string quote = System.String.Empty; + string quote = String.Empty; bool last_was_escape = false; int quote_replaced_count = 0; for (int p = 0; p < Script.Length; p++) @@ -101,7 +101,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL } else { - if (quote == System.String.Empty) + if (quote == String.Empty) { // We didn't replace quote, probably because of empty string? _Script += quote_replacement_string + @@ -111,7 +111,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL quotes.Add( quote_replacement_string + quote_replaced_count.ToString().PadLeft(5, "0".ToCharArray()[0]), quote); - quote = System.String.Empty; + quote = String.Empty; } break; } @@ -155,10 +155,10 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL // int ilevel = 0; int lastlevel = 0; - string ret = System.String.Empty; - string cache = System.String.Empty; + string ret = String.Empty; + string cache = String.Empty; bool in_state = false; - string current_statename = System.String.Empty; + string current_statename = String.Empty; for (int p = 0; p < Script.Length; p++) { C = Script.Substring(p, 1); @@ -319,9 +319,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL { state_events.Add(statea, convertnametoFlag(eventa)); } - System.Console.WriteLine("State:" + statea + ", event: " + eventa); + Console.WriteLine("State:" + statea + ", event: " + eventa); } - System.Console.WriteLine("Matches:" + eventmatches.GetUpperBound(0)); + Console.WriteLine("Matches:" + eventmatches.GetUpperBound(0)); // Add namespace, class name and inheritance // Looking *ONLY* for state entry events diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs index 6f2dbad..99efed3 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs @@ -28,13 +28,12 @@ /* Original code: Tedd Hansen */ using System; using Nini.Config; -using OpenSim.Framework.Console; using OpenSim.Region.Environment.Scenes; namespace OpenSim.Region.ScriptEngine.DotNetEngine { [Serializable] - public class ScriptEngine : OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.ScriptEngine + public class ScriptEngine : Common.ScriptEngineBase.ScriptEngine { // We need to override a few things for our DotNetEngine public override void Initialise(Scene scene, IConfigSource config) @@ -43,7 +42,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine InitializeEngine(scene, config, true, GetScriptManager()); } - public override OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.ScriptManager _GetScriptManager() + public override Common.ScriptEngineBase.ScriptManager _GetScriptManager() { return new ScriptManager(this); } diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs index 05a2d06..e242748 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs @@ -34,7 +34,7 @@ using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase; namespace OpenSim.Region.ScriptEngine.DotNetEngine { - public class ScriptManager : OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.ScriptManager + public class ScriptManager : Common.ScriptEngineBase.ScriptManager { public ScriptManager(Common.ScriptEngineBase.ScriptEngine scriptEngine) : base(scriptEngine) diff --git a/OpenSim/Region/ScriptEngine/LSOEngine/LSO/Engine.cs b/OpenSim/Region/ScriptEngine/LSOEngine/LSO/Engine.cs index 54328ff..0208350 100644 --- a/OpenSim/Region/ScriptEngine/LSOEngine/LSO/Engine.cs +++ b/OpenSim/Region/ScriptEngine/LSOEngine/LSO/Engine.cs @@ -33,7 +33,6 @@ using System.Reflection.Emit; using System.Text; using System.Threading; using OpenSim.Region.ScriptEngine.Common; -using OpenSim.Region.ScriptEngine.LSOEngine.LSO; namespace OpenSim.Region.ScriptEngine.LSOEngine.LSO { @@ -59,11 +58,11 @@ namespace OpenSim.Region.ScriptEngine.LSOEngine.LSO string DLL_FileName = asmName.Name + ".dll"; string DLL_FileName_WithPath = Path.GetDirectoryName(LSO_FileName) + @"\" + DLL_FileName; - LSOEngine.LSO.Common.SendToLog("LSO File Name: " + Path.GetFileName(LSO_FileName)); - LSOEngine.LSO.Common.SendToLog("Assembly name: " + asmName.Name); - LSOEngine.LSO.Common.SendToLog("Assembly File Name: " + asmName.Name + ".dll"); - LSOEngine.LSO.Common.SendToLog("Starting processing of LSL ByteCode..."); - LSOEngine.LSO.Common.SendToLog(String.Empty); + Common.SendToLog("LSO File Name: " + Path.GetFileName(LSO_FileName)); + Common.SendToLog("Assembly name: " + asmName.Name); + Common.SendToLog("Assembly File Name: " + asmName.Name + ".dll"); + Common.SendToLog("Starting processing of LSL ByteCode..."); + Common.SendToLog(String.Empty); // Create Assembly @@ -104,7 +103,7 @@ namespace OpenSim.Region.ScriptEngine.LSOEngine.LSO LSOP.Parse(); // Constructor has to be created AFTER LSO_Parser because of accumulated variables - if (LSOEngine.LSO.Common.IL_CreateConstructor) + if (Common.IL_CreateConstructor) IL_CREATE_CONSTRUCTOR(typeBuilder, LSOP); LSOP.CloseFile(); @@ -113,15 +112,15 @@ namespace OpenSim.Region.ScriptEngine.LSOEngine.LSO */ - LSOEngine.LSO.Common.SendToLog("Attempting to compile assembly..."); + Common.SendToLog("Attempting to compile assembly..."); // Compile it Type type = typeBuilder.CreateType(); - LSOEngine.LSO.Common.SendToLog("Compilation successful!"); + Common.SendToLog("Compilation successful!"); - LSOEngine.LSO.Common.SendToLog("Saving assembly: " + DLL_FileName); + Common.SendToLog("Saving assembly: " + DLL_FileName); asmBuilder.Save(DLL_FileName); - LSOEngine.LSO.Common.SendToLog("Returning assembly filename: " + DLL_FileName); + Common.SendToLog("Returning assembly filename: " + DLL_FileName); return DLL_FileName; @@ -166,7 +165,7 @@ namespace OpenSim.Region.ScriptEngine.LSOEngine.LSO private static void IL_CREATE_CONSTRUCTOR(TypeBuilder typeBuilder, LSO_Parser LSOP) { - LSOEngine.LSO.Common.SendToDebug("IL_CREATE_CONSTRUCTOR()"); + Common.SendToDebug("IL_CREATE_CONSTRUCTOR()"); //ConstructorBuilder constructor = typeBuilder.DefineConstructor( // MethodAttributes.Public, // CallingConventions.Standard, @@ -235,7 +234,7 @@ namespace OpenSim.Region.ScriptEngine.LSOEngine.LSO Type datatype = null; // Push data to stack - LSOEngine.LSO.Common.SendToDebug("Adding to static (" + pos + ") type: " + + Common.SendToDebug("Adding to static (" + pos + ") type: " + ((LSO_Enums.Variable_Type_Codes) sb.ObjectType).ToString() + " (" + sb.ObjectType + ")"); switch ((LSO_Enums.Variable_Type_Codes) sb.ObjectType) diff --git a/OpenSim/Region/ScriptEngine/LSOEngine/LSO/IL_common_functions.cs b/OpenSim/Region/ScriptEngine/LSOEngine/LSO/IL_common_functions.cs index 60d68f5..6d0e35c 100644 --- a/OpenSim/Region/ScriptEngine/LSOEngine/LSO/IL_common_functions.cs +++ b/OpenSim/Region/ScriptEngine/LSOEngine/LSO/IL_common_functions.cs @@ -26,10 +26,6 @@ */ /* Original code: Tedd Hansen */ -using System; -using System.Reflection; -using System.Reflection.Emit; - namespace OpenSim.Region.ScriptEngine.LSOEngine.LSO { internal partial class LSO_Parser diff --git a/OpenSim/Region/ScriptEngine/LSOEngine/LSO/LSL_BaseClass_OPCODES.cs b/OpenSim/Region/ScriptEngine/LSOEngine/LSO/LSL_BaseClass_OPCODES.cs index ad216aa..1b73311 100644 --- a/OpenSim/Region/ScriptEngine/LSOEngine/LSO/LSL_BaseClass_OPCODES.cs +++ b/OpenSim/Region/ScriptEngine/LSOEngine/LSO/LSL_BaseClass_OPCODES.cs @@ -25,9 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; - namespace OpenSim.Region.ScriptEngine.LSOEngine.LSO { //public partial class LSL_BaseClass diff --git a/OpenSim/Region/ScriptEngine/LSOEngine/LSO/LSO_Parser.cs b/OpenSim/Region/ScriptEngine/LSOEngine/LSO/LSO_Parser.cs index a110c28..e4a57e8 100644 --- a/OpenSim/Region/ScriptEngine/LSOEngine/LSO/LSO_Parser.cs +++ b/OpenSim/Region/ScriptEngine/LSOEngine/LSO/LSO_Parser.cs @@ -33,7 +33,6 @@ using System.IO; using System.Reflection; using System.Reflection.Emit; using System.Text; -using OpenSim.Region.ScriptEngine.LSOEngine.LSO; namespace OpenSim.Region.ScriptEngine.LSOEngine.LSO { diff --git a/OpenSim/Region/ScriptEngine/LSOEngine/LSOScript.cs b/OpenSim/Region/ScriptEngine/LSOEngine/LSOScript.cs index 3b5ca0f..f035c03 100644 --- a/OpenSim/Region/ScriptEngine/LSOEngine/LSOScript.cs +++ b/OpenSim/Region/ScriptEngine/LSOEngine/LSOScript.cs @@ -25,10 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; using OpenSim.Region.ScriptEngine.LSOEngine.LSO; namespace OpenSim.Region.ScriptEngine.LSOEngine diff --git a/OpenSim/Region/ScriptEngine/LSOEngine/ScriptEngine.cs b/OpenSim/Region/ScriptEngine/LSOEngine/ScriptEngine.cs index 8495037..3c0e9cd 100644 --- a/OpenSim/Region/ScriptEngine/LSOEngine/ScriptEngine.cs +++ b/OpenSim/Region/ScriptEngine/LSOEngine/ScriptEngine.cs @@ -27,18 +27,12 @@ using System; using Nini.Config; -using OpenSim.Framework.Console; -using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; -using OpenSim.Region.ScriptEngine.Common; -using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase; -using EventManager = OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.EventManager; -using ScriptManager=OpenSim.Region.ScriptEngine.LSOEngine.ScriptManager; namespace OpenSim.Region.ScriptEngine.LSOEngine { [Serializable] - public class ScriptEngine : OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.ScriptEngine + public class ScriptEngine : Common.ScriptEngineBase.ScriptEngine { // We need to override a few things for our DotNetEngine public override void Initialise(Scene scene, IConfigSource config) @@ -46,7 +40,7 @@ namespace OpenSim.Region.ScriptEngine.LSOEngine InitializeEngine(scene, config, true, GetScriptManager()); } - public override OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.ScriptManager _GetScriptManager() + public override Common.ScriptEngineBase.ScriptManager _GetScriptManager() { return new ScriptManager(this); } diff --git a/OpenSim/Region/ScriptEngine/LSOEngine/ScriptManager.cs b/OpenSim/Region/ScriptEngine/LSOEngine/ScriptManager.cs index a933b08..0434f55 100644 --- a/OpenSim/Region/ScriptEngine/LSOEngine/ScriptManager.cs +++ b/OpenSim/Region/ScriptEngine/LSOEngine/ScriptManager.cs @@ -26,11 +26,6 @@ */ using System; -using System.Collections.Generic; -using System.IO; -using System.Reflection; -using System.Runtime.Serialization.Formatters.Binary; -using System.Threading; using libsecondlife; using OpenSim.Framework; using OpenSim.Region.Environment.Scenes; @@ -39,7 +34,7 @@ using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase; namespace OpenSim.Region.ScriptEngine.LSOEngine { - public class ScriptManager : OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.ScriptManager + public class ScriptManager : Common.ScriptEngineBase.ScriptManager { public ScriptManager(Common.ScriptEngineBase.ScriptEngine scriptEngine) : base(scriptEngine) diff --git a/OpenSim/Region/ScriptEngine/RemoteServer/RemoteServer.cs b/OpenSim/Region/ScriptEngine/RemoteServer/RemoteServer.cs index 2a2f24f..603808e 100644 --- a/OpenSim/Region/ScriptEngine/RemoteServer/RemoteServer.cs +++ b/OpenSim/Region/ScriptEngine/RemoteServer/RemoteServer.cs @@ -26,8 +26,7 @@ */ using System; -using System.Collections.Generic; -using System.Text; +using System.Net.Sockets; using System.Runtime.Remoting; using System.Runtime.Remoting.Channels; using System.Runtime.Remoting.Channels.Tcp; @@ -61,20 +60,20 @@ namespace OpenSim.Region.ScriptEngine.RemoteServer // Use the object if (obj.Equals(null)) { - System.Console.WriteLine("Error: unable to locate server"); + Console.WriteLine("Error: unable to locate server"); } else { return obj; } } - catch (System.Net.Sockets.SocketException) + catch (SocketException) { - System.Console.WriteLine("Error: unable to connect to server"); + Console.WriteLine("Error: unable to connect to server"); } - catch (System.Runtime.Remoting.RemotingException) + catch (RemotingException) { - System.Console.WriteLine("Error: unable to connect to server"); + Console.WriteLine("Error: unable to connect to server"); } return null; } diff --git a/OpenSim/Region/ScriptEngine/RemoteServer/ScriptEngine.cs b/OpenSim/Region/ScriptEngine/RemoteServer/ScriptEngine.cs index 0995afb..c33cfd1 100644 --- a/OpenSim/Region/ScriptEngine/RemoteServer/ScriptEngine.cs +++ b/OpenSim/Region/ScriptEngine/RemoteServer/ScriptEngine.cs @@ -28,8 +28,9 @@ /* Original code: Tedd Hansen */ using System; +using System.Reflection; +using log4net; using Nini.Config; -using OpenSim.Framework.Console; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; @@ -42,7 +43,7 @@ namespace OpenSim.Region.ScriptEngine.RemoteServer [Serializable] public class ScriptEngine : IRegionModule { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); internal Scene World; internal EventManager m_EventManager; // Handles and queues incoming events from OpenSim @@ -53,7 +54,7 @@ namespace OpenSim.Region.ScriptEngine.RemoteServer Common.mySE = this; } - public log4net.ILog Log + public ILog Log { get { return m_log; } } diff --git a/OpenSim/Region/Storage/OpenSim.DataStore.MSSQL/MSSQLDataStore.cs b/OpenSim/Region/Storage/OpenSim.DataStore.MSSQL/MSSQLDataStore.cs index 3eaf5aa..72c10f3 100644 --- a/OpenSim/Region/Storage/OpenSim.DataStore.MSSQL/MSSQLDataStore.cs +++ b/OpenSim/Region/Storage/OpenSim.DataStore.MSSQL/MSSQLDataStore.cs @@ -30,10 +30,11 @@ using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.IO; +using System.Reflection; using libsecondlife; -using OpenSim.Framework; -using OpenSim.Framework.Console; +using log4net; using OpenSim.Data; +using OpenSim.Framework; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; @@ -41,7 +42,7 @@ namespace OpenSim.DataStore.MSSQL { public class MSSQLDataStore : IRegionDataStore { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private const string primSelect = "select * from prims"; private const string shapeSelect = "select * from primshapes"; diff --git a/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Editing/Flatten.cs b/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Editing/Flatten.cs index ba076c2..7162758 100644 --- a/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Editing/Flatten.cs +++ b/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Editing/Flatten.cs @@ -25,8 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -using System; - namespace libTerrain { partial class Channel diff --git a/OpenSim/TestSuite/BotManager.cs b/OpenSim/TestSuite/BotManager.cs index c867cae..ec71973 100644 --- a/OpenSim/TestSuite/BotManager.cs +++ b/OpenSim/TestSuite/BotManager.cs @@ -27,12 +27,11 @@ using System; using System.Collections.Generic; -using System.Text; -using System.IO; +using System.Reflection; +using System.Threading; using libsecondlife; -using libsecondlife.Packets; +using log4net; using Nini.Config; -using System.Threading; using OpenSim.Framework; using OpenSim.Framework.Console; @@ -43,13 +42,13 @@ namespace OpenSim.TestSuite /// public class BotManager : conscmd_callback { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); protected ConsoleBase m_console; protected List m_lBot; protected Thread[] m_td; protected bool m_verbose = true; - protected Random somthing = new Random(System.Environment.TickCount); + protected Random somthing = new Random(Environment.TickCount); protected int numbots = 0; protected IConfig Previous_config; @@ -118,7 +117,7 @@ namespace OpenSim.TestSuite m_td[pos].IsBackground = true; m_td[pos].Start(); m_lBot.Add(pb); - OpenSim.Framework.ThreadTracker.Add(m_td[pos]); + ThreadTracker.Add(m_td[pos]); } /// diff --git a/OpenSim/TestSuite/Main.cs b/OpenSim/TestSuite/Main.cs index ff4965c..213f02c 100644 --- a/OpenSim/TestSuite/Main.cs +++ b/OpenSim/TestSuite/Main.cs @@ -26,15 +26,7 @@ */ using System; -using System.Collections.Generic; -using System.Text; -using libsecondlife; -using libsecondlife.Packets; using Nini.Config; -using log4net; -using log4net.Config; -using System.Threading; -using OpenSim.Framework.Console; namespace OpenSim.TestSuite { @@ -89,7 +81,7 @@ namespace OpenSim.TestSuite private static void Help() { - System.Console.WriteLine( + Console.WriteLine( "usage: pCampBot <-loginuri loginuri> [OPTIONS]\n" + "Spawns a set of bots to test an OpenSim region\n\n" + " -l, -loginuri loginuri for sim to log into (required)\n" + diff --git a/OpenSim/TestSuite/PhysicsBot.cs b/OpenSim/TestSuite/PhysicsBot.cs index 792465f..3d6b54c 100644 --- a/OpenSim/TestSuite/PhysicsBot.cs +++ b/OpenSim/TestSuite/PhysicsBot.cs @@ -26,17 +26,14 @@ */ using System; -using System.Collections.Generic; using System.IO; -using System.Text; +using System.Threading; +using System.Timers; using libsecondlife; -using libsecondlife.Packets; using Nini.Config; -using System.Threading; using OpenSim.Framework; using OpenSim.Framework.Console; -using Timer = System.Timers.Timer; -using log4net; +using Timer=System.Timers.Timer; namespace OpenSim.TestSuite { @@ -55,7 +52,7 @@ namespace OpenSim.TestSuite protected Timer m_action; // Action Timer - protected Random somthing = new Random(System.Environment.TickCount);// We do stuff randomly here + protected Random somthing = new Random(Environment.TickCount);// We do stuff randomly here //New instance of a SecondLife client @@ -76,7 +73,7 @@ namespace OpenSim.TestSuite //We do our actions here. This is where one would //add additional steps and/or things the bot should do - void m_action_Elapsed(object sender, System.Timers.ElapsedEventArgs e) + void m_action_Elapsed(object sender, ElapsedEventArgs e) { //client.Throttle.Task = 500000f; //client.Throttle.Set(); @@ -147,7 +144,7 @@ namespace OpenSim.TestSuite if (OnConnected != null) { m_action = new Timer(somthing.Next(1000, 10000)); - m_action.Elapsed += new System.Timers.ElapsedEventHandler(m_action_Elapsed); + m_action.Elapsed += new ElapsedEventHandler(m_action_Elapsed); m_action.Start(); OnConnected(this, EventType.CONNECTED); client.Self.Jump(); diff --git a/OpenSim/TestSuite/Util.cs b/OpenSim/TestSuite/Util.cs index a2b6d1c..c82391b 100644 --- a/OpenSim/TestSuite/Util.cs +++ b/OpenSim/TestSuite/Util.cs @@ -59,7 +59,7 @@ namespace OpenSim.TestSuite private static void TestResult(Result r, String msg) { - System.Console.WriteLine("[{0}]: {1}", ResultToString(r), msg); + Console.WriteLine("[{0}]: {1}", ResultToString(r), msg); } public static void TestFail(String msg) diff --git a/OpenSim/Tests/Common/DoubleToleranceConstraint.cs b/OpenSim/Tests/Common/DoubleToleranceConstraint.cs index 834d1a3..3363c54 100644 --- a/OpenSim/Tests/Common/DoubleToleranceConstraint.cs +++ b/OpenSim/Tests/Common/DoubleToleranceConstraint.cs @@ -27,8 +27,6 @@ using System; using NUnit.Framework; -using NUnit.Framework.Constraints; -using OpenSim.Tests.Common; namespace OpenSim.Tests.Common { diff --git a/OpenSim/Tests/Common/TestHelper.cs b/OpenSim/Tests/Common/TestHelper.cs index 83f62e3..6853e55 100644 --- a/OpenSim/Tests/Common/TestHelper.cs +++ b/OpenSim/Tests/Common/TestHelper.cs @@ -26,8 +26,6 @@ */ using System; -using System.Collections.Generic; -using System.Text; namespace OpenSim.Tests.Common { diff --git a/OpenSim/Tests/OpenSim/Framework/UtilTest.cs b/OpenSim/Tests/OpenSim/Framework/UtilTest.cs index 39aaa6b..121ee93 100644 --- a/OpenSim/Tests/OpenSim/Framework/UtilTest.cs +++ b/OpenSim/Tests/OpenSim/Framework/UtilTest.cs @@ -28,7 +28,6 @@ using libsecondlife; using NUnit.Framework; using NUnit.Framework.SyntaxHelpers; - using OpenSim.Tests.Common; namespace OpenSim.Framework.Tests diff --git a/OpenSim/Tests/UserServer/Stress/UserServerStressTest.cs b/OpenSim/Tests/UserServer/Stress/UserServerStressTest.cs index e3f8227..711e8b4 100644 --- a/OpenSim/Tests/UserServer/Stress/UserServerStressTest.cs +++ b/OpenSim/Tests/UserServer/Stress/UserServerStressTest.cs @@ -26,6 +26,7 @@ */ using System; +using log4net.Config; namespace OpenSim.Tests.UserServer.Stress { @@ -36,9 +37,9 @@ namespace OpenSim.Tests.UserServer.Stress { public static void Main(string[] args) { - log4net.Config.XmlConfigurator.Configure(); + XmlConfigurator.Configure(); - System.Console.WriteLine("Aborting - not yet functional"); + Console.WriteLine("Aborting - not yet functional"); } } } diff --git a/OpenSim/Tools/Export/OpenSimExport.cs b/OpenSim/Tools/Export/OpenSimExport.cs index 525f33c..0521df2 100644 --- a/OpenSim/Tools/Export/OpenSimExport.cs +++ b/OpenSim/Tools/Export/OpenSimExport.cs @@ -27,6 +27,7 @@ using System; using System.IO; +using log4net.Config; using Nini.Config; using OpenSim.Framework; using OpenSim.Framework.Console; @@ -58,7 +59,7 @@ namespace OpenSim.Tools.Export public static void Main(string[] args) { - log4net.Config.XmlConfigurator.Configure(); + XmlConfigurator.Configure(); OpenSimExport export = new OpenSimExport(InitConfig(args)); RegionInfo reg = new RegionInfo("Sara Jane", "Regions/1000-1000.xml",false); diff --git a/OpenSim/Tools/pCampBot/BotManager.cs b/OpenSim/Tools/pCampBot/BotManager.cs index a18fa1b..df06f47 100644 --- a/OpenSim/Tools/pCampBot/BotManager.cs +++ b/OpenSim/Tools/pCampBot/BotManager.cs @@ -27,12 +27,11 @@ using System; using System.Collections.Generic; -using System.Text; -using System.IO; +using System.Reflection; +using System.Threading; using libsecondlife; -using libsecondlife.Packets; +using log4net; using Nini.Config; -using System.Threading; using OpenSim.Framework; using OpenSim.Framework.Console; @@ -43,13 +42,13 @@ namespace pCampBot /// public class BotManager : conscmd_callback { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); protected ConsoleBase m_console; protected List m_lBot; protected Thread[] m_td; protected bool m_verbose = true; - protected Random somthing = new Random(System.Environment.TickCount); + protected Random somthing = new Random(Environment.TickCount); protected int numbots = 0; protected IConfig Previous_config; @@ -117,7 +116,7 @@ namespace pCampBot m_td[pos].IsBackground = true; m_td[pos].Start(); m_lBot.Add(pb); - OpenSim.Framework.ThreadTracker.Add(m_td[pos]); + ThreadTracker.Add(m_td[pos]); } /// diff --git a/OpenSim/Tools/pCampBot/PhysicsBot.cs b/OpenSim/Tools/pCampBot/PhysicsBot.cs index 8495b09..334f699 100644 --- a/OpenSim/Tools/pCampBot/PhysicsBot.cs +++ b/OpenSim/Tools/pCampBot/PhysicsBot.cs @@ -26,16 +26,14 @@ */ using System; -using System.Collections.Generic; using System.IO; -using System.Text; +using System.Threading; +using System.Timers; using libsecondlife; -using libsecondlife.Packets; using Nini.Config; -using System.Threading; using OpenSim.Framework; using OpenSim.Framework.Console; -using Timer = System.Timers.Timer; +using Timer=System.Timers.Timer; namespace pCampBot { @@ -54,7 +52,7 @@ namespace pCampBot protected Timer m_action; // Action Timer - protected Random somthing = new Random(System.Environment.TickCount);// We do stuff randomly here + protected Random somthing = new Random(Environment.TickCount);// We do stuff randomly here //New instance of a SecondLife client public SecondLife client = new SecondLife(); @@ -74,7 +72,7 @@ namespace pCampBot //We do our actions here. This is where one would //add additional steps and/or things the bot should do - void m_action_Elapsed(object sender, System.Timers.ElapsedEventArgs e) + void m_action_Elapsed(object sender, ElapsedEventArgs e) { //client.Throttle.Task = 500000f; //client.Throttle.Set(); @@ -145,7 +143,7 @@ namespace pCampBot if (OnConnected != null) { m_action = new Timer(somthing.Next(1000, 10000)); - m_action.Elapsed += new System.Timers.ElapsedEventHandler(m_action_Elapsed); + m_action.Elapsed += new ElapsedEventHandler(m_action_Elapsed); m_action.Start(); OnConnected(this, EventType.CONNECTED); client.Self.Jump(); diff --git a/OpenSim/Tools/pCampBot/pCampBot.cs b/OpenSim/Tools/pCampBot/pCampBot.cs index 6daccc4..d944608 100644 --- a/OpenSim/Tools/pCampBot/pCampBot.cs +++ b/OpenSim/Tools/pCampBot/pCampBot.cs @@ -26,12 +26,7 @@ */ using System; -using System.Collections.Generic; -using System.Text; -using libsecondlife; -using libsecondlife.Packets; using Nini.Config; -using System.Threading; using OpenSim.Framework.Console; namespace pCampBot @@ -86,7 +81,7 @@ namespace pCampBot private static void Help() { - System.Console.WriteLine( + Console.WriteLine( "usage: pCampBot <-loginuri loginuri> [OPTIONS]\n" + "Spawns a set of bots to test an OpenSim region\n\n" + " -l, -loginuri loginuri for sim to log into (required)\n" + -- cgit v1.1