diff options
author | Justin Clarke Casey | 2008-04-11 16:49:20 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-04-11 16:49:20 +0000 |
commit | 205b95f2e8b1f94379068c01c46777d7188fc2e5 (patch) | |
tree | f02cac20eed4a970085aba2a11880721816f163c /OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs | |
parent | * documenting and minor refactoring in UserProfileCacheService (diff) | |
download | opensim-SC_OLD-205b95f2e8b1f94379068c01c46777d7188fc2e5.zip opensim-SC_OLD-205b95f2e8b1f94379068c01c46777d7188fc2e5.tar.gz opensim-SC_OLD-205b95f2e8b1f94379068c01c46777d7188fc2e5.tar.bz2 opensim-SC_OLD-205b95f2e8b1f94379068c01c46777d7188fc2e5.tar.xz |
* minor documenting, cleanup, renaming in user profile cache service
Diffstat (limited to 'OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs')
-rw-r--r-- | OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs index 7178d2c..586c24e 100644 --- a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs +++ b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs | |||
@@ -35,12 +35,15 @@ using OpenSim.Framework.Console; | |||
35 | 35 | ||
36 | namespace OpenSim.Framework.Communications.Cache | 36 | namespace OpenSim.Framework.Communications.Cache |
37 | { | 37 | { |
38 | /// <summary> | ||
39 | /// Holds user profile information and retrieves it from backend services. | ||
40 | /// </summary> | ||
38 | public class UserProfileCacheService | 41 | public class UserProfileCacheService |
39 | { | 42 | { |
40 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | 43 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); |
41 | 44 | ||
42 | /// <summary> | 45 | /// <summary> |
43 | /// The comms manager holds the reference to this service | 46 | /// The comms manager holds references to services (user, grid, inventory, etc.) |
44 | /// </summary> | 47 | /// </summary> |
45 | private readonly CommunicationsManager m_commsManager; | 48 | private readonly CommunicationsManager m_commsManager; |
46 | 49 | ||
@@ -68,12 +71,12 @@ namespace OpenSim.Framework.Communications.Cache | |||
68 | { | 71 | { |
69 | if (!m_userProfiles.ContainsKey(userID)) | 72 | if (!m_userProfiles.ContainsKey(userID)) |
70 | { | 73 | { |
71 | CachedUserInfo userInfo = new CachedUserInfo(m_commsManager); | 74 | UserProfileData userProfile = m_commsManager.UserService.GetUserProfile(userID); |
72 | userInfo.UserProfile = m_commsManager.UserService.GetUserProfile(userID); | 75 | CachedUserInfo userInfo = new CachedUserInfo(m_commsManager, userProfile); |
73 | 76 | ||
74 | if (userInfo.UserProfile != null) | 77 | if (userInfo.UserProfile != null) |
75 | { | 78 | { |
76 | // The inventory will be populated when the user actually enters the scene | 79 | // The inventory for the user will be populated when they actually enter the scene |
77 | m_userProfiles.Add(userID, userInfo); | 80 | m_userProfiles.Add(userID, userInfo); |
78 | } | 81 | } |
79 | else | 82 | else |
@@ -85,7 +88,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
85 | } | 88 | } |
86 | 89 | ||
87 | /// <summary> | 90 | /// <summary> |
88 | /// Request the inventory data for the given user. This will occur asynchronous if running on a grid | 91 | /// Request the inventory data for the given user. This will occur asynchronously if running on a grid |
89 | /// </summary> | 92 | /// </summary> |
90 | /// <param name="userID"></param> | 93 | /// <param name="userID"></param> |
91 | /// <param name="userInfo"></param> | 94 | /// <param name="userInfo"></param> |