public ActionResult VerifyLogin(string username, string password, string language, string db) { try { atriumBE.Servers servers = new atriumBE.Servers(); servers.ReadXml(Server.MapPath("~") + "\\serverlist.xml"); Servers.ServerRow sr = servers.Server.FindByserverName(db); AtriumApp app = new AtriumApp(username, password, language, sr, password); //if(this.HttpContext.Cache["ACCONFIG"]==null) //{ // app.AtMng.acMng.LoadAllConfigInfo(); // app.AtMng.acMng.DB.WriteXml("test.xml"); // this.HttpContext.Cache.Insert("ACCONFIG", "LOADED"); //} //else //{ // app.AtMng.acMng.DB.ReadXml("test.xml"); //} app.AtMng.acMng.LoadAllConfigInfo(); app.AtMng.LoadDDInfo(); this.Session["Atmng"] = app.AtMng; return(RedirectToAction("Index", "Search")); } catch (Exception x) { return(RedirectToAction("LoginFailed")); } }
private void StartProxy(Servers.ServerRow server, string user, string fwpwd) { ProxyConfig pxc = new ProxyConfig(); pxc.serverR = server; pxc.user = user; pxc.password = fwpwd; myProxy = new Proxy(pxc); myProxyThread = new System.Threading.Thread(myProxy.Start); myProxyThread.Start(); }