Exemplo n.º 1
0
 public AuthorizationHeaderAuthenticatedHttpMessageHandler(
     AuthorizationHeaderAuthenticatedHttpClientOptions options,
     HttpMessageHandler innerHandler) : this(options)
 {
     InnerHandler = innerHandler;
 }
        public static HttpClient GetClient(AuthorizationHeaderAuthenticatedHttpClientOptions options)
        {
            var msgHandler = new AuthorizationHeaderAuthenticatedHttpMessageHandler(options);

            return(new HttpClient(msgHandler));
        }
Exemplo n.º 3
0
 public AuthorizationHeaderAuthenticatedHttpMessageHandler(AuthorizationHeaderAuthenticatedHttpClientOptions options)
 {
     _authorizationHeader = new AuthenticationHeaderValue(options.Value);
 }