aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-02-12 17:07:44 +0000
committerJustin Clarke Casey2009-02-12 17:07:44 +0000
commit31ca3a8d4d53fc82a3b4cb62ad4edaebc4111302 (patch)
tree89a086e5dcdc1cb026b9a9fe2d9d914babaa65a0 /OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
parent* Added XEngine tests and gathered other ScriptEngine (diff)
downloadopensim-SC-31ca3a8d4d53fc82a3b4cb62ad4edaebc4111302.zip
opensim-SC-31ca3a8d4d53fc82a3b4cb62ad4edaebc4111302.tar.gz
opensim-SC-31ca3a8d4d53fc82a3b4cb62ad4edaebc4111302.tar.bz2
opensim-SC-31ca3a8d4d53fc82a3b4cb62ad4edaebc4111302.tar.xz
* refactor: Move RequestInventoryForUser() from service to CachedUserInfo
* This simplifies callers in most cases - CachedUserInfo is already handling the rest of the fetch inventory work anyway
Diffstat (limited to 'OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs')
-rw-r--r--OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs30
1 files changed, 0 insertions, 30 deletions
diff --git a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
index ef190c8..b1ce3e7 100644
--- a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
+++ b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
@@ -105,36 +105,6 @@ namespace OpenSim.Framework.Communications.Cache
105 } 105 }
106 106
107 /// <summary> 107 /// <summary>
108 /// Request the inventory data for the given user. This will occur asynchronously if running on a grid
109 /// </summary>
110 /// <param name="userID"></param>
111 /// <param name="userInfo"></param>
112 public void RequestInventoryForUser(UUID userID)
113 {
114 CachedUserInfo userInfo = GetUserDetails(userID);
115 if (userInfo != null)
116 {
117 if (m_commsManager.SecureInventoryService != null)
118 {
119 m_commsManager.SecureInventoryService.RequestInventoryForUser(userID, userInfo.SessionID, userInfo.InventoryReceive);
120 }
121 else
122 {
123 m_commsManager.InventoryService.RequestInventoryForUser(userID, userInfo.InventoryReceive);
124 }
125 //IInventoryServices invService = userInfo.GetInventoryService();
126 //if (invService != null)
127 //{
128 // invService.RequestInventoryForUser(userID, userInfo.InventoryReceive);
129 //}
130 }
131 else
132 {
133 m_log.ErrorFormat("[USER CACHE]: RequestInventoryForUser() - user profile for user {0} not found", userID);
134 }
135 }
136
137 /// <summary>
138 /// Get cached details of the given user. If the user isn't in cache then the user is requested from the 108 /// Get cached details of the given user. If the user isn't in cache then the user is requested from the
139 /// profile service. 109 /// profile service.
140 /// </summary> 110 /// </summary>