public Sender(string topic) { Endpoints.ConfigurePulsar(new PulsarClientBuilder() .ServiceUrl(new Uri(Server))); Endpoints.PublishAllMessages().ToPulsarTopic(new ProducerOptions(topic)); Endpoints.ListenToPulsarTopic(Guid.NewGuid().ToString(), topic + "-reply").UseForReplies(); }
public Receiver(string topic) { Endpoints.ConfigurePulsar(new PulsarClientBuilder().ServiceUrl(new Uri(Server))); Endpoints.PublishAllMessages().ToPulsarTopic(topic + "-reply"); Endpoints.ListenToPulsarTopic(Guid.NewGuid().ToString(), topic); }