OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs
/// <summary>
/// Look up the given user id to check whether it's one that is valid for this grid.
/// </summary>
/// <param name="scene"></param>
/// <param name="uuid"></param>
/// <returns></returns>
Look up the given user id to check whether it's one that is valid for this grid.
Look up the given user id to check whether it ' s one that is valid for this grid .
private bool ResolveUserUuid(Scene scene, UUID uuid)
        {
            lock (m_validUserUuids)
            {
                if (!m_validUserUuids.ContainsKey(uuid))
                {
                    UserAccount account = scene.UserAccountService.GetUserAccount(scene.RegionInfo.ScopeID, uuid);
                    m_validUserUuids.Add(uuid, account != null);
                }
                return m_validUserUuids[uuid];
            }
        }
private bool ResolveUserUuid ( Scene scene , UUID uuid ) { lock ( m_validUserUuids ) { if ( ! m_validUserUuids . ContainsKey ( uuid ) ) { UserAccount account = scene . UserAccountService . GetUserAccount ( scene . RegionInfo . ScopeID , uuid ) ; m_validUserUuids . Add ( uuid , account != null ) ; } return m_validUserUuids [ uuid ] ; } }
Look up the given user id to check whether it's one that is valid for this grid.
Look up the given user id to check whether it ' s one that is valid for this grid .
// Note: we call GetUserAccount() inside the lock because this UserID is likely // to occur many times, and we only want to query the users service once.
None
scene
Scene
None
uuid
UUID
None