Example #1
0
 public InterFaceController(IConfiguration configuration, IApiResponseHandlerService apiResponseHandlerService,
                            IHttpClientFactory httpClientFactory, ILogger <InterFaceController> logger)
     : base(configuration, apiResponseHandlerService)
 {
     _configuration             = configuration;
     _apiResponseHandlerService = apiResponseHandlerService;
     _logger = logger;
     //通过HTTP工厂模式创建HTTPClient对象
     _tunzhouApiHttpClient = httpClientFactory.CreateClient(HttpClientConst.TunZhouApi_BaseAddress_CLIENT_NAME);
 }
Example #2
0
 public BaseController(IConfiguration configuration, IApiResponseHandlerService apiResponseHandlerService)
 {
     _configuration             = configuration;
     _apiResponseHandlerService = apiResponseHandlerService;
 }
Example #3
0
 public TestController(IConfiguration configuration, IApiResponseHandlerService apiResponseHandlerService)
     : base(configuration, apiResponseHandlerService)
 {
     _configuration             = configuration;
     _apiResponseHandlerService = apiResponseHandlerService;
 }