private void processing(ExecuteInfo info)
        {
            StatusClient client = new StatusClient();
            info.Message = string.Format("start with agent={0} state={1}", info.AgentId, info.Message);
            client.Status(info);

            for (int i = 0; i < 99000000; i++)
            {
                if (i % 10000000 == 0)
                {
                    System.Threading.Thread.Sleep(100);
                    //info.Message = i.ToString() ;
                    //client.Status(info);

                }

            }
            //info.Message = string.Format("end with agent={0} state={1}", info.AgentId, info.Message);
            //client.Status(info);

            info.Message = "Done";
            client.Status(info);

            client.Close();
        }
Exemple #2
0
 public static void Next(ExecuteInfo info)
 {
     AgentClientManager.UpdateAgentPriority(info.AgentId);
     SetStatusDone(info.ProdId, info.StateId);
     Next(info.ProdId);
 }
 public void TestMethod(ExecuteInfo executeInfo)
 {
     //new Task(() => { processing(); }).Start();
     processing(executeInfo);
 }