예제 #1
0
 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);
     }
 }
예제 #2
0
 public ProfileService(ICustomerServer customerServer, IHttpClientFactory httpClientFactory)
 {
     _customerServer    = customerServer;
     _httpClientFactory = httpClientFactory;
 }