private static IContextEventProducer CreateEventProducer(ILogger logger) { var options = new EventProducerOptions { Brokers = new string[] { "kafka" } // TODO: get this from appsettings or so }; return(new EventProducer(options, GetMessageTopics(), logger)); }
private static IContextEventProducer CreateEventProducer(ILogger logger) { // TODO: get this from appsettings or so var options = new EventProducerOptions { Brokers = new string[] { "kafka" }, StatisticsIntervalMilliseconds = 60000 }; return(new EventProducer(options, new Dictionary <Type, string>(), logger)); }