mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 12:25:42 +08:00
* Resolve http://opensimulator.org/mantis/view.php?id=3509 by putting some service initialization into CommsManager
* What is really needed is a plugin and interface request system as being done for region modules
This commit is contained in:
@@ -145,9 +145,16 @@ namespace OpenSim.Grid.UserServer
|
||||
/// <param name="inventoryService"></param>
|
||||
protected virtual void StartupUserServerModules()
|
||||
{
|
||||
m_log.Info("[STARTUP]: Establishing data connection");
|
||||
m_log.Info("[STARTUP]: Establishing data connection");
|
||||
|
||||
//we only need core components so we can request them from here
|
||||
IInterServiceInventoryServices inventoryService;
|
||||
TryGet<IInterServiceInventoryServices>(out inventoryService);
|
||||
|
||||
CommunicationsManager commsManager = new UserServerCommsManager(inventoryService);
|
||||
|
||||
//setup database access service, for now this has to be created before the other modules.
|
||||
m_userDataBaseService = new UserDataBaseService();
|
||||
m_userDataBaseService = new UserDataBaseService(commsManager);
|
||||
m_userDataBaseService.Initialise(this);
|
||||
|
||||
//TODO: change these modules so they fetch the databaseService class in the PostInitialise method
|
||||
|
||||
Reference in New Issue
Block a user