diff options
Diffstat (limited to 'OpenSim/Grid')
-rw-r--r-- | OpenSim/Grid/UserServer/Main.cs | 9 | ||||
-rw-r--r-- | OpenSim/Grid/UserServer/UserManager.cs | 13 |
2 files changed, 13 insertions, 9 deletions
diff --git a/OpenSim/Grid/UserServer/Main.cs b/OpenSim/Grid/UserServer/Main.cs index 1ae4bee..2650694 100644 --- a/OpenSim/Grid/UserServer/Main.cs +++ b/OpenSim/Grid/UserServer/Main.cs | |||
@@ -44,7 +44,6 @@ namespace OpenSim.Grid.UserServer | |||
44 | { | 44 | { |
45 | private UserConfig Cfg; | 45 | private UserConfig Cfg; |
46 | 46 | ||
47 | |||
48 | public UserManager m_userManager; | 47 | public UserManager m_userManager; |
49 | public UserLoginService m_loginService; | 48 | public UserLoginService m_loginService; |
50 | public MessageServersConnector m_messagesService; | 49 | public MessageServersConnector m_messagesService; |
@@ -89,13 +88,13 @@ namespace OpenSim.Grid.UserServer | |||
89 | public void Startup() | 88 | public void Startup() |
90 | { | 89 | { |
91 | Cfg = new UserConfig("USER SERVER", (Path.Combine(Util.configDir(), "UserServer_Config.xml"))); | 90 | Cfg = new UserConfig("USER SERVER", (Path.Combine(Util.configDir(), "UserServer_Config.xml"))); |
91 | |||
92 | m_stats = new UserStatsReporter(); | ||
92 | 93 | ||
93 | MainLog.Instance.Verbose("REGION", "Establishing data connection"); | 94 | MainLog.Instance.Verbose("REGION", "Establishing data connection"); |
94 | m_userManager = new UserManager(); | 95 | m_userManager = new UserManager(m_stats); |
95 | m_userManager._config = Cfg; | 96 | m_userManager._config = Cfg; |
96 | m_userManager.AddPlugin(Cfg.DatabaseProvider); | 97 | m_userManager.AddPlugin(Cfg.DatabaseProvider); |
97 | |||
98 | m_stats = new UserStatsReporter(); | ||
99 | 98 | ||
100 | m_loginService = new UserLoginService( | 99 | m_loginService = new UserLoginService( |
101 | m_userManager, new LibraryRootFolder(), m_stats, Cfg, Cfg.DefaultStartupMsg); | 100 | m_userManager, new LibraryRootFolder(), m_stats, Cfg, Cfg.DefaultStartupMsg); |
diff --git a/OpenSim/Grid/UserServer/UserManager.cs b/OpenSim/Grid/UserServer/UserManager.cs index 3f2aa5b..778aec1 100644 --- a/OpenSim/Grid/UserServer/UserManager.cs +++ b/OpenSim/Grid/UserServer/UserManager.cs | |||
@@ -32,16 +32,21 @@ using System.Text.RegularExpressions; | |||
32 | using libsecondlife; | 32 | using libsecondlife; |
33 | using Nwc.XmlRpc; | 33 | using Nwc.XmlRpc; |
34 | using OpenSim.Framework; | 34 | using OpenSim.Framework; |
35 | using OpenSim.Framework.Statistics; | ||
35 | using OpenSim.Framework.UserManagement; | 36 | using OpenSim.Framework.UserManagement; |
36 | 37 | ||
37 | namespace OpenSim.Grid.UserServer | 38 | namespace OpenSim.Grid.UserServer |
38 | { | 39 | { |
39 | public class UserManager : UserManagerBase | 40 | public class UserManager : UserManagerBase |
40 | { | 41 | { |
41 | public UserManager() | 42 | /// <summary> |
43 | /// Constructor. | ||
44 | /// </summary> | ||
45 | /// <param name="statsCollector">Can be null if stats collection is not required. | ||
46 | /// </param> | ||
47 | public UserManager(UserStatsReporter statsCollector) : base(statsCollector) | ||
42 | { | 48 | { |
43 | } | 49 | } |
44 | |||
45 | 50 | ||
46 | /// <summary> | 51 | /// <summary> |
47 | /// Deletes an active agent session | 52 | /// Deletes an active agent session |