Beispiel #1
0
        static void Main(string[] args)
        {
            var consumer = new KafkaConsumer <string, string>();

            consumer.Subscribe("my-topic-to-subscribe");

            var result = consumer.Consume();

            if (result != null)
            {
                consumer.CommitResult(result);
            }

            Console.WriteLine(result?.Message);
        }