Example #1
0
File: Agent.cs Project: diva/Grider
 public static void SetUserAuth(UserAuthClient uclient)
 {
     UserAuth = uclient;
 }
Example #2
0
        void CreateAgentCircuitData(Hashtable hash, string seedcap)
        {
            Hashtable appearance = null;

            Console.WriteLine(" Seed Cap = " + seedcap);
            // http://127.0.0.1:9000/CAPS/b8455b97-411d-49cb-af6b-f03435f46e9a0000/
            // ==> b8455b97-411d-49cb-af6b-f03435f46e9a
            int length = seedcap.Length;
            if (seedcap.EndsWith("/"))
                seedcap = seedcap.Remove(length - 1);
            seedcap = seedcap.Substring(length - 41, 36);
            Console.WriteLine(" Seed Cap = " + seedcap);
            if (hash["appearance"] != null)
            {
                Console.WriteLine("[GRID]: Got appearance from user server");
                appearance = (Hashtable)hash["appearance"];
            }
            else
            {
                Console.WriteLine("[GRID]: Did not get appearance from user server");
            }

            Agent.SetAgentCircuitData(hash, appearance, seedcap);

            UserAuth = new UserAuthClient(Agent.agentCircuitData.AgentID, proxy.remoteLoginURI, Agent.AuthToken);

            UserInventory = new InventoryClient(proxy, Agent.agentCircuitData.AgentID, UserAuth.GetNewKey(), Agent.InventoryServerURL, Agent.AssetServerURL, Agent.AssetServerSendKey);

            Agent.SetUserAuth(UserAuth);

            ProcessUserInventory(hash);
        }