Ejemplo n.º 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            WFNetLib.ADO.SQLServerOP.ConnectionString = "Data Source=.\\SQL2008;Initial Catalog=LCY_Server;Persist Security Info=True;User ID=sa;Password=1001001";
            KeyDataQueueDataDBOption.deleteAll();
            Thread t = new Thread(KeyDataWork.KeyDataWorkThread);

            t.Start();
        }
Ejemplo n.º 2
0
        void Application_Start(object sender, EventArgs e)
        {
            // 在应用程序启动时运行的代码
            //txtLogFolder = WFNetLib.aspNetFunc.GetRootPath();
            WFNetLib.ADO.SQLServerOP.ConnectionString = System.Web.Configuration.WebConfigurationManager.ConnectionStrings["ApplicationServices"].ToString();
            ESLQueueDataDBOption.deleteAll();
            bRun = true;
            Thread t = new Thread(ESLWork.ESLPass);

            t.Start();
            KeyDataQueueDataDBOption.deleteAll();
            Thread t1 = new Thread(KeyDataWork.KeyDataWorkThread);

            t1.Start();
            Thread t2 = new Thread(ClearHPassLog.ClearHPassLogThread);

            t2.Start();
            WFNetLib.Log.TextLog.AddTextLog("web Start", Global.txtLogFolder + "workLog.txt", true);
        }