mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
Mantis#1591. Thank you graciously, Sempuki for a patch that:
Currently module loading is done ad-hoc. I propose creating a simple loader class that leverages Mono.Addins (and perhaps the new .NET addins when they become available in mono). Attached is a basic patch for review that compiles into HEAD, but doesn't yet replace any existing ad-hoc loaders.
This commit is contained in:
@@ -43,7 +43,7 @@ namespace OpenSim.Data.NHibernate
|
||||
/// <summary>
|
||||
/// A User storage interface for the DB4o database system
|
||||
/// </summary>
|
||||
public class NHibernateAssetData : AssetDataBase, IDisposable
|
||||
public class NHibernateAssetData : AssetDataBase
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@@ -51,6 +51,8 @@ namespace OpenSim.Data.NHibernate
|
||||
private ISessionFactory factory;
|
||||
private ISession session;
|
||||
|
||||
override public void Dispose() { }
|
||||
|
||||
public override void Initialise()
|
||||
{
|
||||
Initialise("SQLiteDialect;SqliteClientDriver;URI=file:Asset.db,version=3");
|
||||
@@ -173,9 +175,5 @@ namespace OpenSim.Data.NHibernate
|
||||
get { return "0.1"; }
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user