Example #1
0
 public WXmpService(int siteid)
 {
     webClient.Encoding = Encoding.UTF8;
     unitOfWork = new UnitOfWork("ConnString");
     this.siteid = siteid;
     this.keywordDictionary = this.InitializationNodeKeyword();
 }
Example #2
0
 public ImgService(int siteid)
 {
     this.javaScriptSerializer = new JavaScriptSerializer();
     webClient.Encoding = Encoding.GetEncoding("GBK");
     unitOfWork = new UnitOfWork("ConnString");
     this.siteid = siteid;
     this.webSite = this.unitOfWork.WebSiteRepository.Find(c => c.Id == siteid);
 }
Example #3
0
 public BaiduTopService()
 {
     this.webClient.Encoding = Encoding.GetEncoding("GBK");
     unitOfWork = new UnitOfWork("wxmpConnString");
     this.siteid = siteid;
 }