diff options
author | Justin Clarke Casey | 2009-02-12 17:07:44 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-02-12 17:07:44 +0000 |
commit | 31ca3a8d4d53fc82a3b4cb62ad4edaebc4111302 (patch) | |
tree | 89a086e5dcdc1cb026b9a9fe2d9d914babaa65a0 /OpenSim/Framework/Communications/Cache/CachedUserInfo.cs | |
parent | * Added XEngine tests and gathered other ScriptEngine (diff) | |
download | opensim-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/CachedUserInfo.cs')
-rw-r--r-- | OpenSim/Framework/Communications/Cache/CachedUserInfo.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs b/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs index 15066cd..c5bbd6a 100644 --- a/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs +++ b/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs | |||
@@ -202,6 +202,25 @@ namespace OpenSim.Framework.Communications.Cache | |||
202 | m_rootFolder = null; | 202 | m_rootFolder = null; |
203 | } | 203 | } |
204 | } | 204 | } |
205 | |||
206 | /// <summary> | ||
207 | /// Fetch inventory for this user. | ||
208 | /// </summary> | ||
209 | /// This has to be executed as a separate step once user information is retreived. | ||
210 | /// This will occur synchronously if the inventory service is in the same process as this class, and | ||
211 | /// asynchronously otherwise. | ||
212 | public void FetchInventory() | ||
213 | { | ||
214 | if (m_commsManager.SecureInventoryService != null) | ||
215 | { | ||
216 | m_commsManager.SecureInventoryService.RequestInventoryForUser( | ||
217 | UserProfile.ID, SessionID, InventoryReceive); | ||
218 | } | ||
219 | else | ||
220 | { | ||
221 | m_commsManager.InventoryService.RequestInventoryForUser(UserProfile.ID, InventoryReceive); | ||
222 | } | ||
223 | } | ||
205 | 224 | ||
206 | /// <summary> | 225 | /// <summary> |
207 | /// Callback invoked when the inventory is received from an async request to the inventory service | 226 | /// Callback invoked when the inventory is received from an async request to the inventory service |