Esempio n. 1
0
        public T GetReq <T> (string key) where T : HttpRequestData
        {
            if (https.ContainsKey(key) == false)
            {
                return(null);
            }

            HttpRequestTask task = (HttpRequestTask)https[key];

            return((T)task.req);
        }
Esempio n. 2
0
 public T GetReq <T> (string taskKey) where T : HttpRequestData
 {
     if (https.ContainsKey(taskKey))
     {
         HttpRequestTask task = (HttpRequestTask)https[taskKey];
         return((T)task.req);
     }
     else
     {
         return(null);
     }
 }
Esempio n. 3
0
 public ParallelHttp AddHttp(string key, HttpRequestTask req)
 {
     https.Add(key, req);
     return(this);
 }