internal BlueClient(ILogger <BlueClient> logger, IHttpClientProducer httpClientProducer, IRequestSigner requestSigner) { _logger = logger; _httpClientProducer = httpClientProducer; _requestSigner = requestSigner; _serializer = new JsonSerializer(); }
internal BlueClient(ILogger <BlueClient> logger, IHttpClientProducer httpClientProducer, IRequestSigner requestSigner) { _logger = logger; _httpClientProducer = httpClientProducer; _requestSigner = requestSigner; _serializer = JsonSerializer.Create(new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore }); }
public BlueClientBuilder UseHttpClientFactory(IHttpClientFactory factory, string clientName) { _clientProducer = new HttpClientFactoryProducer(factory, clientName); return(this); }
public BlueClientBuilder UseHttpClient(HttpClient client) { _clientProducer = new ConstantHttpClientProducer(client); return(this); }
public BlueClientBuilder() { _clientProducer = new ConstantHttpClientProducer(new HttpClient()); }