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(); }