Kafka Producer with MassTransit - IBusInstance has not been registered
问题 I'm trying to build a Kafka consumer using MassTransit I have this piece of code var services = new ServiceCollection(); services.AddMassTransit(x => { x.AddRider(rider => { rider.AddProducer<string, Request>("request", m => m.Message.RequestId); rider.UsingKafka((context, k) => { k.Host("localhost:9092"); }); }); }); var provider = services.BuildServiceProvider(); var producer = provider.GetRequiredService<ITopicProducer<Request>>(); await producer.Produce(new Request() { RequestId = "abc123