public static string GetUrlPreview(string url, string path)
 {
     WebPreview wp = new WebPreview();
     wp.url = url;
     wp.path = path;
     wp.isUrl = true;
     return wp.GetWebPreview();
 }
        private int _timeout = 120 * 1000; //设置线程超时时长

        #endregion Fields

        #region Methods

        public static string GetHtmlPreview(string html, string path)
        {
            WebPreview wp = new WebPreview();
            wp.html = html;
            wp.path = path;
            wp.isUrl = false;
            return wp.GetWebPreview();
        }
Beispiel #3
0
        public static string GetUrlPreview(string url, string path)
        {
            WebPreview wp = new WebPreview();

            wp.url   = url;
            wp.path  = path;
            wp.isUrl = true;
            return(wp.GetWebPreview());
        }
Beispiel #4
0
        public static string GetHtmlPreview(string html, string path)
        {
            WebPreview wp = new WebPreview();

            wp.html  = html;
            wp.path  = path;
            wp.isUrl = false;
            return(wp.GetWebPreview());
        }