public HttpClientManager(
            IOptions <HttpClientManagerOptions> options,
            HttpClient httpClient
            )
        {
            this.options    = options.Value;
            this.httpClient = httpClient;

            // Authentification
            var auth = new AuthenticationHeaderValue(
                "Basic",
                Convert.ToBase64String(Encoding.ASCII.GetBytes($"{options.Value.UserName}:{options.Value.Password}"))
                );

            httpClient.DefaultRequestHeaders.Authorization = auth;
        }
 public HttpRequestMessageFactory(
     IOptions <HttpClientManagerOptions> options
     )
 {
     this.options = options.Value;
 }