public void OpenRequest(int id, string url, string method, string head, string body = null, string contentType = null, int timeOut = 10000, OnTaskDone cb = null) { WebTask task = new WebTask(url, method, head, body, contentType, timeOut, cb); GetWorker(id).AddTask(task); }
public void AddTmpTask(WebTask task) { GetTempWorker().AddTask(task); }
public void AddTask(int id, WebTask task) { GetWorker(id).AddTask(task); }
public void WebRequestGet(string url, Action <bool, string> cb, int id = 0) { WebTask task = new WebTask(url, "GET", cb); GetWorker(id).AddTask(task); }