mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
* Add user data plugin to store temporary profiles (which are distinct from cached)
* Plugin not yet used * Existing functionality should not be affected in any way
This commit is contained in:
@@ -69,15 +69,13 @@ namespace OpenSim.Region.Communications.Hypergrid
|
||||
m_log.Info("[HG]: Non-secureInventoryService.");
|
||||
|
||||
HGUserServices userServices = new HGUserServices(this);
|
||||
// This plugin arrangement could eventually be configurable rather than hardcoded here.
|
||||
OGS1UserDataPlugin userDataPlugin = new OGS1UserDataPlugin(this);
|
||||
userServices.AddPlugin(userDataPlugin);
|
||||
// This plugin arrangement could eventually be configurable rather than hardcoded here.
|
||||
userServices.AddPlugin(new TemporaryUserProfilePlugin());
|
||||
userServices.AddPlugin(new OGS1UserDataPlugin(this));
|
||||
|
||||
m_userService = userServices;
|
||||
m_messageService = userServices;
|
||||
m_avatarService = (IAvatarService)m_userService;
|
||||
|
||||
m_avatarService = userServices;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,7 +62,8 @@ namespace OpenSim.Region.Communications.Hypergrid
|
||||
m_inventoryServices = null;
|
||||
|
||||
HGUserServices hgUserService = new HGUserServices(this, localUserService);
|
||||
// This plugin arrangement could eventually be configurable rather than hardcoded here.
|
||||
// This plugin arrangement could eventually be configurable rather than hardcoded here.
|
||||
hgUserService.AddPlugin(new TemporaryUserProfilePlugin());
|
||||
hgUserService.AddPlugin(new OGS1UserDataPlugin(this));
|
||||
|
||||
m_userService = hgUserService;
|
||||
|
||||
@@ -52,6 +52,7 @@ namespace OpenSim.Region.Communications.Local
|
||||
LocalUserServices lus
|
||||
= new LocalUserServices(
|
||||
serversInfo.DefaultHomeLocX, serversInfo.DefaultHomeLocY, this);
|
||||
lus.AddPlugin(new TemporaryUserProfilePlugin());
|
||||
lus.AddPlugin(configSettings.StandaloneUserPlugin, configSettings.StandaloneUserSource);
|
||||
m_userService = lus;
|
||||
m_userAdminService = lus;
|
||||
|
||||
@@ -57,8 +57,8 @@ namespace OpenSim.Region.Communications.OGS1
|
||||
|
||||
// This plugin arrangement could eventually be configurable rather than hardcoded here.
|
||||
OGS1UserServices userServices = new OGS1UserServices(this);
|
||||
OGS1UserDataPlugin userDataPlugin = new OGS1UserDataPlugin(this);
|
||||
userServices.AddPlugin(userDataPlugin);
|
||||
userServices.AddPlugin(new TemporaryUserProfilePlugin());
|
||||
userServices.AddPlugin(new OGS1UserDataPlugin(this));
|
||||
|
||||
m_userService = userServices;
|
||||
m_messageService = userServices;
|
||||
|
||||
Reference in New Issue
Block a user