La Métamorphose

This commit is contained in:
Marc-Eric Martel
2023-11-03 15:48:17 -04:00
commit 842045ec4f
361 changed files with 11132 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
using System;
using Confluent.Kafka;
class Program
{
static void Main(string[] args)
{
var config = new ProducerConfig
{
BootstrapServers = "localhost:9092"
};
using var producer = new ProducerBuilder<Null, string>(config).Build();
var topic = "test-topic";
var message = new Message<Null, string> { Value = "Hello, Kafka!" };
producer.Produce(topic, message, deliveryReport => {
Console.WriteLine(deliveryReport.Message.Value);
});
producer.Flush(new TimeSpan(0,0,30));
}
}