コード例 #1
0
 public IndoorPriceCommandHandler(IPriceAppService priceAppService, ICacheManager cacheManager, ILogger logger, IBatchAskPriceViolationAgentRepository violationAgentRepository, IBatchCarRepository batchCarRepository, ICarViolationDivisionRepository carViolationDivisionRepository, IUserSysSettingRepository settingRepository)
 {
     _priceAppService                = priceAppService;
     _cacheManager                   = cacheManager;
     _logger                         = logger;
     _violationAgentRepository       = violationAgentRepository;
     _batchCarRepository             = batchCarRepository;
     _carViolationDivisionRepository = carViolationDivisionRepository;
     _settingRepository              = settingRepository;
 }
コード例 #2
0
 /// <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;
 }