Esempio n. 1
0
        protected HttpRequestMessage CreateHttpRequest(HttpMethod method, string relativeUrl, string accessToken)
        {
            var uri     = new Uri(relativeUrl, UriKind.Relative);
            var request = new HttpRequestMessage(method, uri);

            request.AddAuthenticationHeader(accessToken);
            return(request);
        }