* Optimised using statements and namespace references across entire project (this took a while to run).

0.6.0-stable
Adam Frisby 2008-04-21 07:09:17 +00:00
parent 05e24c8f58
commit fef3b36894
306 changed files with 1011 additions and 1306 deletions

View File

@ -25,9 +25,11 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System.Reflection;
using System.Threading;
using log4net;
using Mono.Addins; using Mono.Addins;
using OpenSim.Framework; using OpenSim.Framework;
using OpenSim.Framework.Console;
using OpenSim.Framework.RegionLoader.Filesystem; using OpenSim.Framework.RegionLoader.Filesystem;
using OpenSim.Framework.RegionLoader.Web; using OpenSim.Framework.RegionLoader.Web;
@ -39,7 +41,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
[Extension("/OpenSim/Startup")] [Extension("/OpenSim/Startup")]
public class LoadRegionsPlugin : IApplicationPlugin 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) public void Initialise(OpenSimMain openSim)
{ {
@ -64,7 +66,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
for (int i = 0; i < regionsToLoad.Length; i++) 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); openSim.CreateRegion(regionsToLoad[i], true);
} }
@ -94,7 +96,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
{ {
if (regionhandle == regionsToLoad[i].RegionHandle) 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); openSim.CreateRegion(regionsToLoad[i], true);
} }
} }

View File

@ -27,14 +27,15 @@
using System; using System;
using System.Collections; using System.Collections;
using System.Net;
using System.IO; using System.IO;
using System.Net;
using System.Reflection;
using System.Timers; using System.Timers;
using libsecondlife; using libsecondlife;
using log4net;
using Mono.Addins; using Mono.Addins;
using Nwc.XmlRpc; using Nwc.XmlRpc;
using OpenSim.Framework; using OpenSim.Framework;
using OpenSim.Framework.Console;
using OpenSim.Framework.Servers; using OpenSim.Framework.Servers;
using OpenSim.Region.Environment.Scenes; using OpenSim.Region.Environment.Scenes;
@ -46,7 +47,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
[Extension("/OpenSim/Startup")] [Extension("/OpenSim/Startup")]
public class RemoteAdminPlugin : IApplicationPlugin 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 OpenSimMain m_app;
private BaseHttpServer m_httpd; private BaseHttpServer m_httpd;

View File

@ -25,9 +25,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System;
using System.Collections.Generic;
using System.Text;
using libsecondlife; using libsecondlife;
using OpenSim.Framework; using OpenSim.Framework;

View File

@ -25,8 +25,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using OpenSim.Data.Base;
namespace OpenSim.Data.Base namespace OpenSim.Data.Base
{ {
public abstract class BaseRowMapper public abstract class BaseRowMapper

View File

@ -26,7 +26,6 @@
*/ */
using System.Collections.Generic; using System.Collections.Generic;
using OpenSim.Data.Base;
namespace OpenSim.Data.Base namespace OpenSim.Data.Base
{ {

View File

@ -28,7 +28,6 @@
using System; using System;
using System.Data; using System.Data;
using System.Data.Common; using System.Data.Common;
using OpenSim.Data.Base;
namespace OpenSim.Data.Base namespace OpenSim.Data.Base
{ {

View File

@ -174,10 +174,10 @@ namespace OpenSim.Data.DB4o
public List<Framework.AvatarPickerAvatar> GeneratePickerResults(LLUUID queryID, string query) public List<AvatarPickerAvatar> GeneratePickerResults(LLUUID queryID, string query)
{ {
//Do nothing yet //Do nothing yet
List<Framework.AvatarPickerAvatar> returnlist = new List<Framework.AvatarPickerAvatar>(); List<AvatarPickerAvatar> returnlist = new List<AvatarPickerAvatar>();
return returnlist; return returnlist;
} }

View File

@ -25,10 +25,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System;
using System.Collections.Generic;
using System.Text;
namespace OpenSim.Data namespace OpenSim.Data
{ {
public abstract class DataStoreBase public abstract class DataStoreBase

View File

@ -25,9 +25,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System;
using System.Collections.Generic;
using System.Text;
using libsecondlife; using libsecondlife;
namespace OpenSim.Data namespace OpenSim.Data

View File

@ -25,7 +25,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System.Collections.Generic;
using libsecondlife; using libsecondlife;
namespace OpenSim.Data namespace OpenSim.Data

View File

@ -25,10 +25,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System;
using System.Collections.Generic;
using System.Text;
namespace OpenSim.Data namespace OpenSim.Data
{ {
public abstract class InventoryDataBase public abstract class InventoryDataBase

View File

@ -29,15 +29,16 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data; using System.Data;
using System.Data.SqlClient; using System.Data.SqlClient;
using System.Reflection;
using libsecondlife; using libsecondlife;
using log4net;
using OpenSim.Framework; using OpenSim.Framework;
using OpenSim.Framework.Console;
namespace OpenSim.Data.MSSQL namespace OpenSim.Data.MSSQL
{ {
internal class MSSQLAssetData : AssetDataBase 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; private MSSQLManager database;

View File

@ -30,20 +30,19 @@ using System.Collections.Generic;
using System.Data; using System.Data;
using System.Data.SqlClient; using System.Data.SqlClient;
using System.IO; using System.IO;
using System.Reflection;
using libsecondlife; using libsecondlife;
using log4net;
using OpenSim.Framework; using OpenSim.Framework;
using OpenSim.Framework.Console;
using OpenSim.Data;
using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Interfaces;
using OpenSim.Region.Environment.Scenes; using OpenSim.Region.Environment.Scenes;
using OpenSim.Data.MSSQL;
namespace OpenSim.Data.MSSQL namespace OpenSim.Data.MSSQL
{ {
public class MSSQLDataStore : IRegionDataStore public class MSSQLDataStore : IRegionDataStore
{ {
// private static FileSystemDataStore Instance = new FileSystemDataStore(); // 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_primSelect = "select * from prims";
private const string m_shapeSelect = "select * from primshapes"; private const string m_shapeSelect = "select * from primshapes";

View File

@ -28,10 +28,11 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data; using System.Data;
using System.Reflection;
using System.Security.Cryptography; using System.Security.Cryptography;
using System.Text; using System.Text;
using libsecondlife; using libsecondlife;
using OpenSim.Framework.Console; using log4net;
namespace OpenSim.Data.MSSQL namespace OpenSim.Data.MSSQL
{ {
@ -40,7 +41,7 @@ namespace OpenSim.Data.MSSQL
/// </summary> /// </summary>
public class MSSQLGridData : GridDataBase 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);
/// <summary> /// <summary>
/// Database manager /// Database manager

View File

@ -29,9 +29,10 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data; using System.Data;
using System.Data.SqlClient; using System.Data.SqlClient;
using System.Reflection;
using libsecondlife; using libsecondlife;
using log4net;
using OpenSim.Framework; using OpenSim.Framework;
using OpenSim.Framework.Console;
namespace OpenSim.Data.MSSQL namespace OpenSim.Data.MSSQL
{ {
@ -40,7 +41,7 @@ namespace OpenSim.Data.MSSQL
/// </summary> /// </summary>
public class MSSQLInventoryData : IInventoryData 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);
/// <summary> /// <summary>
/// The database manager /// The database manager

View File

@ -32,8 +32,8 @@ using System.Data.SqlClient;
using System.IO; using System.IO;
using System.Reflection; using System.Reflection;
using libsecondlife; using libsecondlife;
using log4net;
using OpenSim.Framework; using OpenSim.Framework;
using OpenSim.Framework.Console;
namespace OpenSim.Data.MSSQL namespace OpenSim.Data.MSSQL
{ {
@ -42,7 +42,7 @@ namespace OpenSim.Data.MSSQL
/// </summary> /// </summary>
public class MSSQLManager 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);
/// <summary> /// <summary>
/// The database connection object /// The database connection object

View File

@ -29,9 +29,10 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data; using System.Data;
using System.Data.SqlClient; using System.Data.SqlClient;
using System.Reflection;
using libsecondlife; using libsecondlife;
using log4net;
using OpenSim.Framework; using OpenSim.Framework;
using OpenSim.Framework.Console;
namespace OpenSim.Data.MSSQL namespace OpenSim.Data.MSSQL
{ {
@ -40,7 +41,7 @@ namespace OpenSim.Data.MSSQL
/// </summary> /// </summary>
public class MSSQLUserData : UserDataBase 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);
/// <summary> /// <summary>
/// Database manager for MySQL /// Database manager for MySQL
@ -326,9 +327,9 @@ namespace OpenSim.Data.MSSQL
override public List<Framework.AvatarPickerAvatar> GeneratePickerResults(LLUUID queryID, string query) override public List<AvatarPickerAvatar> GeneratePickerResults(LLUUID queryID, string query)
{ {
List<Framework.AvatarPickerAvatar> returnlist = new List<Framework.AvatarPickerAvatar>(); List<AvatarPickerAvatar> returnlist = new List<AvatarPickerAvatar>();
string[] querysplit; string[] querysplit;
querysplit = query.Split(' '); querysplit = query.Split(' ');
if (querysplit.Length == 2) if (querysplit.Length == 2)
@ -350,7 +351,7 @@ namespace OpenSim.Data.MSSQL
while (reader.Read()) while (reader.Read())
{ {
Framework.AvatarPickerAvatar user = new Framework.AvatarPickerAvatar(); AvatarPickerAvatar user = new AvatarPickerAvatar();
user.AvatarID = new LLUUID((string)reader["UUID"]); user.AvatarID = new LLUUID((string)reader["UUID"]);
user.firstName = (string)reader["username"]; user.firstName = (string)reader["username"];
user.lastName = (string)reader["lastname"]; user.lastName = (string)reader["lastname"];
@ -385,7 +386,7 @@ namespace OpenSim.Data.MSSQL
while (reader.Read()) while (reader.Read())
{ {
Framework.AvatarPickerAvatar user = new Framework.AvatarPickerAvatar(); AvatarPickerAvatar user = new AvatarPickerAvatar();
user.AvatarID = new LLUUID((string)reader["UUID"]); user.AvatarID = new LLUUID((string)reader["UUID"]);
user.firstName = (string)reader["username"]; user.firstName = (string)reader["username"];
user.lastName = (string)reader["lastname"]; user.lastName = (string)reader["lastname"];

View File

@ -28,7 +28,6 @@
using System; using System;
using System.Data.Common; using System.Data.Common;
using System.Data.SqlClient; using System.Data.SqlClient;
using OpenSim.Data;
namespace OpenSim.Data.MSSQLMapper namespace OpenSim.Data.MSSQLMapper
{ {

View File

@ -28,16 +28,17 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data; using System.Data;
using System.Reflection;
using libsecondlife; using libsecondlife;
using log4net;
using MySql.Data.MySqlClient; using MySql.Data.MySqlClient;
using OpenSim.Framework; using OpenSim.Framework;
using OpenSim.Framework.Console;
namespace OpenSim.Data.MySQL namespace OpenSim.Data.MySQL
{ {
internal class MySQLAssetData : AssetDataBase, IPlugin 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; private MySQLManager _dbConnection;

View File

@ -28,12 +28,13 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data; using System.Data;
using System.Diagnostics;
using System.IO; using System.IO;
using System.Reflection;
using System.Threading;
using libsecondlife; using libsecondlife;
using log4net;
using MySql.Data.MySqlClient; using MySql.Data.MySqlClient;
using OpenSim.Framework; using OpenSim.Framework;
using OpenSim.Framework.Console;
using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Interfaces;
using OpenSim.Region.Environment.Scenes; using OpenSim.Region.Environment.Scenes;
@ -41,7 +42,7 @@ namespace OpenSim.Data.MySQL
{ {
public class MySQLDataStore : IRegionDataStore 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_primSelect = "select * from prims";
private const string m_shapeSelect = "select * from primshapes"; 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]: Error connecting to MySQL server: " + ex.Message);
m_log.Error("[MySql]: Application is terminating!"); m_log.Error("[MySql]: Application is terminating!");
System.Threading.Thread.CurrentThread.Abort(); Thread.CurrentThread.Abort();
} }
} }

View File

@ -28,11 +28,11 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data; using System.Data;
using System.Reflection;
using System.Security.Cryptography; using System.Security.Cryptography;
using System.Text; using System.Text;
using System.Text.RegularExpressions;
using libsecondlife; using libsecondlife;
using OpenSim.Framework.Console; using log4net;
namespace OpenSim.Data.MySQL namespace OpenSim.Data.MySQL
{ {
@ -41,7 +41,7 @@ namespace OpenSim.Data.MySQL
/// </summary> /// </summary>
public class MySQLGridData : GridDataBase 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);
/// <summary> /// <summary>
/// MySQL Database Manager /// MySQL Database Manager

View File

@ -27,10 +27,11 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Reflection;
using libsecondlife; using libsecondlife;
using log4net;
using MySql.Data.MySqlClient; using MySql.Data.MySqlClient;
using OpenSim.Framework; using OpenSim.Framework;
using OpenSim.Framework.Console;
namespace OpenSim.Data.MySQL namespace OpenSim.Data.MySQL
{ {
@ -39,8 +40,8 @@ namespace OpenSim.Data.MySQL
/// </summary> /// </summary>
public class MySQLInventoryData : IInventoryData public class MySQLInventoryData : IInventoryData
{ {
private static readonly log4net.ILog m_log private static readonly ILog m_log
= log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
/// <summary> /// <summary>
/// The database manager /// The database manager

View File

@ -28,13 +28,12 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data; using System.Data;
using System.Data.SqlClient;
using System.IO; using System.IO;
using System.Reflection; using System.Reflection;
using libsecondlife; using libsecondlife;
using log4net;
using MySql.Data.MySqlClient; using MySql.Data.MySqlClient;
using OpenSim.Framework; using OpenSim.Framework;
using OpenSim.Framework.Console;
namespace OpenSim.Data.MySQL namespace OpenSim.Data.MySQL
{ {
@ -43,7 +42,7 @@ namespace OpenSim.Data.MySQL
/// </summary> /// </summary>
internal class MySQLManager 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);
/// <summary> /// <summary>
/// The database connection object /// The database connection object

View File

@ -28,10 +28,11 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data; using System.Data;
using System.Reflection;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using libsecondlife; using libsecondlife;
using log4net;
using OpenSim.Framework; using OpenSim.Framework;
using OpenSim.Framework.Console;
namespace OpenSim.Data.MySQL namespace OpenSim.Data.MySQL
{ {
@ -40,7 +41,7 @@ namespace OpenSim.Data.MySQL
/// </summary> /// </summary>
internal class MySQLUserData : UserDataBase 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);
/// <summary> /// <summary>
/// Database manager for MySQL /// Database manager for MySQL
@ -348,9 +349,9 @@ namespace OpenSim.Data.MySQL
m_log.Info("[USER]: Stub UpdateUserCUrrentRegion called"); m_log.Info("[USER]: Stub UpdateUserCUrrentRegion called");
} }
override public List<Framework.AvatarPickerAvatar> GeneratePickerResults(LLUUID queryID, string query) override public List<AvatarPickerAvatar> GeneratePickerResults(LLUUID queryID, string query)
{ {
List<Framework.AvatarPickerAvatar> returnlist = new List<Framework.AvatarPickerAvatar>(); List<AvatarPickerAvatar> returnlist = new List<AvatarPickerAvatar>();
Regex objAlphaNumericPattern = new Regex("[^a-zA-Z0-9]"); Regex objAlphaNumericPattern = new Regex("[^a-zA-Z0-9]");
@ -373,7 +374,7 @@ namespace OpenSim.Data.MySQL
while (reader.Read()) while (reader.Read())
{ {
Framework.AvatarPickerAvatar user = new Framework.AvatarPickerAvatar(); AvatarPickerAvatar user = new AvatarPickerAvatar();
user.AvatarID = new LLUUID((string) reader["UUID"]); user.AvatarID = new LLUUID((string) reader["UUID"]);
user.firstName = (string) reader["username"]; user.firstName = (string) reader["username"];
user.lastName = (string) reader["lastname"]; user.lastName = (string) reader["lastname"];
@ -407,7 +408,7 @@ namespace OpenSim.Data.MySQL
while (reader.Read()) while (reader.Read())
{ {
Framework.AvatarPickerAvatar user = new Framework.AvatarPickerAvatar(); AvatarPickerAvatar user = new AvatarPickerAvatar();
user.AvatarID = new LLUUID((string) reader["UUID"]); user.AvatarID = new LLUUID((string) reader["UUID"]);
user.firstName = (string) reader["username"]; user.firstName = (string) reader["username"];
user.lastName = (string) reader["lastname"]; user.lastName = (string) reader["lastname"];

View File

@ -25,11 +25,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System;
using System.Collections.Generic;
using System.Data; using System.Data;
using System.Text;
using OpenSim.Data.Base;
namespace OpenSim.Data.MySQLMapper namespace OpenSim.Data.MySQLMapper
{ {

View File

@ -28,7 +28,6 @@
using System.Data; using System.Data;
using System.Data.Common; using System.Data.Common;
using MySql.Data.MySqlClient; using MySql.Data.MySqlClient;
using OpenSim.Data;
using OpenSim.Data.Base; using OpenSim.Data.Base;
namespace OpenSim.Data.MySQLMapper namespace OpenSim.Data.MySQLMapper

View File

@ -26,16 +26,14 @@
*/ */
using System; using System;
using System.Data; using System.IO;
using System.Reflection; using System.Reflection;
using libsecondlife; using libsecondlife;
using log4net;
using NHibernate; using NHibernate;
using NHibernate.Cfg; using NHibernate.Cfg;
using NHibernate.Tool.hbm2ddl;
using NHibernate.Mapping.Attributes; using NHibernate.Mapping.Attributes;
using OpenSim.Data;
using OpenSim.Framework; using OpenSim.Framework;
using OpenSim.Framework.Console;
using Environment=NHibernate.Cfg.Environment; using Environment=NHibernate.Cfg.Environment;
namespace OpenSim.Data.NHibernate namespace OpenSim.Data.NHibernate
@ -45,7 +43,7 @@ namespace OpenSim.Data.NHibernate
/// </summary> /// </summary>
public class NHibernateAssetData : AssetDataBase, IDisposable 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 Configuration cfg;
private ISessionFactory factory; private ISessionFactory factory;
@ -67,8 +65,8 @@ namespace OpenSim.Data.NHibernate
cfg.AddAssembly("OpenSim.Data.NHibernate"); cfg.AddAssembly("OpenSim.Data.NHibernate");
HbmSerializer.Default.Validate = true; HbmSerializer.Default.Validate = true;
using ( System.IO.MemoryStream stream = using ( MemoryStream stream =
HbmSerializer.Default.Serialize(System.Reflection.Assembly.GetExecutingAssembly())) HbmSerializer.Default.Serialize(Assembly.GetExecutingAssembly()))
cfg.AddInputStream(stream); cfg.AddInputStream(stream);
// new SchemaExport(cfg).Create(true, true); // new SchemaExport(cfg).Create(true, true);

View File

@ -26,25 +26,23 @@
*/ */
using System; using System;
using System.Data;
using System.Reflection;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO;
using System.Reflection;
using libsecondlife; using libsecondlife;
using log4net;
using NHibernate; using NHibernate;
using NHibernate.Expression;
using NHibernate.Cfg; using NHibernate.Cfg;
using NHibernate.Tool.hbm2ddl; using NHibernate.Expression;
using NHibernate.Mapping.Attributes; using NHibernate.Mapping.Attributes;
using OpenSim.Data;
using OpenSim.Framework; using OpenSim.Framework;
using OpenSim.Framework.Console;
using Environment=NHibernate.Cfg.Environment; using Environment=NHibernate.Cfg.Environment;
namespace OpenSim.Data.NHibernate namespace OpenSim.Data.NHibernate
{ {
public class NHibernateInventoryData: IInventoryData 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 Configuration cfg;
private ISessionFactory factory; private ISessionFactory factory;
@ -74,8 +72,8 @@ namespace OpenSim.Data.NHibernate
cfg.AddAssembly("OpenSim.Data.NHibernate"); cfg.AddAssembly("OpenSim.Data.NHibernate");
HbmSerializer.Default.Validate = true; HbmSerializer.Default.Validate = true;
using ( System.IO.MemoryStream stream = using ( MemoryStream stream =
HbmSerializer.Default.Serialize(System.Reflection.Assembly.GetExecutingAssembly())) HbmSerializer.Default.Serialize(Assembly.GetExecutingAssembly()))
cfg.AddInputStream(stream); cfg.AddInputStream(stream);
// new SchemaExport(cfg).Create(true, true); // new SchemaExport(cfg).Create(true, true);

View File

@ -25,18 +25,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System; using System.Reflection;
using System.Collections.Generic; using log4net;
using System.Data;
using libsecondlife;
using NHibernate; using NHibernate;
using NHibernate.Cfg;
namespace OpenSim.Data.NHibernate namespace OpenSim.Data.NHibernate
{ {
internal class NHibernateManager 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 ISessionFactory factory;
private ISession session; private ISession session;

View File

@ -25,20 +25,16 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System;
using System.Data;
using System.Reflection;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO;
using System.Reflection;
using libsecondlife; using libsecondlife;
using log4net;
using NHibernate; using NHibernate;
using NHibernate.Cfg; using NHibernate.Cfg;
using NHibernate.Expression; using NHibernate.Expression;
using NHibernate.Tool.hbm2ddl;
using NHibernate.Mapping.Attributes; using NHibernate.Mapping.Attributes;
using OpenSim.Data;
using OpenSim.Framework; using OpenSim.Framework;
using OpenSim.Framework.Console;
using Environment = NHibernate.Cfg.Environment;
namespace OpenSim.Data.NHibernate namespace OpenSim.Data.NHibernate
{ {
@ -47,7 +43,7 @@ namespace OpenSim.Data.NHibernate
/// </summary> /// </summary>
public class NHibernateUserData : UserDataBase 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 Configuration cfg;
private ISessionFactory factory; private ISessionFactory factory;
@ -69,8 +65,8 @@ namespace OpenSim.Data.NHibernate
cfg.AddAssembly("OpenSim.Data.NHibernate"); cfg.AddAssembly("OpenSim.Data.NHibernate");
HbmSerializer.Default.Validate = true; HbmSerializer.Default.Validate = true;
using ( System.IO.MemoryStream stream = using ( MemoryStream stream =
HbmSerializer.Default.Serialize(System.Reflection.Assembly.GetExecutingAssembly())) HbmSerializer.Default.Serialize(Assembly.GetExecutingAssembly()))
cfg.AddInputStream(stream); cfg.AddInputStream(stream);
// new SchemaExport(cfg).Create(true, true); // new SchemaExport(cfg).Create(true, true);

View File

@ -27,10 +27,10 @@
using System; using System;
using System.Data; using System.Data;
using libsecondlife;
using NHibernate; using NHibernate;
using NHibernate.SqlTypes; using NHibernate.SqlTypes;
using NHibernate.UserTypes; using NHibernate.UserTypes;
using libsecondlife;
namespace OpenSim.Data.NHibernate namespace OpenSim.Data.NHibernate
{ {
@ -67,7 +67,7 @@ namespace OpenSim.Data.NHibernate
get { return false; } 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; object uuid = null;
@ -81,7 +81,7 @@ namespace OpenSim.Data.NHibernate
return uuid; 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; LLUUID uuid = (LLUUID)obj;
((IDataParameter)cmd.Parameters[index]).Value = uuid.ToString(); ((IDataParameter)cmd.Parameters[index]).Value = uuid.ToString();

View File

@ -25,7 +25,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System;
using System.Data; using System.Data;
using libsecondlife; using libsecondlife;
using OpenSim.Data.Base; using OpenSim.Data.Base;

View File

@ -26,9 +26,7 @@
*/ */
using System.Data; using System.Data;
using System.Data.Common;
using libsecondlife; using libsecondlife;
using OpenSim.Data.Base; using OpenSim.Data.Base;
namespace OpenSim.Data namespace OpenSim.Data

View File

@ -28,9 +28,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data.Common; using System.Data.Common;
using System.Text;
using libsecondlife; using libsecondlife;
using OpenSim.Data.Base; using OpenSim.Data.Base;
namespace OpenSim.Data namespace OpenSim.Data

View File

@ -25,8 +25,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System.Data;
using OpenSim.Data.Base; using OpenSim.Data.Base;
namespace OpenSim.Data namespace OpenSim.Data

View File

@ -26,9 +26,9 @@
*/ */
using System; using System;
using OpenSim.Framework;
using OpenSim.Data.Base;
using libsecondlife; using libsecondlife;
using OpenSim.Data.Base;
using OpenSim.Framework;
namespace OpenSim.Data namespace OpenSim.Data
{ {

View File

@ -25,6 +25,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System;
using libsecondlife; using libsecondlife;
namespace OpenSim.Data namespace OpenSim.Data
@ -37,11 +38,11 @@ namespace OpenSim.Data
public int reservationMaxX = 65536; public int reservationMaxX = 65536;
public int reservationMaxY = 65536; public int reservationMaxY = 65536;
public string reservationName = System.String.Empty; public string reservationName = String.Empty;
public string reservationCompany = System.String.Empty; public string reservationCompany = String.Empty;
public bool status = true; public bool status = true;
public string gridSendKey = System.String.Empty; public string gridSendKey = String.Empty;
public string gridRecvKey = System.String.Empty; public string gridRecvKey = String.Empty;
} }
} }

View File

@ -29,9 +29,9 @@ using System;
using System.Data; using System.Data;
using System.Reflection; using System.Reflection;
using libsecondlife; using libsecondlife;
using log4net;
using Mono.Data.SqliteClient; using Mono.Data.SqliteClient;
using OpenSim.Framework; using OpenSim.Framework;
using OpenSim.Framework.Console;
namespace OpenSim.Data.SQLite namespace OpenSim.Data.SQLite
{ {
@ -40,7 +40,7 @@ namespace OpenSim.Data.SQLite
/// </summary> /// </summary>
public class SQLiteAssetData : AssetDataBase 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);
/// <summary> /// <summary>
/// The database manager /// The database manager

View File

@ -30,15 +30,15 @@ using System.Collections.Generic;
using System.Data; using System.Data;
using System.Reflection; using System.Reflection;
using libsecondlife; using libsecondlife;
using log4net;
using Mono.Data.SqliteClient; using Mono.Data.SqliteClient;
using OpenSim.Framework; using OpenSim.Framework;
using OpenSim.Framework.Console;
namespace OpenSim.Data.SQLite namespace OpenSim.Data.SQLite
{ {
public class SQLiteInventoryStore : SQLiteUtil, IInventoryData 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 invItemsSelect = "select * from inventoryitems";
private const string invFoldersSelect = "select * from inventoryfolders"; private const string invFoldersSelect = "select * from inventoryfolders";

View File

@ -29,15 +29,15 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data; using System.Data;
using System.Data.SQLite; using System.Data.SQLite;
using System.Reflection;
using libsecondlife; using libsecondlife;
using Mono.Data.SqliteClient; using log4net;
using OpenSim.Framework.Console;
namespace OpenSim.Data.SQLite namespace OpenSim.Data.SQLite
{ {
internal class SQLiteManager : SQLiteUtil 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; private IDbConnection dbcon;

View File

@ -29,10 +29,11 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data; using System.Data;
using System.IO; using System.IO;
using System.Reflection;
using libsecondlife; using libsecondlife;
using log4net;
using Mono.Data.SqliteClient; using Mono.Data.SqliteClient;
using OpenSim.Framework; using OpenSim.Framework;
using OpenSim.Framework.Console;
using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Interfaces;
using OpenSim.Region.Environment.Scenes; using OpenSim.Region.Environment.Scenes;
@ -40,7 +41,7 @@ namespace OpenSim.Data.SQLite
{ {
public class SQLiteRegionData : IRegionDataStore 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 primSelect = "select * from prims";
private const string shapeSelect = "select * from primshapes"; private const string shapeSelect = "select * from primshapes";

View File

@ -28,10 +28,11 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data; using System.Data;
using System.Reflection;
using libsecondlife; using libsecondlife;
using log4net;
using Mono.Data.SqliteClient; using Mono.Data.SqliteClient;
using OpenSim.Framework; using OpenSim.Framework;
using OpenSim.Framework.Console;
namespace OpenSim.Data.SQLite namespace OpenSim.Data.SQLite
{ {
@ -40,7 +41,7 @@ namespace OpenSim.Data.SQLite
/// </summary> /// </summary>
public class SQLiteUserData : UserDataBase 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);
/// <summary> /// <summary>
/// The database manager /// The database manager
@ -238,9 +239,9 @@ namespace OpenSim.Data.SQLite
} }
override public List<Framework.AvatarPickerAvatar> GeneratePickerResults(LLUUID queryID, string query) override public List<AvatarPickerAvatar> GeneratePickerResults(LLUUID queryID, string query)
{ {
List<Framework.AvatarPickerAvatar> returnlist = new List<Framework.AvatarPickerAvatar>(); List<AvatarPickerAvatar> returnlist = new List<AvatarPickerAvatar>();
string[] querysplit; string[] querysplit;
querysplit = query.Split(' '); querysplit = query.Split(' ');
if (querysplit.Length == 2) if (querysplit.Length == 2)
@ -254,7 +255,7 @@ namespace OpenSim.Data.SQLite
{ {
while (reader.Read()) while (reader.Read())
{ {
Framework.AvatarPickerAvatar user = new Framework.AvatarPickerAvatar(); AvatarPickerAvatar user = new AvatarPickerAvatar();
user.AvatarID = new LLUUID((string) reader["UUID"]); user.AvatarID = new LLUUID((string) reader["UUID"]);
user.firstName = (string) reader["username"]; user.firstName = (string) reader["username"];
user.lastName = (string) reader["surname"]; user.lastName = (string) reader["surname"];
@ -275,7 +276,7 @@ namespace OpenSim.Data.SQLite
{ {
while (reader.Read()) while (reader.Read())
{ {
Framework.AvatarPickerAvatar user = new Framework.AvatarPickerAvatar(); AvatarPickerAvatar user = new AvatarPickerAvatar();
user.AvatarID = new LLUUID((string) reader["UUID"]); user.AvatarID = new LLUUID((string) reader["UUID"]);
user.firstName = (string) reader["username"]; user.firstName = (string) reader["username"];
user.lastName = (string) reader["surname"]; user.lastName = (string) reader["surname"];
@ -766,7 +767,7 @@ namespace OpenSim.Data.SQLite
pcmd.ExecuteNonQuery(); pcmd.ExecuteNonQuery();
} }
catch (System.Exception) catch (Exception)
{ {
m_log.Info("[USERS]: users table already exists"); m_log.Info("[USERS]: users table already exists");
} }
@ -775,7 +776,7 @@ namespace OpenSim.Data.SQLite
{ {
fcmd.ExecuteNonQuery(); fcmd.ExecuteNonQuery();
} }
catch (System.Exception) catch (Exception)
{ {
m_log.Info("[USERS]: userfriends table already exists"); m_log.Info("[USERS]: userfriends table already exists");
} }

View File

@ -52,6 +52,6 @@ namespace OpenSim.Data
public abstract string GetVersion(); public abstract string GetVersion();
public abstract string getName(); public abstract string getName();
public abstract void Initialise(); public abstract void Initialise();
public abstract List<OpenSim.Framework.AvatarPickerAvatar> GeneratePickerResults(LLUUID queryID, string query); public abstract List<AvatarPickerAvatar> GeneratePickerResults(LLUUID queryID, string query);
} }
} }

View File

@ -25,6 +25,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System;
using System.Collections.Generic; using System.Collections.Generic;
using libsecondlife; using libsecondlife;
using libsecondlife.Packets; using libsecondlife.Packets;
@ -230,7 +231,7 @@ namespace OpenSim.Framework
public LLUUID CreatorID; public LLUUID CreatorID;
public sbyte InvType; public sbyte InvType;
public sbyte Type; public sbyte Type;
public string Name = System.String.Empty; public string Name = String.Empty;
public string Description; public string Description;
public InventoryItem() public InventoryItem()
@ -241,7 +242,7 @@ namespace OpenSim.Framework
public string ExportString() public string ExportString()
{ {
string typ = "notecard"; string typ = "notecard";
string result = System.String.Empty; string result = String.Empty;
result += "\tinv_object\t0\n\t{\n"; result += "\tinv_object\t0\n\t{\n";
result += "\t\tobj_id\t%s\n"; result += "\t\tobj_id\t%s\n";
result += "\t\tparent_id\t" + ItemID.ToString() + "\n"; result += "\t\tparent_id\t" + ItemID.ToString() + "\n";

View File

@ -26,7 +26,6 @@
*/ */
using System; using System;
using OpenSim.Framework.Console;
namespace OpenSim.Framework namespace OpenSim.Framework
{ {

View File

@ -28,14 +28,12 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Reflection;
using System.Xml; using System.Xml;
using libsecondlife; using libsecondlife;
using log4net;
using Nini.Config; using Nini.Config;
using OpenSim.Framework;
using OpenSim.Framework.Console;
/// <summary> /// <summary>
/// Loads assets from the filesystem location. Not yet a plugin, though it should be. /// Loads assets from the filesystem location. Not yet a plugin, though it should be.
/// </summary> /// </summary>
@ -43,7 +41,7 @@ namespace OpenSim.Framework.AssetLoader.Filesystem
{ {
public class AssetLoaderFileSystem : IAssetLoader 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) protected AssetBase CreateAsset(string assetIdStr, string name, string path, bool isImage)
{ {

View File

@ -25,9 +25,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System;
using System.Collections.Generic;
using System.Text;
using libsecondlife; using libsecondlife;
namespace OpenSim.Framework namespace OpenSim.Framework

View File

@ -25,10 +25,10 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using libsecondlife;
using System; using System;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using System.Security.Permissions; using System.Security.Permissions;
using libsecondlife;
namespace OpenSim.Framework namespace OpenSim.Framework
{ {
@ -77,7 +77,7 @@ namespace OpenSim.Framework
//System.Console.WriteLine("AvatarWearable Deserialize BGN"); //System.Console.WriteLine("AvatarWearable Deserialize BGN");
if (info == null) if (info == null)
{ {
throw new System.ArgumentNullException("info"); throw new ArgumentNullException("info");
} }
AssetID = new LLUUID((Guid)info.GetValue("AssetID", typeof(Guid))); AssetID = new LLUUID((Guid)info.GetValue("AssetID", typeof(Guid)));
@ -93,7 +93,7 @@ namespace OpenSim.Framework
{ {
if (info == null) if (info == null)
{ {
throw new System.ArgumentNullException("info"); throw new ArgumentNullException("info");
} }
info.AddValue("AssetID", AssetID.UUID); info.AddValue("AssetID", AssetID.UUID);

View File

@ -27,8 +27,10 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Reflection;
using libsecondlife; using libsecondlife;
using libsecondlife.Packets; using libsecondlife.Packets;
using log4net;
namespace OpenSim.Framework namespace OpenSim.Framework
{ {
@ -36,7 +38,7 @@ namespace OpenSim.Framework
public class ClientManager 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<uint, IClientAPI> m_clients; private Dictionary<uint, IClientAPI> m_clients;
@ -56,7 +58,7 @@ namespace OpenSim.Framework
{ {
whatToDo(LocalClients[i]); 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()); 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); 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)); m_log.Error(string.Format("[CLIENT]: Unable to shutdown circuit for: {0}\n Reason: {1}", agentId, e));
} }

View File

@ -25,6 +25,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System;
using OpenSim.Framework.Servers; using OpenSim.Framework.Servers;
namespace OpenSim.Framework.Communications namespace OpenSim.Framework.Communications
@ -47,7 +48,7 @@ namespace OpenSim.Framework.Communications
public string CapsRequest(string request, string path, string param) public string CapsRequest(string request, string path, string param)
{ {
System.Console.WriteLine("new caps request " + request + " from path " + path); System.Console.WriteLine("new caps request " + request + " from path " + path);
return System.String.Empty; return String.Empty;
} }
} }
} }

View File

@ -27,11 +27,11 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Reflection;
using System.Threading; using System.Threading;
using libsecondlife; using libsecondlife;
using libsecondlife.Packets; using libsecondlife.Packets;
using log4net;
using OpenSim.Framework.Console;
using OpenSim.Framework.Statistics; using OpenSim.Framework.Statistics;
namespace OpenSim.Framework.Communications.Cache namespace OpenSim.Framework.Communications.Cache
@ -52,8 +52,8 @@ namespace OpenSim.Framework.Communications.Cache
/// </summary> /// </summary>
public class AssetCache : IAssetReceiver public class AssetCache : IAssetReceiver
{ {
private static readonly log4net.ILog m_log private static readonly ILog m_log
= log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
/// <summary> /// <summary>
/// The cache of assets. This does not include textures. /// The cache of assets. This does not include textures.
@ -170,7 +170,7 @@ namespace OpenSim.Framework.Communications.Cache
m_assetCacheThread.Name = "AssetCacheThread"; m_assetCacheThread.Name = "AssetCacheThread";
m_assetCacheThread.IsBackground = true; m_assetCacheThread.IsBackground = true;
m_assetCacheThread.Start(); m_assetCacheThread.Start();
OpenSim.Framework.ThreadTracker.Add(m_assetCacheThread); ThreadTracker.Add(m_assetCacheThread);
} }
/// <summary> /// <summary>

View File

@ -25,16 +25,17 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System.IO; using System.IO;
using System.Reflection;
using Db4objects.Db4o; using Db4objects.Db4o;
using Db4objects.Db4o.Query; using Db4objects.Db4o.Query;
using libsecondlife; using libsecondlife;
using OpenSim.Framework.Console; using log4net;
namespace OpenSim.Framework.Communications.Cache namespace OpenSim.Framework.Communications.Cache
{ {
public class LocalAssetServer : AssetServerBase 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; private IObjectContainer db;

View File

@ -26,18 +26,18 @@
*/ */
using System; using System;
using System.Collections.Generic; using System.Reflection;
using System.Threading; using System.Threading;
using libsecondlife; using libsecondlife;
using OpenSim.Framework.Console; using log4net;
using OpenSim.Framework.AssetLoader.Filesystem; using OpenSim.Framework.AssetLoader.Filesystem;
namespace OpenSim.Framework.Communications.Cache namespace OpenSim.Framework.Communications.Cache
{ {
public abstract class AssetServerBase : IAssetServer public abstract class AssetServerBase : IAssetServer
{ {
private static readonly log4net.ILog m_log private static readonly ILog m_log
= log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
protected IAssetReceiver m_receiver; protected IAssetReceiver m_receiver;
protected BlockingQueue<AssetRequest> m_assetRequests; protected BlockingQueue<AssetRequest> m_assetRequests;
@ -100,7 +100,7 @@ namespace OpenSim.Framework.Communications.Cache
m_localAssetServerThread.Name = "LocalAssetServerThread"; m_localAssetServerThread.Name = "LocalAssetServerThread";
m_localAssetServerThread.IsBackground = true; m_localAssetServerThread.IsBackground = true;
m_localAssetServerThread.Start(); m_localAssetServerThread.Start();
OpenSim.Framework.ThreadTracker.Add(m_localAssetServerThread); ThreadTracker.Add(m_localAssetServerThread);
} }
private void RunRequests() private void RunRequests()

View File

@ -27,8 +27,9 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Reflection;
using libsecondlife; using libsecondlife;
using log4net;
namespace OpenSim.Framework.Communications.Cache namespace OpenSim.Framework.Communications.Cache
{ {
@ -37,8 +38,8 @@ namespace OpenSim.Framework.Communications.Cache
/// </summary> /// </summary>
public class CachedUserInfo public class CachedUserInfo
{ {
private static readonly log4net.ILog m_log private static readonly ILog m_log
= log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
/// <summary> /// <summary>
/// The comms manager holds references to services (user, grid, inventory, etc.) /// The comms manager holds references to services (user, grid, inventory, etc.)

View File

@ -27,15 +27,16 @@
using System; using System;
using System.IO; using System.IO;
using System.Reflection;
using System.Xml.Serialization; using System.Xml.Serialization;
using OpenSim.Framework.Console; using log4net;
using OpenSim.Framework.Servers; using OpenSim.Framework.Servers;
namespace OpenSim.Framework.Communications.Cache namespace OpenSim.Framework.Communications.Cache
{ {
public class GridAssetClient : AssetServerBase 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; private string _assetServerUrl;

View File

@ -28,10 +28,11 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Reflection;
using System.Xml; using System.Xml;
using libsecondlife; using libsecondlife;
using log4net;
using Nini.Config; using Nini.Config;
using OpenSim.Framework.Console;
namespace OpenSim.Framework.Communications.Cache namespace OpenSim.Framework.Communications.Cache
{ {
@ -41,7 +42,7 @@ namespace OpenSim.Framework.Communications.Cache
/// </summary> /// </summary>
public class LibraryRootFolder : InventoryFolderImpl 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"); private LLUUID libOwner = new LLUUID("11111111-1111-0000-0000-000100bba000");
@ -153,13 +154,13 @@ namespace OpenSim.Framework.Communications.Cache
{ {
string foldersPath string foldersPath
= Path.Combine( = Path.Combine(
Util.inventoryDir(), config.GetString("foldersFile", System.String.Empty)); Util.inventoryDir(), config.GetString("foldersFile", String.Empty));
LoadFromFile(foldersPath, "Library folders", ReadFolderFromConfig); LoadFromFile(foldersPath, "Library folders", ReadFolderFromConfig);
string itemsPath string itemsPath
= Path.Combine( = Path.Combine(
Util.inventoryDir(), config.GetString("itemsFile", System.String.Empty)); Util.inventoryDir(), config.GetString("itemsFile", String.Empty));
LoadFromFile(itemsPath, "Library items", ReadItemFromConfig); LoadFromFile(itemsPath, "Library items", ReadItemFromConfig);
} }
@ -209,8 +210,8 @@ namespace OpenSim.Framework.Communications.Cache
item.ID = new LLUUID(config.GetString("inventoryID", ID.ToString())); item.ID = new LLUUID(config.GetString("inventoryID", ID.ToString()));
item.AssetID = new LLUUID(config.GetString("assetID", LLUUID.Random().ToString())); item.AssetID = new LLUUID(config.GetString("assetID", LLUUID.Random().ToString()));
item.Folder = new LLUUID(config.GetString("folderID", ID.ToString())); item.Folder = new LLUUID(config.GetString("folderID", ID.ToString()));
item.Description = config.GetString("description", System.String.Empty); item.Description = config.GetString("description", String.Empty);
item.Name = config.GetString("name", System.String.Empty); item.Name = config.GetString("name", String.Empty);
item.AssetType = config.GetInt("assetType", 0); item.AssetType = config.GetInt("assetType", 0);
item.InvType = config.GetInt("inventoryType", 0); item.InvType = config.GetInt("inventoryType", 0);
item.CurrentPermissions = (uint)config.GetLong("currentPermissions", 0x7FFFFFFF); item.CurrentPermissions = (uint)config.GetLong("currentPermissions", 0x7FFFFFFF);

View File

@ -27,13 +27,13 @@
using System; using System;
using System.Reflection; using System.Reflection;
using OpenSim.Framework.Console; using log4net;
namespace OpenSim.Framework.Communications.Cache namespace OpenSim.Framework.Communications.Cache
{ {
public class SQLAssetServer : AssetServerBase 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) public SQLAssetServer(string pluginName)
{ {

View File

@ -25,13 +25,11 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Reflection;
using System.Threading; using System.Threading;
using libsecondlife; using libsecondlife;
using log4net;
using OpenSim.Framework.Console;
namespace OpenSim.Framework.Communications.Cache namespace OpenSim.Framework.Communications.Cache
{ {
@ -40,8 +38,8 @@ namespace OpenSim.Framework.Communications.Cache
/// </summary> /// </summary>
public class UserProfileCacheService public class UserProfileCacheService
{ {
private static readonly log4net.ILog m_log private static readonly ILog m_log
= log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
/// <summary> /// <summary>
/// The comms manager holds references to services (user, grid, inventory, etc.) /// The comms manager holds references to services (user, grid, inventory, etc.)

View File

@ -29,12 +29,11 @@ using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Reflection;
using libsecondlife; using libsecondlife;
using log4net;
using OpenSim.Framework; using OpenSim.Framework;
using OpenSim.Framework.Communications.Cache; using OpenSim.Framework.Communications.Cache;
using OpenSim.Framework.Console;
using OpenSim.Framework.Servers; using OpenSim.Framework.Servers;
namespace OpenSim.Region.Capabilities namespace OpenSim.Region.Capabilities
@ -66,8 +65,8 @@ namespace OpenSim.Region.Capabilities
public class Caps public class Caps
{ {
private static readonly log4net.ILog m_log = private static readonly ILog m_log =
log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private string m_httpListenerHostName; private string m_httpListenerHostName;
private uint m_httpListenPort; private uint m_httpListenPort;

View File

@ -25,14 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; 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; using OpenSim.Framework.Servers;
namespace OpenSim.Region.Capabilities namespace OpenSim.Region.Capabilities

View File

@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using libsecondlife;
using System; using System;
using libsecondlife;
namespace OpenSim.Region.Capabilities namespace OpenSim.Region.Capabilities
{ {

View File

@ -25,6 +25,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System;
using libsecondlife; using libsecondlife;
namespace OpenSim.Region.Capabilities namespace OpenSim.Region.Capabilities
@ -32,11 +33,11 @@ namespace OpenSim.Region.Capabilities
[LLSDMap] [LLSDMap]
public class LLSDAssetUploadRequest public class LLSDAssetUploadRequest
{ {
public string asset_type = System.String.Empty; public string asset_type = String.Empty;
public string description = System.String.Empty; public string description = String.Empty;
public LLUUID folder_id = LLUUID.Zero; public LLUUID folder_id = LLUUID.Zero;
public string inventory_type = System.String.Empty; public string inventory_type = String.Empty;
public string name = System.String.Empty; public string name = String.Empty;
public LLSDAssetUploadRequest() public LLSDAssetUploadRequest()
{ {

View File

@ -25,13 +25,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System;
namespace OpenSim.Region.Capabilities namespace OpenSim.Region.Capabilities
{ {
[LLSDMap] [LLSDMap]
public class LLSDAssetUploadResponse public class LLSDAssetUploadResponse
{ {
public string uploader = System.String.Empty; public string uploader = String.Empty;
public string state = System.String.Empty; public string state = String.Empty;
public LLSDAssetUploadResponse() public LLSDAssetUploadResponse()
{ {

View File

@ -25,9 +25,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System;
using System.Collections.Generic;
using System.Text;
using libsecondlife; using libsecondlife;
namespace OpenSim.Region.Capabilities namespace OpenSim.Region.Capabilities

View File

@ -27,7 +27,6 @@
*/ */
using System.Collections; using System.Collections;
using libsecondlife;
namespace OpenSim.Region.Capabilities namespace OpenSim.Region.Capabilities
{ {

View File

@ -26,8 +26,6 @@
* *
*/ */
using libsecondlife;
namespace OpenSim.Region.Capabilities namespace OpenSim.Region.Capabilities
{ {
[LLSDMap] [LLSDMap]

View File

@ -27,7 +27,9 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Reflection;
using libsecondlife; using libsecondlife;
using log4net;
using OpenSim.Framework.Communications.Cache; using OpenSim.Framework.Communications.Cache;
using OpenSim.Framework.Console; using OpenSim.Framework.Console;
using OpenSim.Framework.Servers; using OpenSim.Framework.Servers;
@ -36,7 +38,7 @@ namespace OpenSim.Framework.Communications
{ {
public class CommunicationsManager 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; protected IUserService m_userService;

View File

@ -26,9 +26,7 @@
*/ */
using System.Collections.Generic; using System.Collections.Generic;
using libsecondlife; using libsecondlife;
using OpenSim.Framework.Communications.Cache; using OpenSim.Framework.Communications.Cache;
namespace OpenSim.Framework.Communications namespace OpenSim.Framework.Communications

View File

@ -29,14 +29,14 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Reflection; using System.Reflection;
using libsecondlife; using libsecondlife;
using OpenSim.Framework.Console; using log4net;
namespace OpenSim.Framework.Communications namespace OpenSim.Framework.Communications
{ {
public abstract class InventoryServiceBase : IInventoryServices public abstract class InventoryServiceBase : IInventoryServices
{ {
private static readonly log4net.ILog m_log private static readonly ILog m_log
= log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
protected Dictionary<string, IInventoryData> m_plugins = new Dictionary<string, IInventoryData>(); protected Dictionary<string, IInventoryData> m_plugins = new Dictionary<string, IInventoryData>();

View File

@ -25,8 +25,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System;
namespace OpenSim.Framework.Communications.Limit namespace OpenSim.Framework.Communications.Limit
{ {
/// <summary> /// <summary>

View File

@ -25,8 +25,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System;
namespace OpenSim.Framework.Communications.Limit namespace OpenSim.Framework.Communications.Limit
{ {
/// <summary> /// <summary>

View File

@ -25,7 +25,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace OpenSim.Framework.Communications.Limit namespace OpenSim.Framework.Communications.Limit

View File

@ -104,7 +104,7 @@ namespace OpenSim.Framework.Communications.Limit
{ {
if (!IsMonitoringRequests(id)) if (!IsMonitoringRequests(id))
{ {
requests.Add(id, new Request(System.DateTime.Now)); requests.Add(id, new Request(DateTime.Now));
} }
} }

View File

@ -28,10 +28,11 @@
using System; using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Reflection;
using libsecondlife; using libsecondlife;
using libsecondlife.StructuredData; using libsecondlife.StructuredData;
using log4net;
using Nwc.XmlRpc; using Nwc.XmlRpc;
using OpenSim.Framework.Console;
namespace OpenSim.Framework.UserManagement namespace OpenSim.Framework.UserManagement
{ {
@ -41,7 +42,7 @@ namespace OpenSim.Framework.UserManagement
/// </summary> /// </summary>
public class LoginResponse 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 loginFlagsHash;
private Hashtable globalTexturesHash; private Hashtable globalTexturesHash;

View File

@ -29,21 +29,22 @@ using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Reflection;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Threading; using System.Threading;
using System.Web;
using libsecondlife; using libsecondlife;
using libsecondlife.StructuredData; using libsecondlife.StructuredData;
using log4net;
using Nwc.XmlRpc; using Nwc.XmlRpc;
using OpenSim.Framework.Communications.Cache; using OpenSim.Framework.Communications.Cache;
using OpenSim.Framework.Console;
using OpenSim.Framework.Statistics; using OpenSim.Framework.Statistics;
namespace OpenSim.Framework.UserManagement namespace OpenSim.Framework.UserManagement
{ {
public abstract class LoginService 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 string m_welcomeMessage = "Welcome to OpenSim";
protected UserManagerBase m_userManager = null; protected UserManagerBase m_userManager = null;
@ -159,7 +160,7 @@ namespace OpenSim.Framework.UserManagement
{ {
webloginkey = new LLUUID((string)requestData["web_login_key"]); webloginkey = new LLUUID((string)requestData["web_login_key"]);
} }
catch (System.Exception e) catch (Exception e)
{ {
m_log.InfoFormat( m_log.InfoFormat(
"[LOGIN END]: Bad web_login_key: {0} for user {1} {2}, exception {3}", "[LOGIN END]: Bad web_login_key: {0} for user {1} {2}, exception {3}",
@ -514,7 +515,7 @@ namespace OpenSim.Framework.UserManagement
statuscode = 301; statuscode = 301;
string redirectURL = "about:blank?redirect-http-hack=" + 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 + lastname +
"&location=" + location + "&grid=Other&web_login_key=" + webloginkey.ToString()); "&location=" + location + "&grid=Other&web_login_key=" + webloginkey.ToString());
//m_log.Info("[WEB]: R:" + redirectURL); //m_log.Info("[WEB]: R:" + redirectURL);

View File

@ -29,10 +29,11 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Net; using System.Net;
using System.Reflection;
using System.Text; using System.Text;
using System.Threading; using System.Threading;
using System.Web; using System.Web;
using OpenSim.Framework.Console; using log4net;
namespace OpenSim.Framework.Communications namespace OpenSim.Framework.Communications
{ {
@ -55,7 +56,7 @@ namespace OpenSim.Framework.Communications
/// </remarks> /// </remarks>
public class RestClient 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; private string realuri;

View File

@ -32,8 +32,8 @@ using System.Reflection;
using System.Security.Cryptography; using System.Security.Cryptography;
using libsecondlife; using libsecondlife;
using libsecondlife.StructuredData; using libsecondlife.StructuredData;
using log4net;
using Nwc.XmlRpc; using Nwc.XmlRpc;
using OpenSim.Framework.Console;
using OpenSim.Framework.Statistics; using OpenSim.Framework.Statistics;
namespace OpenSim.Framework.UserManagement namespace OpenSim.Framework.UserManagement
@ -43,8 +43,8 @@ namespace OpenSim.Framework.UserManagement
/// </summary> /// </summary>
public abstract class UserManagerBase : IUserService public abstract class UserManagerBase : IUserService
{ {
private static readonly log4net.ILog m_log private static readonly ILog m_log
= log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
public UserConfig _config; public UserConfig _config;
private Dictionary<string, IUserData> _plugins = new Dictionary<string, IUserData>(); private Dictionary<string, IUserData> _plugins = new Dictionary<string, IUserData>();

View File

@ -26,8 +26,6 @@
*/ */
using System; using System;
using System.Collections.Generic;
using System.Text;
using System.Xml; using System.Xml;
namespace OpenSim.Framework.Communications.XMPP namespace OpenSim.Framework.Communications.XMPP

View File

@ -25,12 +25,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * 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 namespace OpenSim.Framework.Communications.XMPP
{ {
public class XMPPParser public class XMPPParser

View File

@ -25,22 +25,24 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System;
using System.IO; using System.IO;
using System.Net; using System.Net;
using System.Reflection;
using System.Text; using System.Text;
using OpenSim.Framework.Console; using log4net;
namespace OpenSim.Framework.Configuration.HTTP namespace OpenSim.Framework.Configuration.HTTP
{ {
public class HTTPConfiguration : IGenericConfig 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 RemoteConfigSettings remoteConfigSettings;
private XmlConfiguration xmlConfig; private XmlConfiguration xmlConfig;
private string configFileName = System.String.Empty; private string configFileName = String.Empty;
public HTTPConfiguration() public HTTPConfiguration()
{ {

View File

@ -25,13 +25,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System;
namespace OpenSim.Framework.Configuration.HTTP namespace OpenSim.Framework.Configuration.HTTP
{ {
public class RemoteConfigSettings public class RemoteConfigSettings
{ {
private ConfigurationMember configMember; private ConfigurationMember configMember;
public string baseConfigURL = System.String.Empty; public string baseConfigURL = String.Empty;
public RemoteConfigSettings(string filename) public RemoteConfigSettings(string filename)
{ {

View File

@ -32,13 +32,14 @@ using System.Net;
using System.Reflection; using System.Reflection;
using System.Xml; using System.Xml;
using libsecondlife; using libsecondlife;
using log4net;
using OpenSim.Framework.Console; using OpenSim.Framework.Console;
namespace OpenSim.Framework namespace OpenSim.Framework
{ {
public class ConfigurationMember 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); public delegate bool ConfigurationOptionResult(string configuration_key, object configuration_result);

View File

@ -28,14 +28,15 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.IO;
using System.Net; using System.Net;
using System.Reflection;
using log4net;
namespace OpenSim.Framework.Console namespace OpenSim.Framework.Console
{ {
public class ConsoleBase 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(); private readonly object m_syncRoot = new object();

View File

@ -26,14 +26,9 @@
*/ */
using System; using System;
using System.Text;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Globalization;
using log4net.Core;
using log4net.Layout;
using log4net.Appender; using log4net.Appender;
using log4net.Util; using log4net.Core;
namespace OpenSim.Framework.Console namespace OpenSim.Framework.Console
{ {

View File

@ -25,10 +25,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System;
using System.Collections.Generic;
using System.Text;
namespace OpenSim.Framework namespace OpenSim.Framework
{ {
public class Constants public class Constants

View File

@ -27,14 +27,15 @@
using System; using System;
using System.IO; using System.IO;
using System.Reflection;
using libsecondlife; using libsecondlife;
using OpenSim.Framework.Console; using log4net;
namespace OpenSim.Framework namespace OpenSim.Framework
{ {
public class EstateSettings 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 //Settings to this island
private float m_billableFactor; private float m_billableFactor;

View File

@ -25,8 +25,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System;
using System.Collections.Generic;
using libsecondlife; using libsecondlife;
namespace OpenSim.Framework namespace OpenSim.Framework

View File

@ -26,7 +26,6 @@
*/ */
using System; using System;
using OpenSim.Framework.Console;
namespace OpenSim.Framework namespace OpenSim.Framework
{ {

View File

@ -26,7 +26,6 @@
*/ */
using System; using System;
using OpenSim.Framework;
namespace OpenSim.Framework namespace OpenSim.Framework
{ {

View File

@ -25,8 +25,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System;
using System.Collections.Generic;
using libsecondlife; using libsecondlife;
namespace OpenSim.Framework namespace OpenSim.Framework

View File

@ -25,9 +25,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Xml.Serialization;
using libsecondlife; using libsecondlife;
namespace OpenSim.Framework namespace OpenSim.Framework

View File

@ -25,9 +25,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Xml.Serialization;
using libsecondlife; using libsecondlife;
namespace OpenSim.Framework namespace OpenSim.Framework

View File

@ -25,7 +25,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using OpenSim.Framework.Console; using System;
namespace OpenSim.Framework namespace OpenSim.Framework
{ {
@ -34,12 +34,12 @@ namespace OpenSim.Framework
/// </summary> /// </summary>
public class InventoryConfig public class InventoryConfig
{ {
public string DefaultStartupMsg = System.String.Empty; public string DefaultStartupMsg = String.Empty;
public string UserServerURL = System.String.Empty; public string UserServerURL = String.Empty;
public string UserSendKey = System.String.Empty; public string UserSendKey = String.Empty;
public string UserRecvKey = System.String.Empty; public string UserRecvKey = String.Empty;
public string DatabaseProvider = System.String.Empty; public string DatabaseProvider = String.Empty;
public static uint DefaultHttpPort = 8004; public static uint DefaultHttpPort = 8004;
public uint HttpPort = DefaultHttpPort; public uint HttpPort = DefaultHttpPort;

View File

@ -25,9 +25,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System.Collections;
using System.Collections.Generic;
using System.Xml.Serialization;
using libsecondlife; using libsecondlife;
namespace OpenSim.Framework namespace OpenSim.Framework

View File

@ -25,9 +25,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System.Collections;
using System.Collections.Generic;
using System.Xml.Serialization;
using libsecondlife; using libsecondlife;
namespace OpenSim.Framework namespace OpenSim.Framework

View File

@ -26,8 +26,6 @@
*/ */
using System; using System;
using System.Collections.Generic;
using System.Text;
namespace OpenSim.Framework namespace OpenSim.Framework
{ {

View File

@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System.Collections.Generic;
using System; using System;
using System.Collections.Generic;
using libsecondlife; using libsecondlife;
namespace OpenSim.Framework namespace OpenSim.Framework

View File

@ -25,6 +25,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using System;
using libsecondlife; using libsecondlife;
namespace OpenSim.Framework namespace OpenSim.Framework
@ -39,7 +40,7 @@ namespace OpenSim.Framework
public LLUUID InventoryFolder; public LLUUID InventoryFolder;
public LLUUID BaseFolder; public LLUUID BaseFolder;
public uint CircuitCode; public uint CircuitCode;
public string CapsPath = System.String.Empty; public string CapsPath = String.Empty;
public LLVector3 StartPos; public LLVector3 StartPos;
public Login() public Login()

View File

@ -26,9 +26,6 @@
*/ */
using System; using System;
using System.Collections.Generic;
using System.Text;
using OpenSim.Framework.Console;
namespace OpenSim.Framework namespace OpenSim.Framework
{ {
@ -69,7 +66,7 @@ namespace OpenSim.Framework
configMember.addConfigurationOption("default_user_server", configMember.addConfigurationOption("default_user_server",
ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY,
"Default User Server URI", "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, configMember.addConfigurationOption("user_send_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING,
"Key to send to user server", "null", false); "Key to send to user server", "null", false);
configMember.addConfigurationOption("user_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, configMember.addConfigurationOption("user_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING,

View File

@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
using Nini.Config;
using System; using System;
using Nini.Config;
namespace OpenSim.Framework namespace OpenSim.Framework
{ {

Some files were not shown because too many files have changed in this diff Show More