public void RemoveRequestByUser(string url) { if (CurRequesting.httpInfo.m_srcUrl.Equals(url)) { CurRequesting.CancelDownload(); CurRequesting = null; isDowning = false; } RemoveRequest(url); }
public void AddRequest(string url, HttpBase httpData) { if (URLToHttpBase.ContainsKey(url)) { URLToHttpBase[url] = httpData; } else { URLToHttpBase.Add(url, httpData); } }
IEnumerator SendRequstFromList() { while (true) { if (!isDowning && URLToHttpBase.Count > 0) { List <string> urls = new List <string>(URLToHttpBase.Keys); AFLogger.d("请求URL为:" + urls[0]); CurRequesting = URLToHttpBase[urls[0]]; CurRequesting.StartWebRequest(); isDowning = true; } else { yield return(null); } } }
public void RemoveAndFinish(string url) { RemoveRequest(url); CurRequesting = null; isDowning = false; }