add some wiring to have GetUserAccounts for multiple IDs on a single request to grid services. Unfinished, untested

This commit is contained in:
UbitUmarov
2016-08-13 05:22:29 +01:00
parent b64f25e631
commit 7c1b2a5dde
7 changed files with 139 additions and 0 deletions

View File

@@ -265,6 +265,19 @@ namespace OpenSim.Services.UserAccountService
return MakeUserAccount(d[0]);
}
public List<UserAccount> GetUserAccounts(UUID scopeID, List<string> IDs, out bool suported)
{
suported = true;
List<UserAccount> accs = new List<UserAccount>();
UUID uuid = UUID.Zero;
foreach(string id in IDs)
{
if (UUID.TryParse(id, out uuid) && uuid != UUID.Zero)
accs.Add(GetUserAccount(scopeID, uuid));
}
return accs;
}
public void InvalidateCache(UUID userID)
{
}