diff options
author | Justin Clarke Casey | 2009-04-22 22:19:43 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-04-22 22:19:43 +0000 |
commit | 342126b7b9ca386f9160daecb51ecc14487a5f9f (patch) | |
tree | a485a50aebead411fa2f38528b4c0b7ba19e91db /OpenSim/Region/Communications/Local | |
parent | * Resolve http://opensimulator.org/mantis/view.php?id=3509 by passing up the ... (diff) | |
download | opensim-SC_OLD-342126b7b9ca386f9160daecb51ecc14487a5f9f.zip opensim-SC_OLD-342126b7b9ca386f9160daecb51ecc14487a5f9f.tar.gz opensim-SC_OLD-342126b7b9ca386f9160daecb51ecc14487a5f9f.tar.bz2 opensim-SC_OLD-342126b7b9ca386f9160daecb51ecc14487a5f9f.tar.xz |
* 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
Diffstat (limited to 'OpenSim/Region/Communications/Local')
-rw-r--r-- | OpenSim/Region/Communications/Local/CommunicationsLocal.cs | 24 | ||||
-rw-r--r-- | OpenSim/Region/Communications/Local/LocalUserServices.cs | 6 |
2 files changed, 18 insertions, 12 deletions
diff --git a/OpenSim/Region/Communications/Local/CommunicationsLocal.cs b/OpenSim/Region/Communications/Local/CommunicationsLocal.cs index 59a1293..c17f799 100644 --- a/OpenSim/Region/Communications/Local/CommunicationsLocal.cs +++ b/OpenSim/Region/Communications/Local/CommunicationsLocal.cs | |||
@@ -35,24 +35,30 @@ namespace OpenSim.Region.Communications.Local | |||
35 | public class CommunicationsLocal : CommunicationsManager | 35 | public class CommunicationsLocal : CommunicationsManager |
36 | { | 36 | { |
37 | public CommunicationsLocal( | 37 | public CommunicationsLocal( |
38 | ConfigSettings configSettings, | ||
38 | NetworkServersInfo serversInfo, | 39 | NetworkServersInfo serversInfo, |
39 | BaseHttpServer httpServer, | 40 | BaseHttpServer httpServer, |
40 | IAssetCache assetCache, | 41 | IAssetCache assetCache, |
41 | IUserService userService, | ||
42 | IUserAdminService userServiceAdmin, | ||
43 | LocalInventoryService inventoryService, | 42 | LocalInventoryService inventoryService, |
44 | IGridServices gridService, IMessagingService messageService, | 43 | IGridServices gridService, |
45 | LibraryRootFolder libraryRootFolder, bool dumpAssetsToFile) | 44 | LibraryRootFolder libraryRootFolder, |
45 | bool dumpAssetsToFile) | ||
46 | : base(serversInfo, httpServer, assetCache, dumpAssetsToFile, libraryRootFolder) | 46 | : base(serversInfo, httpServer, assetCache, dumpAssetsToFile, libraryRootFolder) |
47 | { | 47 | { |
48 | AddInventoryService(inventoryService); | 48 | AddInventoryService(inventoryService); |
49 | m_defaultInventoryHost = inventoryService.Host; | 49 | m_defaultInventoryHost = inventoryService.Host; |
50 | m_interServiceInventoryService = inventoryService; | 50 | m_interServiceInventoryService = inventoryService; |
51 | m_userService = userService; | 51 | |
52 | m_userAdminService = userServiceAdmin; | 52 | LocalUserServices lus |
53 | m_avatarService = (IAvatarService)userService; | 53 | = new LocalUserServices( |
54 | m_gridService = gridService; | 54 | serversInfo.DefaultHomeLocX, serversInfo.DefaultHomeLocY, this); |
55 | m_messageService = messageService; | 55 | lus.AddPlugin(configSettings.StandaloneUserPlugin, configSettings.StandaloneUserSource); |
56 | m_userService = lus; | ||
57 | m_userAdminService = lus; | ||
58 | m_avatarService = lus; | ||
59 | m_messageService = lus; | ||
60 | |||
61 | m_gridService = gridService; | ||
56 | } | 62 | } |
57 | } | 63 | } |
58 | } | 64 | } |
diff --git a/OpenSim/Region/Communications/Local/LocalUserServices.cs b/OpenSim/Region/Communications/Local/LocalUserServices.cs index eb60610..7412500 100644 --- a/OpenSim/Region/Communications/Local/LocalUserServices.cs +++ b/OpenSim/Region/Communications/Local/LocalUserServices.cs | |||
@@ -45,10 +45,10 @@ namespace OpenSim.Region.Communications.Local | |||
45 | /// </summary> | 45 | /// </summary> |
46 | /// <param name="defaultHomeLocX"></param> | 46 | /// <param name="defaultHomeLocX"></param> |
47 | /// <param name="defaultHomeLocY"></param> | 47 | /// <param name="defaultHomeLocY"></param> |
48 | /// <param name="inventoryService"></param> | 48 | /// <param name="commsManager"></param> |
49 | public LocalUserServices( | 49 | public LocalUserServices( |
50 | uint defaultHomeLocX, uint defaultHomeLocY, IInterServiceInventoryServices interServiceInventoryService) | 50 | uint defaultHomeLocX, uint defaultHomeLocY, CommunicationsManager commsManager) |
51 | : base(interServiceInventoryService) | 51 | : base(commsManager) |
52 | { | 52 | { |
53 | m_defaultHomeX = defaultHomeLocX; | 53 | m_defaultHomeX = defaultHomeLocX; |
54 | m_defaultHomeY = defaultHomeLocY; | 54 | m_defaultHomeY = defaultHomeLocY; |