コード例 #1
0
 public GetManufacturerCommandHandler(IMapper mapper, ICacheService cacheService,
                                      IOptions <CacheManufacturerSettings> manufacturerSettings, IManufacturerRepository manufacturerRepository)
 {
     _manufacturerSettings   = manufacturerSettings.Value;
     _manufacturerRepository = manufacturerRepository;
     _cacheService           = cacheService;
     _mapper = mapper;
 }
コード例 #2
0
ファイル: ProductService.cs プロジェクト: yevhenip/Warehouse
 public ProductService(ICustomerRepository customerRepository, IMapper mapper, ICacheService cacheService,
                       IManufacturerRepository manufacturerRepository, IOptions <CacheManufacturerSettings> manufacturerSettings)
 {
     _customerRepository     = customerRepository;
     _mapper                 = mapper;
     _cacheService           = cacheService;
     _manufacturerRepository = manufacturerRepository;
     _manufacturerSettings   = manufacturerSettings.Value;
 }
コード例 #3
0
 public CreateManufacturerCommandHandler(ISender sender, ICacheService cacheService, IMapper mapper,
                                         IManufacturerRepository manufacturerRepository, IOptions <CacheManufacturerSettings> manufacturerSettings)
 {
     _manufacturerSettings = manufacturerSettings.Value;
     _sender = sender;
     _manufacturerRepository = manufacturerRepository;
     _cacheService           = cacheService;
     _mapper = mapper;
 }