refactor: eliminate method in UserProfileCacheService

0.6.0-stable
Justin Clarke Casey 2008-04-11 16:13:33 +00:00
parent b3892096f3
commit 9a7717743b
3 changed files with 16 additions and 17 deletions

View File

@ -79,12 +79,21 @@ namespace OpenSim.Framework.Communications.Cache
}
}
public void UpdateUserInventory(LLUUID userID)
/// <summary>
/// Request the inventory data for the given user. This will occur asynchronous if running on a grid
/// </summary>
/// <param name="userID"></param>
/// <param name="userInfo"></param>
public void RequestInventoryForUser(LLUUID userID)
{
CachedUserInfo userInfo = GetUserDetails(userID);
if (userInfo != null)
{
RequestInventoryForUser(userID, userInfo);
m_parent.InventoryService.RequestInventoryForUser(userID, userInfo.FolderReceive, userInfo.ItemReceive);
}
else
{
m_log.ErrorFormat("[USER CACHE]: RequestInventoryForUser() - user profile for user {0} not found", userID);
}
}
@ -408,15 +417,5 @@ namespace OpenSim.Framework.Communications.Cache
}
}
}
/// <summary>
/// Request the inventory data for the given user.
/// </summary>
/// <param name="userID"></param>
/// <param name="userInfo"></param>
private void RequestInventoryForUser(LLUUID userID, CachedUserInfo userInfo)
{
m_parent.InventoryService.RequestInventoryForUser(userID, userInfo.FolderReceive, userInfo.ItemReceive);
}
}
}

View File

@ -550,7 +550,7 @@ namespace OpenSim.Region.Environment.Scenes
m_physicsActor.Flying = isFlying;
m_scene.SwapRootAgentCount(false);
m_scene.CommsManager.UserProfileCacheService.UpdateUserInventory(m_uuid);
m_scene.CommsManager.UserProfileCacheService.RequestInventoryForUser(m_uuid);
m_scene.AddCapsHandler(m_uuid);
//if (!m_gotAllObjectsInScene)
//{