public ExchangeRatesReaderService(
     IServiceScopeFactory serviceScopeFactory, IConfiguration appConfig,
     IEventBusProducer eventBusProducer, ApiSettings apiSettings)
 {
     m_ServiceScopeFactory = serviceScopeFactory ?? throw new ArgumentException(nameof(serviceScopeFactory));
     m_EventBusProducer    = eventBusProducer ?? throw new ArgumentException(nameof(eventBusProducer));
     m_ApiSettings         = apiSettings ?? throw new ArgumentException(nameof(apiSettings));
 }
Beispiel #2
0
 public CartController(
     IShoppingCartRepository shoppingCartRepository,
     IMapper mapper,
     IEventBusProducer <ShoppingCartCheckoutEvent> eventBusProducer)
 {
     _shoppingCartRepository = shoppingCartRepository;
     _mapper           = mapper;
     _eventBusProducer = eventBusProducer;
 }
Beispiel #3
0
 public HostedProducerService(IOptions <KafkaConfig> kafkaConfig, ILogger <HostedProducerService> logger, IEventBusProducer eventBusProducer)
 {
     _kafkaConfig      = kafkaConfig.Value;
     _logger           = logger;
     _eventBusProducer = eventBusProducer;
 }