Example #1
0
 public HttpRetryPolicy(
     ILogger <HttpRetryPolicy> logger,
     IOptions <HouseOfferConfiguration> options)
 {
     _logger        = logger;
     _configuration = options.Value;
 }
Example #2
0
 public HouseOfferHttpClient(
     IHttpClientFactory httpClientFactory,
     IOptions <HouseOfferConfiguration> configuration)
 {
     _httpClient    = () => httpClientFactory.CreateClient("HouseOffer");
     _configuration = configuration.Value;
 }