예제 #1
0
        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);
        }
예제 #2
0
 public void AddTmpTask(WebTask task)
 {
     GetTempWorker().AddTask(task);
 }
예제 #3
0
 public void AddTask(int id, WebTask task)
 {
     GetWorker(id).AddTask(task);
 }
예제 #4
0
        public void WebRequestGet(string url, Action <bool, string> cb, int id = 0)
        {
            WebTask task = new WebTask(url, "GET", cb);

            GetWorker(id).AddTask(task);
        }