public Profiles.DIRECT.Utilities.DirectConfig GetDirectConfig()
        {
            XmlDocument vals = new XmlDocument();
            Profiles.DIRECT.Utilities.DirectConfig config = new DirectConfig();

            try
            {
                vals.Load(Root.Domain + "/DIRECT/Modules/DirectSearch/Config.xml");
            }
            catch (Exception e)
            {
                throw new Exception(e.Message);
            }

            config.PopulationType = vals.SelectSingleNode("directconfig/directpopulationtype").InnerText;
            config.Timeout = Convert.ToInt32(vals.SelectSingleNode("directconfig/querytimeout").InnerText);

            return config;
        }
Beispiel #2
0
        public Profiles.DIRECT.Utilities.DirectConfig GetDirectConfig()
        {
            XmlDocument vals = new XmlDocument();
            Profiles.DIRECT.Utilities.DirectConfig config = new DirectConfig();

            try
            {
                String Filepath = System.Web.HttpContext.Current.Server.MapPath("~/DIRECT/Modules/DirectSearch/Config.xml");
                vals.Load(Filepath);
            }
            catch (Exception e)
            {
                throw new Exception(e.Message);
            }

            config.PopulationType = vals.SelectSingleNode("directconfig/directpopulationtype").InnerText;
            config.Timeout = Convert.ToInt32(vals.SelectSingleNode("directconfig/querytimeout").InnerText);

            return config;
        }
Beispiel #3
0
        public Profiles.DIRECT.Utilities.DirectConfig GetDirectConfig()
        {
            XmlDocument vals = new XmlDocument();

            Profiles.DIRECT.Utilities.DirectConfig config = new DirectConfig();

            try
            {
                String Filepath = System.Web.HttpContext.Current.Server.MapPath("~/DIRECT/Modules/DirectSearch/Config.xml");
                vals.Load(Filepath);
            }
            catch (Exception e)
            {
                throw new Exception(e.Message);
            }

            config.PopulationType = vals.SelectSingleNode("directconfig/directpopulationtype").InnerText;
            config.Timeout        = Convert.ToInt32(vals.SelectSingleNode("directconfig/querytimeout").InnerText);

            return(config);
        }