mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 20:55:43 +08:00
* 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
This commit is contained in:
@@ -104,36 +104,6 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Request the inventory data for the given user. This will occur asynchronously if running on a grid
|
||||
/// </summary>
|
||||
/// <param name="userID"></param>
|
||||
/// <param name="userInfo"></param>
|
||||
public void RequestInventoryForUser(UUID userID)
|
||||
{
|
||||
CachedUserInfo userInfo = GetUserDetails(userID);
|
||||
if (userInfo != null)
|
||||
{
|
||||
if (m_commsManager.SecureInventoryService != null)
|
||||
{
|
||||
m_commsManager.SecureInventoryService.RequestInventoryForUser(userID, userInfo.SessionID, userInfo.InventoryReceive);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_commsManager.InventoryService.RequestInventoryForUser(userID, userInfo.InventoryReceive);
|
||||
}
|
||||
//IInventoryServices invService = userInfo.GetInventoryService();
|
||||
//if (invService != null)
|
||||
//{
|
||||
// invService.RequestInventoryForUser(userID, userInfo.InventoryReceive);
|
||||
//}
|
||||
}
|
||||
else
|
||||
{
|
||||
m_log.ErrorFormat("[USER CACHE]: RequestInventoryForUser() - user profile for user {0} not found", userID);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get cached details of the given user. If the user isn't in cache then the user is requested from the
|
||||
/// profile service.
|
||||
|
||||
Reference in New Issue
Block a user