diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs index dfba0d6..33cc838 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs | |||
@@ -36,6 +36,7 @@ using OpenSim.Framework; | |||
36 | using OpenSim.Services.Connectors; | 36 | using OpenSim.Services.Connectors; |
37 | using OpenSim.Region.Framework.Interfaces; | 37 | using OpenSim.Region.Framework.Interfaces; |
38 | using OpenSim.Region.Framework.Scenes; | 38 | using OpenSim.Region.Framework.Scenes; |
39 | using OpenSim.Server.Base; | ||
39 | using OpenSim.Services.Interfaces; | 40 | using OpenSim.Services.Interfaces; |
40 | using GridRegion = OpenSim.Services.Interfaces.GridRegion; | 41 | using GridRegion = OpenSim.Services.Interfaces.GridRegion; |
41 | 42 | ||
@@ -97,9 +98,18 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid | |||
97 | return; | 98 | return; |
98 | } | 99 | } |
99 | 100 | ||
101 | string networkConnector = gridConfig.GetString("NetworkConnector", string.Empty); | ||
102 | if (networkConnector == string.Empty) | ||
103 | { | ||
104 | m_log.Error("[REMOTE GRID CONNECTOR]: Please specify a network connector under [GridService]"); | ||
105 | return; | ||
106 | } | ||
107 | |||
108 | Object[] args = new Object[] { source }; | ||
109 | m_RemoteGridService = ServerUtils.LoadPlugin<IGridService>(networkConnector, args); | ||
110 | |||
100 | m_LocalGridService = new LocalGridServicesConnector(source); | 111 | m_LocalGridService = new LocalGridServicesConnector(source); |
101 | m_RemoteGridService = new GridServicesConnector(source); | 112 | } |
102 | } | ||
103 | 113 | ||
104 | public void PostInitialise() | 114 | public void PostInitialise() |
105 | { | 115 | { |