diff options
author | Melanie Thielker | 2009-05-11 22:54:09 +0000 |
---|---|---|
committer | Melanie Thielker | 2009-05-11 22:54:09 +0000 |
commit | 16efb78698fc505fb33ad87962b39047939d636c (patch) | |
tree | b5a52ac4bb450bec6a8f6e52a5a7e97db1335488 /OpenSim/Servers/User | |
parent | resolve a circular dependency (diff) | |
download | opensim-SC_OLD-16efb78698fc505fb33ad87962b39047939d636c.zip opensim-SC_OLD-16efb78698fc505fb33ad87962b39047939d636c.tar.gz opensim-SC_OLD-16efb78698fc505fb33ad87962b39047939d636c.tar.bz2 opensim-SC_OLD-16efb78698fc505fb33ad87962b39047939d636c.tar.xz |
Changes to the new user system to add the modularity developed for the asset
system
Diffstat (limited to 'OpenSim/Servers/User')
-rw-r--r-- | OpenSim/Servers/User/UserServerConnector.cs | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/OpenSim/Servers/User/UserServerConnector.cs b/OpenSim/Servers/User/UserServerConnector.cs index c20cc31..15b09bc 100644 --- a/OpenSim/Servers/User/UserServerConnector.cs +++ b/OpenSim/Servers/User/UserServerConnector.cs | |||
@@ -25,9 +25,10 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | ||
28 | using Nini.Config; | 29 | using Nini.Config; |
30 | using OpenSim.Servers.Base; | ||
29 | using OpenSim.Services.Interfaces; | 31 | using OpenSim.Services.Interfaces; |
30 | using OpenSim.Services.UserService; | ||
31 | using OpenSim.Framework.Servers.HttpServer; | 32 | using OpenSim.Framework.Servers.HttpServer; |
32 | 33 | ||
33 | namespace OpenSim.Servers.UserServer | 34 | namespace OpenSim.Servers.UserServer |
@@ -38,7 +39,19 @@ namespace OpenSim.Servers.UserServer | |||
38 | 39 | ||
39 | public UserServiceConnector(IConfigSource config, IHttpServer server) | 40 | public UserServiceConnector(IConfigSource config, IHttpServer server) |
40 | { | 41 | { |
41 | m_UserService = new UserService(config); | 42 | IConfig serverConfig = config.Configs["UserService"]; |
43 | if (serverConfig == null) | ||
44 | throw new Exception("No section 'Server' in config file"); | ||
45 | |||
46 | string userService = serverConfig.GetString("LocalServiceModule", | ||
47 | String.Empty); | ||
48 | |||
49 | if (userService == String.Empty) | ||
50 | throw new Exception("No UserService in config file"); | ||
51 | |||
52 | Object[] args = new Object[] { config }; | ||
53 | m_UserService = | ||
54 | ServerUtils.LoadPlugin<IUserService>(userService, args); | ||
42 | } | 55 | } |
43 | } | 56 | } |
44 | } | 57 | } |