Diff of /trunk/ModularRex/RexNetwork/RexClientViewBase.cs
Parent Directory
|
Revision Log
|
Patch
| revision 28, Wed Jan 7 07:20:35 2009 UTC | revision 39, Fri Jan 23 10:50:03 2009 UTC | |
|---|---|---|
| # | Line 181 | Line 181 |
| 181 | get { return m_rexAuthURL; } | get { return m_rexAuthURL; } |
| 182 | set | set |
| 183 | { | { |
| if (value.Contains("@")) | ||
| { | ||
| m_rexAuthURL = "http://" + value.Split('@')[1]; | ||
| } | ||
| else | ||
| { | ||
| 184 | m_rexAuthURL = value; | m_rexAuthURL = value; |
| 185 | } | |
| 186 | // Request Agent Properties Asynchronously | // Request Agent Properties Asynchronously |
| 187 | ThreadPool.QueueUserWorkItem(RequestProperties); | ThreadPool.QueueUserWorkItem(RequestProperties); |
| 188 | } | } |
| # | Line 436 | Line 430 |
| 430 | ||
| 431 | XmlRpcResponse authreply = req.Send("http://" + RexAuthURL, 9000); | XmlRpcResponse authreply = req.Send("http://" + RexAuthURL, 9000); |
| 432 | ||
| 433 | m_log.Info(authreply.ToString()); | //m_log.Info(authreply.ToString()); |
| 434 | if (!((Hashtable)authreply.Value).ContainsKey("error_type")) | if (!((Hashtable)authreply.Value).ContainsKey("error_type")) |
| 435 | { | { |
| 436 | string rexAsAddress = ((Hashtable)authreply.Value)["as_address"].ToString(); | string rexAsAddress = ((Hashtable)authreply.Value)["as_address"].ToString(); |
| 437 | string rexSkypeURL = ((Hashtable)authreply.Value)["skype_url"].ToString(); | //string rexSkypeURL = ((Hashtable)authreply.Value)["skype_url"].ToString(); |
| 438 | UUID userID = new UUID(((Hashtable) authreply.Value)["uuid"].ToString()); | UUID userID = new UUID(((Hashtable) authreply.Value)["uuid"].ToString()); |
| 439 | ||
| 440 | // Sanity check | // Sanity check |
| 441 | if (userID == AgentId) | if (userID == AgentId) |
| 442 | { | { |
| 443 | RexAvatarURL = rexAsAddress; | RexAvatarURL = rexAsAddress; |
| 444 | RexSkypeURL = rexSkypeURL; | //RexSkypeURL = rexSkypeURL; |
| 445 | } | } |
| 446 | } | } |
| 447 | else | else |
|
||||||||
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

