Exemple #1
0
 public OrderService(IConfiguration config,
                     IHttpContextAccessor httpContextAccesor,
                     IHttpClient httpClient, ILoggerFactory logger)
 {
     _remoteServiceBaseUrl = $"{config["OrderUrl"]}/api/orders";
     _config             = config;
     _httpContextAccesor = httpContextAccesor;
     _apiClient          = httpClient;
     _logger             = logger.CreateLogger <OrderService>();
 }