public LoaderTask(LoaderContianer _contianer, LoadType _type, string _url) { contianer = _contianer; ID = Guid.NewGuid().ToString(); type = _type; url = _url; }
public LoaderTask(LoaderContianer _contianer, string _url, WWWForm _wform) { contianer = _contianer; ID = Guid.NewGuid().ToString(); type = LoadType.Post; url = _url; wform = _wform; }
public LoaderTask(LoaderContianer _contianer, string _url, byte[] _postdata, Dictionary <string, string> _header) { contianer = _contianer; ID = Guid.NewGuid().ToString(); type = LoadType.PostWithHeader; url = _url; postdata = _postdata; header = _header; }
public Request() { contianer = CacheManager.Get <LoaderContianer>(contianerKey); if (contianer == null) { int num = contianerReqNum; if (num <= 0) { num = 1; } contianer = new LoaderContianer(num); CacheManager.Insert <LoaderContianer>(contianerKey, contianer, true); } }
public Request() { contianer = SingletonFactory.Get <MomeryInter>().Get <LoaderContianer>(contianerKey.ToString()); if (contianer == null) { int num = LoaderContianerConst.getNum(contianerKey); if (num <= 0) { num = 1; } contianer = new LoaderContianer(num); SingletonFactory.Get <MomeryInter>().Insert <LoaderContianer>(contianerKey.ToString(), contianer); } }
protected override LoaderTask IniTask(LoaderContianer contianer) { LoaderTask task = null; if (local) { task = new LoaderTask(contianer, LoadType.LocalAB, name); } else { task = new LoaderTask(contianer, OutUri(name), null, header); } return(task); }
protected abstract LoaderTask IniTask(LoaderContianer contianer);
protected override LoaderTask IniTask(LoaderContianer contianer) { LoaderTask task = new LoaderTask(contianer, OutUri(name), null, header); return(task); }
protected override LoaderTask IniTask(LoaderContianer contianer) { LoaderTask task = new LoaderTask(contianer, LoadType.LocalAB, url); return(task); }
protected override LoaderTask IniTask(LoaderContianer contianer) { LoaderTask task = new LoaderTask(contianer, LoadType.Get, GetLocalServer()); return(task); }
protected override LoaderTask IniTask(LoaderContianer contianer) { LoaderTask task = new LoaderTask(contianer, path, null, new System.Collections.Generic.Dictionary <string, string>()); return(task); }
protected override LoaderTask IniTask(LoaderContianer contianer) { LoaderTask task = new LoaderTask(contianer, LoadType.StreamAssets, url); return(task); }