예제 #1
0
 public SendCodeHandler(AppDbContext identityDbContext, IOptions <ApplicationOptions> options, UtilsService utils, IMessageProducerService messageProducer)
 {
     _identityDbContext = identityDbContext;
     _utils             = utils;
     _messageProducer   = messageProducer;
     _options           = options?.Value ?? throw new NullReferenceException(nameof(ApplicationOptions));
 }
 public BookUpsertSubscriberService(IConnection connection, IBookRepository bookRepository,
                                    IFileService fileService, IPdfParser pdfParser, IMessageProducerService messageProducerService) : base(connection)
 {
     _bookRepository         = bookRepository;
     _fileService            = fileService;
     _pdfParser              = pdfParser;
     _messageProducerService = messageProducerService;
 }
예제 #3
0
 public Worker(IMessageConsumerService consumerService, IMessageProducerService producerService)
 {
     _consumerService = consumerService;
     _producerService = producerService;
 }
예제 #4
0
 public UpsertCommandHandler(IMapper mapper, IMessageProducerService bookUpsertProducerService)
 {
     _mapper = mapper;
     _bookUpsertProducerService = bookUpsertProducerService;
 }