mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Some continuation of lbsa71's refactoring of the CommunicationsManager.
This commit is contained in:
@@ -108,6 +108,7 @@ namespace OpenSim
|
||||
}
|
||||
|
||||
ReadConfigSettings(startupSource);
|
||||
|
||||
}
|
||||
|
||||
protected void ReadConfigSettings(IConfigSource configSource)
|
||||
@@ -145,6 +146,7 @@ namespace OpenSim
|
||||
/// </summary>
|
||||
public override void StartUp()
|
||||
{
|
||||
|
||||
if (!Directory.Exists(Util.logDir()))
|
||||
{
|
||||
Directory.CreateDirectory(Util.logDir());
|
||||
@@ -157,14 +159,17 @@ namespace OpenSim
|
||||
|
||||
if (m_sandbox)
|
||||
{
|
||||
CommunicationsLocal.LocalSettings settings = new CommunicationsLocal.LocalSettings(standaloneWelcomeMessage, standaloneAuthenticate, standaloneInventoryPlugin);
|
||||
CommunicationsLocal.LocalSettings settings = new CommunicationsLocal.LocalSettings(standaloneWelcomeMessage, standaloneAuthenticate);
|
||||
|
||||
LocalInventoryService inventoryService = new LocalInventoryService();
|
||||
inventoryService.AddPlugin(standaloneInventoryPlugin);
|
||||
|
||||
LocalUserServices userService = new LocalUserServices(m_networkServersInfo, m_networkServersInfo.DefaultHomeLocX, m_networkServersInfo.DefaultHomeLocY, inventoryService );
|
||||
userService.AddPlugin( standaloneUserPlugin );
|
||||
|
||||
CommunicationsLocal localComms = new CommunicationsLocal(m_networkServersInfo, m_httpServer, m_assetCache, settings, userService);
|
||||
CommunicationsLocal localComms = new CommunicationsLocal(m_networkServersInfo, m_httpServer, m_assetCache, settings, userService, inventoryService);
|
||||
m_commsManager = localComms;
|
||||
|
||||
if (standaloneAuthenticate)
|
||||
{
|
||||
this.CreateAccount = localComms.doCreate;
|
||||
|
||||
Reference in New Issue
Block a user