Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public void AddTmpTask(WebTask task)
 {
     GetTempWorker().AddTask(task);
 }
Exemplo n.º 3
0
 public void AddTask(int id, WebTask task)
 {
     GetWorker(id).AddTask(task);
 }
Exemplo n.º 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);
        }