29 using System.Reflection;
31 using OpenSim.Framework;
33 using OpenSim.Services.Interfaces;
34 using OpenSim.Services.Base;
36 namespace OpenSim.Services.UserAccountService
44 string dllName = String.Empty;
45 string connString = String.Empty;
46 string realm =
"GridUser";
51 IConfig dbConfig = config.Configs[
"DatabaseService"];
54 if (dllName == String.Empty)
55 dllName = dbConfig.GetString(
"StorageProvider", String.Empty);
56 if (connString == String.Empty)
57 connString = dbConfig.GetString(
"ConnectionString", String.Empty);
63 IConfig usersConfig = config.Configs[
"GridUserService"];
64 if (usersConfig != null)
66 dllName = usersConfig.GetString(
"StorageProvider", dllName);
67 connString = usersConfig.GetString(
"ConnectionString", connString);
68 realm = usersConfig.GetString(
"Realm", realm);
74 if (dllName.Equals(String.Empty))
75 throw new Exception(
"No StorageProvider configured");
77 m_Database = LoadPlugin<IGridUserData>(dllName,
new Object[] { connString, realm });
78 if (m_Database == null)
79 throw new Exception(
"Could not find a storage interface in the given module " + dllName);
GridUserServiceBase(IConfigSource config)
An interface for connecting to the user grid datastore