public CustomerController(ICustomerServer customerServer, IConfiguration configuration) { try { _log = LogManager.GetLogger(typeof(CustomerController)); _customerServer = customerServer; _configuration = configuration; _redis = new RedisHandler(); _result = new ResultObject(); } catch (Exception ex) { _log.Error("CustomerController method error:" + ex); } }
public ProfileService(ICustomerServer customerServer, IHttpClientFactory httpClientFactory) { _customerServer = customerServer; _httpClientFactory = httpClientFactory; }