public PriceAppService(IOptionsSnapshot <ApiUrlConfig> apiConfig, HttpClientHelper httpClientHelper, ICacheManager cacheManager, IRepository <BatchCar, string> batchCarRepository, IRepository <BatchInfo, string> batchInfoRepository, IBus bus) { _apiConfig = apiConfig.Value; _httpClientHelper = httpClientHelper; _batchCarRepository = batchCarRepository; _batchInfoRepository = batchInfoRepository; _bus = bus; _cacheManager = cacheManager; }
static void Main(string[] args) { Console.WriteLine("Init Api Url"); ApiUrlConfig.ChangeBaseUrl("http://codebim.cn:4242/"); Test test = new Test(); // test.Put(); test.histogram(); Console.ReadKey(); }
/// <summary> /// 构造函数 /// </summary> /// <param name="batchCarRepository"></param> /// <param name="userServices"></param> /// <param name="batchInfoRepository"></param> /// <param name="violationRepository"></param> /// <param name="logger"></param> /// <param name="objectMapper"></param> /// <param name="env"></param> /// <param name="apiUrlConfig"></param> /// <param name="httpClientHelper"></param> public BatchCarViolationService(IBatchCarRepository batchCarRepository, IUserServices userServices, IBatchInfoRepository batchInfoRepository, IBatchAskPriceViolationAgentRepository violationRepository, ILogger logger, IObjectMapper objectMapper, IHostingEnvironment env, IOptionsSnapshot <ApiUrlConfig> apiUrlConfig, HttpClientHelper httpClientHelper) { _batchCarRepository = batchCarRepository; _objectMapper = objectMapper; _logger = logger; _userServices = userServices; _violationRepository = violationRepository; _batchInfoRepository = batchInfoRepository; _apiUrlConfig = apiUrlConfig.Value; _httpClientHelper = httpClientHelper; _env = env; }
/// <summary> /// 构造函数 /// </summary> /// <param name="apiConfig"></param> /// <param name="httpClientHelper"></param> public ViolationQueryService(IOptionsSnapshot <ApiUrlConfig> apiConfig, HttpClientHelper httpClientHelper) { _apiConfig = apiConfig.Value; _httpClientHelper = httpClientHelper; }