Esempio n. 1
0
        public virtual HttpWebRequest GetQueryWebRequest(string url, HttpMethod httpMethod, IEnumerable <IOAuthQueryParameter> headers = null)
        {
            if (headers == null)
            {
                headers = _oAuthWebRequestGenerator.GenerateParameters(_credentialsAccessor.CurrentThreadCredentials);
            }

            return(_oAuthWebRequestGenerator.GenerateWebRequest(url, httpMethod, headers));
        }
Esempio n. 2
0
 private HttpWebRequest GetQueryWebRequestInternal(string url, HttpMethod httpMethod, IEnumerable <IOAuthQueryParameter> headers = null)
 {
     return(_webRequestGenerator.GenerateWebRequest(url, httpMethod, headers));
 }