Example #1
0
        private static void BuildMethodRequestChain(XmlNode callNode, BridgeMethodInfo method)
        {
            XmlNodeList requests = callNode.SelectNodes("request");

            foreach (XmlNode node in requests)
            {
                BridgeChainRequestInfo callInfo = new BridgeChainRequestInfo();
                callInfo.Name      = GetAttributeValue(node, "name", true);
                callInfo.BridgeUrl = GetAttributeValue(node, "bridgeUrl", true);
                callInfo.Method    = GetAttributeValue(node, "method", true);
                method.BridgeChainRequests.Add(callInfo);

                XmlNode inputNode = GetSingleNode(node, "input", false);
                if (inputNode == null)
                {
                    callInfo.Parameters = new Dictionary <string, BridgeParameterInfo>(0);
                }
                else
                {
                    callInfo.Parameters = BuildParams(inputNode);
                }
            }
        }
        private static void BuildMethodRequestChain(XmlNode callNode, BridgeMethodInfo method) {
            XmlNodeList requests = callNode.SelectNodes("request");
            foreach (XmlNode node in requests) {
                BridgeChainRequestInfo callInfo = new BridgeChainRequestInfo();
                callInfo.Name = GetAttributeValue(node, "name", true);
                callInfo.BridgeUrl = GetAttributeValue(node, "bridgeUrl", true);
                callInfo.Method = GetAttributeValue(node, "method", true);
                method.BridgeChainRequests.Add(callInfo);

                XmlNode inputNode = GetSingleNode(node, "input", false);
                if (inputNode == null) {
                    callInfo.Parameters = new Dictionary<string, BridgeParameterInfo>(0);
                }
                else {
                    callInfo.Parameters = BuildParams(inputNode);
                }

            }
        }