public FUTRequestFactory(FUTAccount account) { FUTAccount = account; _httpClient = new HttpClientEx(); _httpClient.AddCommonHeaders(); _cookies = new CookieContainer(); //load cookies from db //var futCookies = FUTAccountsDatabase.GetFUTCookiesByFUTAccount(FUTAccount); //if (futCookies != null) //{ // if(!string.IsNullOrEmpty(futCookies.FutWeb)) // { // _cookies = futCookies.FutWeb.DeserializeCookieContainer(); // } //} _httpClient.ClientHandler.CookieContainer = _cookies; RequestPerMinuteManager = new RequestPerMinuteManager(); RequestPerMinuteManagerSearch = new RequestPerMinuteManager(true); RequestCounter = 0; }