public KafkaConsumer(ILogger <KafkaConsumer> logger) { _logger = logger; _consumer = KafkaUtils.CreateConsumer("localhost:9092", new List <string> { "orderrequests" }); }
public KafkaProducer(ILogger <KafkaProducer> logger) { _logger = logger; _producer = KafkaUtils.CreateProducer("localhost:9092"); }