Example #1
0
 public GetManufacturerCommandHandler(IMapper mapper, ICacheService cacheService,
                                      IOptions <CacheManufacturerSettings> manufacturerSettings, IManufacturerRepository manufacturerRepository)
 {
     _manufacturerSettings   = manufacturerSettings.Value;
     _manufacturerRepository = manufacturerRepository;
     _cacheService           = cacheService;
     _mapper = mapper;
 }
Example #2
0
 public ProductService(ICustomerRepository customerRepository, IMapper mapper, ICacheService cacheService,
                       IManufacturerRepository manufacturerRepository, IOptions <CacheManufacturerSettings> manufacturerSettings)
 {
     _customerRepository     = customerRepository;
     _mapper                 = mapper;
     _cacheService           = cacheService;
     _manufacturerRepository = manufacturerRepository;
     _manufacturerSettings   = manufacturerSettings.Value;
 }
 public CreateManufacturerCommandHandler(ISender sender, ICacheService cacheService, IMapper mapper,
                                         IManufacturerRepository manufacturerRepository, IOptions <CacheManufacturerSettings> manufacturerSettings)
 {
     _manufacturerSettings = manufacturerSettings.Value;
     _sender = sender;
     _manufacturerRepository = manufacturerRepository;
     _cacheService           = cacheService;
     _mapper = mapper;
 }