private XDocument GetResultDocument(Dictionary <string, string> parameters, string method, ResultBase resultBase) { HttpWebRequest httpWebRequest = BuildRequest(BASE_URL, method, parameters); WebResponse response = default(WebResponse); try { response = httpWebRequest.GetResponse(); } catch (TimeoutException e) { throw new TimeoutException("Timeout delivery uncertain"); } XDocument resultDocument = XDocument.Load(response.GetResponseStream()); ResultParser.ParseResultBase(resultDocument, resultBase); return(resultDocument); }