コード例 #1
0
 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();
 }
コード例 #2
0
 public Receiver(string topic)
 {
     Endpoints.ConfigurePulsar(new PulsarClientBuilder().ServiceUrl(new Uri(Server)));
     Endpoints.PublishAllMessages().ToPulsarTopic(topic + "-reply");
     Endpoints.ListenToPulsarTopic(Guid.NewGuid().ToString(), topic);
 }