示例#1
0
        public static void RunDirect()
        {
            try
            {
                var robots = ServiceLocator.ReadWebRobotsFromConfiguration();

                foreach (IWebRobot robot in robots)
                {
                    WebRobotProcess.Run(new WebRobotProcess {
                        WebRobot = robot
                    });
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
                System.Diagnostics.Debug.WriteLine(ex.ToString());
                Log.Error(ex);
            }
        }
 public static void Run(WebRobotProcess process)
 {
     process.Run();
 }