示例#1
0
 public DeleteManufacturerCommandHandler(ISender sender, IManufacturerRepository manufacturerRepository,
                                         ICacheService cacheService)
 {
     _sender = sender;
     _manufacturerRepository = manufacturerRepository;
     _cacheService           = cacheService;
 }
 public DeleteCustomerCommandHandler(ICacheService cacheService, ISender sender,
                                     ICustomerRepository customerRepository)
 {
     _cacheService       = cacheService;
     _customerRepository = customerRepository;
     _sender             = sender;
 }
示例#3
0
 public DeleteUserCommandHandler(ISender sender, ICacheService cacheService, IUserRepository userRepository,
                                 IRefreshTokenRepository tokenRepository)
 {
     _sender          = sender;
     _cacheService    = cacheService;
     _userRepository  = userRepository;
     _tokenRepository = tokenRepository;
 }
 public CreateCustomerCommandHandler(IMapper mapper, ISender sender, ICacheService cacheService,
                                     ICustomerRepository customerRepository, IOptions <CacheCustomerSettings> customerSettings)
 {
     _mapper             = mapper;
     _cacheService       = cacheService;
     _customerRepository = customerRepository;
     _sender             = sender;
     _customerSettings   = customerSettings.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;
 }
 public UpdateProductCommandHandler(IMapper mapper, ISender sender, ICacheService cacheService,
                                    IProductRepository productRepository, IProductService productService,
                                    IOptions <CacheProductSettings> productSettings)
 {
     _mapper            = mapper;
     _sender            = sender;
     _cacheService      = cacheService;
     _productRepository = productRepository;
     _productService    = productService;
     _productSettings   = productSettings.Value;
 }
示例#7
0
 public UpdateUserCommandHandler(IMapper mapper, ISender sender, ICacheService cacheService,
                                 IOptions <CacheUserSettings> userSettings, IUserRepository userRepository,
                                 IRefreshTokenRepository tokenRepository)
 {
     _mapper          = mapper;
     _sender          = sender;
     _cacheService    = cacheService;
     _userRepository  = userRepository;
     _tokenRepository = tokenRepository;
     _userSettings    = userSettings.Value;
 }