/// <summary>
 /// Create a new client
 /// </summary>
 /// <param name="apiKey">Key for calls to the API</param>
 /// <param name="clientFactory">HTTP client provider to use</param>
 public TenorClient(string apiKey, IHttpClientFactory clientFactory)
 {
     config = new TenorConfiguration {
         ApiKey = apiKey
     };
     client = new ApiClient(ConfigureHttpClient(clientFactory.CreateClient()));
 }
 /// <summary>
 /// Create a new client
 /// </summary>
 /// <param name="apiKey">Key for calls to the API</param>
 /// <param name="httpClient">Existing HTTP client to use</param>
 public TenorClient(string apiKey, HttpClient httpClient)
 {
     config = new TenorConfiguration {
         ApiKey = apiKey
     };
     client = new ApiClient(ConfigureHttpClient(httpClient));
 }
 /// <summary>
 /// Create a new client
 /// </summary>
 /// <param name="config">Configuration settings to use for client</param>
 /// <param name="clientFactory">HTTP client provider to use</param>
 public TenorClient(TenorConfiguration config, IHttpClientFactory clientFactory)
 {
     this.config = config;
     client      = new ApiClient(ConfigureHttpClient(clientFactory.CreateClient()));
 }
 /// <summary>
 /// Create a new client
 /// </summary>
 /// <param name="config">Configuration settings to use for client</param>
 /// <param name="httpClient">Existing HTTP client to use</param>
 public TenorClient(TenorConfiguration config, HttpClient httpClient)
 {
     this.config = config;
     client      = new ApiClient(ConfigureHttpClient(httpClient));
 }