builder.Services.AddKafkaProducer<string, ReactiveInstance>(options =>
{
options.Topic = "base_";
options.BootstrapServers = "localhost:9092,localhost:9093,localhost:9094";
});
private readonly IKafkaBus<string, ReactiveInstance> _bus;
await _bus.PublishAsync(Key, Body);
and ConsumerHandler
builder.Services.AddKafkaConsumer<string, ReactiveInstance, ReactiveHandler>
(options =>
{
options.Topic = "base_";
options.BootstrapServers = "localhost:9092,localhost:9093,localhost:9094";
options.GroupId = "base_group";
});
public class ReactiveHandler : IConsumerHandler<string, ReactiveInstance>