07 2017 档案
摘要:以前写抓取网页的代码喜欢用ReadToEnd,因为简单省事,后来发现,在爬取网页的时候,如果网速很慢,ReadToEnd超时的几率很大。使用Read改写后,超时几率大大减小,完整代码如下: /// <summary> /// HttpPost /// </summary> public static
阅读全文
摘要:写了一个Windows服务,通过C#模拟网站用户登录并爬取BUG列表查询有没有新的BUG,并提醒我 1、HttpUtil工具类,用于模拟用户登录以及爬取网页: using System; using System.Collections.Generic; using System.IO; using
阅读全文
摘要:服务端是CS程序,客户端(调用者)是BS程序 一、代码结构: 二、服务接口Contract和实体类Domain INoticeService: using Domain; using System; using System.Collections.Generic; using System.Lin
阅读全文
摘要:SQL: select * from PT_ORG_INFO START WITH id='102' CONNECT BY PRIOR id=par_id 连表递归查询SQL: select info.* from PT_CAMERA_INFO info join (select * from PT
阅读全文
摘要:代码: using NHibernate.Criterion; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; usi
阅读全文

浙公网安备 33010602011771号