You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building a message bus library but unfortunately I cannot get the consumer to consume the produced messages. Nothing really happens for some reason and I'm not even sure how to debug what's happening. It doesn't log any messages or so.
What's wrong with it? Why is the consumer not receiving the messages?
Producer/Program.cs
usingContracts;usingNATS.Client;usingSts.MessageBus.Streaming.JetStreams;varoptions=ConnectionFactory.GetDefaultOptions();varconnectionFactory=newConnectionFactory();varconnection=connectionFactory.CreateConnection(options);varproducer=newJetStreamProducer(connection);awaitproducer.PublishAsync("SUBJECT","A",newTest{Title="Hello from title",Message="Hello from message"});
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm building a message bus library but unfortunately I cannot get the consumer to consume the produced messages. Nothing really happens for some reason and I'm not even sure how to debug what's happening. It doesn't log any messages or so.
What's wrong with it? Why is the consumer not receiving the messages?
Producer/Program.cs
Consumer/Program.cs
Code
Beta Was this translation helpful? Give feedback.
All reactions