internal RAStream(Baidu1 baidu1, Entry entry) { _baidu1 = baidu1; _entry = entry; for (int i = 0; i < 10; i++) { Start(); } }
static public Stream GetStream(this Baidu1 b, Entry e) { lock (Cache) { RAStream ret = null; if (Cache.ContainsKey(e)) { ret = Cache[e]; } if (ret == null) { ret = new RAStream(b, e); Cache.Add(e, ret); } ret.SetAlive(); return(ret); } }
public DownloadOneFileManager(Baidu1 baidu1, int threadCount) { _baidu1 = baidu1; _maxThread = threadCount; }
public DowbloadFileManager(Baidu1 baidu1, int threadCount) { _baidu1 = baidu1; _threadCount = threadCount; }