Example #1
0
 public void SetTask(TaskSpider taskSpider, Action<IWebElement, Dictionary<string, string>> GetResult)
 {
     queueNumber++;
     taskSpider.TaskItem.Instance.GetResult = GetResult;
     TaskQueue.Enqueue(taskSpider.TaskItem);
     TaskRun();
 }
Example #2
0
        public void SetTask(TaskSpider taskSpider, Func<IWebElement, Dictionary<string, string>, WebDriverWrapper, Task> GetResult)
        {
            queueNumber++;
            taskSpider.TaskItem.Instance.GetResultWithTask = GetResult;

            TaskQueue.Enqueue(taskSpider.TaskItem);
            TaskRun();
        }
Example #3
0
 public TaskSpider(string url, Dictionary <string, string> State, TaskSpider subtask = null)
 {
     TaskItem = new TaskWrapper <TaskItem>(new TaskBoard.TaskItem
     {
         Url          = url,
         Cookie       = cookie,
         ProxyAddress = proxy_address,
         ProxyPort    = prox_port,
         State        = State
     });
     SubTask = subtask;
 }
Example #4
0
 public void SetTask(TaskSpider task)
 {
     queueNumber++;
     TaskQueue.Enqueue(task.TaskItem);
     TaskRun();
 }