public object GetBlockWebMetaInfo(BlockWebMetaInfoType type, string itemName) { List<object> result = peerManager.SendMessage(peerId, MsgCode.CallBlockWebMethod, "GetBlockWebMetaInfo", type, itemName); if (result == null) return null; return (result[0]); }
public object GetBlockWebMetaInfo(BlockWebMetaInfoType type, string itemName) { switch (type) { //case BlockWebMetaInfoType.GlobalConnectorKeys: return new List<string>((IEnumerable<string>)globalConnectors.Keys); //case BlockWebMetaInfoType.GlobalConnectorEndpoints: return globalConnectors[itemName].GetEndPointsDescription(); case BlockWebMetaInfoType.PeersInfo: { Dictionary<string, string> result = new Dictionary<string, string>(); foreach (string item in peers.Keys) { result.Add(item, peers[item].Address); } return result; } case BlockWebMetaInfoType.Platform: return platform; } return null; }