mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Heart surgery no.2: the inventory service hooks.
Several improvements in the connectors themselves. Several improvements in configurations. Needed to add a hack in IUserService and UserManagerBase, to be removed when that service is refactored.
This commit is contained in:
@@ -128,13 +128,20 @@ namespace OpenSim.Server.Base
|
||||
pluginType.ToString() !=
|
||||
pluginType.Namespace + "." + className)
|
||||
continue;
|
||||
|
||||
Type typeInterface =
|
||||
pluginType.GetInterface(interfaceName, true);
|
||||
if (typeInterface != null)
|
||||
{
|
||||
T plug = (T)Activator.CreateInstance(pluginType,
|
||||
args);
|
||||
T plug = null;
|
||||
try
|
||||
{
|
||||
plug = (T)Activator.CreateInstance(pluginType,
|
||||
args);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
m_log.ErrorFormat("Error loading plugin from {0}, exception {1}", dllName, e.InnerException);
|
||||
}
|
||||
|
||||
return plug;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user