Esempio n. 1
0
        private void _LoadFixSettings(XmlDocument settingsDocument)
        {
            XmlNode fixSettingsNode = settingsDocument.GetElementsByTagName("Fix").Item(0);

            if (fixSettingsNode != null)
            {
                foreach (XmlNode node in fixSettingsNode)
                {
                    switch (node.Name.ToUpper())
                    {
                    case "AUTOCONNECT":
                        AutoConnectFixSessions = XmlTools.ResolveBooleanValue(node.InnerText.Trim());
                        break;

                    case "AUTOCONNECTCLIENTS":
                        AutoConnectClientFixSessions = XmlTools.ResolveBooleanValue(node.InnerText.Trim());
                        break;
                    }
                }
            }
        }
        private static string s_PrepQuery(string rawQuery, Dictionary <string, string> valueMap)
        {
            string outputQry = XmlTools.ResolveOperators(rawQuery);

            return(valueMap.Aggregate(outputQry, (current, data) => current.Replace(data.Key, data.Value)));
        }