protected virtual IHttpWebRequestWrapper GetRequestWrapper(string endpoint, int timeout, Dictionary<string, string> headers) { IHttpWebRequestWrapper request = new HttpWebRequestWrapper(endpoint) { Timeout = timeout }; if (headers != null && headers.Count > 0) { foreach (KeyValuePair<string, string> header in headers) { request.AddHeader(header.Key, header.Value); } } return request; }