示例#1
0
        public static RapideDdl_HeaderPage Load(string url, HttpRequestParameters_v1 requestParameters = null, bool reload = false, bool loadImage = false)
        {
            pb.Web.v1.RequestFromWeb_v2 request = new pb.Web.v1.RequestFromWeb_v2(url, requestParameters, reload, loadImage);
            //return _load.Load(request);
            RapideDdl_HeaderPage headerPage = _load.Load(request);

            if (loadImage)
            {
                foreach (var postHeader in headerPage.postHeaders)
                {
                    pb.old.Http_v2.LoadImageFromWeb(postHeader.images);
                }
            }
            return(headerPage);
        }
示例#2
0
        public static TelechargementPlus_PostDetail Load(string url, HttpRequestParameters_v1 requestParameters = null, bool reload = false, bool loadImage = false)
        {
            //Trace.WriteLine("TelechargementPlus_LoadDetail.Load  \"{0}\"", url);
            if (requestParameters == null)
            {
                requestParameters = new HttpRequestParameters_v1();
            }
            requestParameters.encoding = Encoding.UTF8;
            //RequestFromWeb request = new RequestFromWeb(url, requestParameters, reload, loadImage);
            pb.Web.v1.RequestFromWeb_v2 request = new pb.Web.v1.RequestFromWeb_v2(url, requestParameters, reload, false);
            //WebDataRequest<TelechargementPlus_PostDetail> request = new WebDataRequest<TelechargementPlus_PostDetail>(url, GetPostDetailKey(url), requestParameters, reload, loadImage);
            TelechargementPlus_PostDetail postDetail = _load.Load(request, GetPostDetailKey(url));

            if (loadImage)
            {
                pb.old.Http_v2.LoadImageFromWeb(postDetail.images);
            }
            return(postDetail);
        }
示例#3
0
        // bool desactivateDocumentStore = false
        public static RapideDdl_PostDetail Load(string url, HttpRequestParameters_v1 requestParameters = null, bool reload = false, bool loadImage = false, bool refreshDocumentStore = false)
        {
            //Trace.WriteLine("RapideDdl_LoadDetail.Load  \"{0}\"", url);
            if (requestParameters == null)
            {
                requestParameters = new HttpRequestParameters_v1();
            }
            requestParameters.encoding = Encoding.UTF8;
            pb.Web.v1.RequestFromWeb_v2 request = new pb.Web.v1.RequestFromWeb_v2(url, requestParameters, reload, false);
            //_load.DesactivateDocumentStore = desactivateDocumentStore;
            RapideDdl_PostDetail postDetail = _load.Load(request, GetPostDetailKey(url), refreshDocumentStore);

            //_load.DesactivateDocumentStore = false;
            if (loadImage)
            {
                pb.old.Http_v2.LoadImageFromWeb(postDetail.images);
            }
            return(postDetail);
        }
示例#4
0
 public static ZoneEbooks_HeaderPage Load(string url, HttpRequestParameters_v1 requestParameters = null, bool reload = false, bool loadImage = false)
 {
     pb.Web.v1.RequestFromWeb_v2 request = new pb.Web.v1.RequestFromWeb_v2(url, requestParameters, reload, loadImage);
     return(_load.Load(request));
 }