public KafkaUsingApp() { Endpoints.ConfigureKafka(); Endpoints.ListenToKafkaTopic("messages", ConsumerConfig); Endpoints.Publish(pub => pub.Message <ColorChosen>().ToKafkaTopic("messages", ProducerConfig)); Handlers.IncludeType <ColorHandler>(); Services.AddSingleton <ColorHistory>(); Extensions.UseMessageTrackingTestingSupport(); }
public FailureSender() { Endpoints.ConfigureKafka(); Endpoints.PublishAllMessages().ToKafkaTopic(Topic, FailureProducerConfig); }
public Receiver(string topic) { Endpoints.ConfigureKafka(); Endpoints.PublishAllMessages().ToKafkaTopic(Sender.ReplyTopic, ProducerConfig); Endpoints.ListenToKafkaTopic(topic, ConsumerConfig); }
public Sender() { Endpoints.ConfigureKafka(); Endpoints.PublishAllMessages().ToKafkaTopic(Topic, ProducerConfig); Endpoints.ListenToKafkaTopic(ReplyTopic, ConsumerConfig).UseForReplies(); }