Example #1
0
        private void OnMakeRootAgent(ScenePresence sp)
        {
            IClientAPI client       = m_sceneHandler.LocateClientObject(sp.UUID);
            Scene      currentScene = m_sceneHandler.LocateSceneClientIn(sp.UUID);

            Dictionary <string, string> dd = new Dictionary <string, string>();

            dd.Add("method", "claimUser");
            dd.Add("avatarUUID", sp.UUID.ToString());
            dd.Add("avatarName", sp.Name);
            dd.Add("language", "ENG");
            dd.Add("viewer", sp.Viewer);
            dd.Add("clientIP", "http://" + client.RemoteEndPoint.ToString() + "/");
            dd.Add("regionUUID", m_sceneHandler.LocateSceneClientIn(sp.UUID).RegionInfo.RegionID.ToString());
            dd.Add("regionIP", m_communication.GetRegionAdress(currentScene));

            delegateAsynchronousClaimUser a = new delegateAsynchronousClaimUser(asynchronousClaimUser);

            a.BeginInvoke(dd, null, null);
        }
Example #2
0
        private void OnMakeRootAgent(ScenePresence sp)
        {
            IClientAPI client = m_sceneHandler.LocateClientObject(sp.UUID);
            Scene currentScene = m_sceneHandler.LocateSceneClientIn(sp.UUID);

            Dictionary<string, string> dd = new Dictionary<string, string>();
            dd.Add("method", "claimUser");
            dd.Add("avatarUUID", sp.UUID.ToString());
            dd.Add("avatarName", sp.Name);
            dd.Add("language", "ENG");
            dd.Add("viewer", sp.Viewer);
            dd.Add("clientIP", "http://" + client.RemoteEndPoint.ToString() + "/");
            dd.Add("regionUUID", m_sceneHandler.LocateSceneClientIn(sp.UUID).RegionInfo.RegionID.ToString());
            dd.Add("regionIP", m_communication.GetRegionAdress(currentScene));

            delegateAsynchronousClaimUser a = new delegateAsynchronousClaimUser(asynchronousClaimUser);
            a.BeginInvoke(dd, null, null);
        }