public GuetSubViewModel(HttpRequestConfig config, SitesProvider provider, ILogable logger, string fileName) : base(fileName) { requester = new Requester(config); //GuetModelProvider CurrentPage = provider.getSiteModel("Bkjw")?.getWebPageModel(DefaultKey.SelectCourse); this.logger = logger; }
public GuetViewModel() { //GuetModelProvider guetModelProvider = new SitesProvider(new SitesDataProvider("GuetSample.Resources.Data")); guetBkjw = guetModelProvider.getSiteModel("Bkjw"); if (guetBkjw != null) { SelectPage = guetBkjw.getWebPageModel(DefaultKey.SelectCourse); //HttpRequestConfig Encoding encoding = Encoding.GetEncoding(guetBkjw.EncodingName); httpRequestConfig = new HttpRequestConfig(encoding); httpRequestConfig.HoleCookieContainer = HttpControlCenter.CommonCookieContainer; //AsyncHttpRequestProvider requester = new Requester(httpRequestConfig); } consoleBuilder = new StringBuilder(); }