/// <summary> /// 开启一轮请求 /// </summary> public void ProcessNextOne() { if (lisObj.Count <= 0) { return; } NetImageProcess process = this.GetProcess(); if (process == null) { return; } process.StartLoadImage(lisObj[0]); lisObj.RemoveAt(0); }
private NetImageProcess GetProcess() { if (lisProcess.Count < this.maxRequestCount) { NetImageProcess netImageProcess = new NetImageProcess(); netImageProcess.SetMono(netImageMono); lisProcess.Add(netImageProcess); return(netImageProcess); } else { for (int i = 0; i < lisProcess.Count; i++) { if (lisProcess[i].GetIsProcess() == false) { return(lisProcess[i]); } } return(null); } }