diff options
author | UbitUmarov | 2016-08-13 05:22:29 +0100 |
---|---|---|
committer | UbitUmarov | 2016-08-13 05:22:29 +0100 |
commit | 7c1b2a5dde3b61dae4cca6bff7d2fe560be96fae (patch) | |
tree | 09a79ea66f619af6295e20b8c92b397cd90ebafc /OpenSim/Services/UserAccountService | |
parent | add a missing cast to ulong in RegionGridLocToHandle (mantis: 7994) (diff) | |
download | opensim-SC_OLD-7c1b2a5dde3b61dae4cca6bff7d2fe560be96fae.zip opensim-SC_OLD-7c1b2a5dde3b61dae4cca6bff7d2fe560be96fae.tar.gz opensim-SC_OLD-7c1b2a5dde3b61dae4cca6bff7d2fe560be96fae.tar.bz2 opensim-SC_OLD-7c1b2a5dde3b61dae4cca6bff7d2fe560be96fae.tar.xz |
add some wiring to have GetUserAccounts for multiple IDs on a single request to grid services. Unfinished, untested
Diffstat (limited to 'OpenSim/Services/UserAccountService')
-rw-r--r-- | OpenSim/Services/UserAccountService/UserAccountService.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Services/UserAccountService/UserAccountService.cs b/OpenSim/Services/UserAccountService/UserAccountService.cs index 6010f0c..fbe5e3b 100644 --- a/OpenSim/Services/UserAccountService/UserAccountService.cs +++ b/OpenSim/Services/UserAccountService/UserAccountService.cs | |||
@@ -265,6 +265,19 @@ namespace OpenSim.Services.UserAccountService | |||
265 | return MakeUserAccount(d[0]); | 265 | return MakeUserAccount(d[0]); |
266 | } | 266 | } |
267 | 267 | ||
268 | public List<UserAccount> GetUserAccounts(UUID scopeID, List<string> IDs, out bool suported) | ||
269 | { | ||
270 | suported = true; | ||
271 | List<UserAccount> accs = new List<UserAccount>(); | ||
272 | UUID uuid = UUID.Zero; | ||
273 | foreach(string id in IDs) | ||
274 | { | ||
275 | if (UUID.TryParse(id, out uuid) && uuid != UUID.Zero) | ||
276 | accs.Add(GetUserAccount(scopeID, uuid)); | ||
277 | } | ||
278 | return accs; | ||
279 | } | ||
280 | |||
268 | public void InvalidateCache(UUID userID) | 281 | public void InvalidateCache(UUID userID) |
269 | { | 282 | { |
270 | } | 283 | } |