예제 #1
0
        protected override Dictionary <string, object> DoGetServerStatistics()
        {
            Dictionary <string, object> retVal = new Dictionary <string, object>();

            XmlRpcStruct rsp = _client.GetServerInfo2();

            if (rsp != null)
            {
                IDictionaryEnumerator iter = rsp.GetEnumerator();
                while (iter.MoveNext())
                {
                    if (iter.Key != null)
                    {
                        if (retVal.ContainsKey(iter.Key.ToString()))
                        {
                            retVal[iter.Key.ToString()] = iter.Value;
                        }
                        else
                        {
                            retVal.Add(iter.Key.ToString(), iter.Value);
                        }
                    }
                }
            }

            return(retVal);
        }