i am trying to create a new rabbitmq stream where my rabbitmq is installed in docker.
Bellow are the steps which i implemented.
installed RabbitMQ in docker under the TCP port 5672
enabled rabbit stream and stream management
installed rabbitmq.stream.client nuget in my project
-
creating connection as below
-
var config = new StreamSystemConfig { UserName = "guest", Password = "guest", VirtualHost = "/" }; // Connect to the broker and create the system object // the entry point for the client. // Create it once and reuse it. var system = await StreamSystem.Create(config); const string stream = "my_first_stream";
when i execute i am getting bellow erro
RabbitMQ.Stream.Client.StreamSystemInitialisationException: 'no endpoints could be reached'
Can anyone please tell me the solution of this error?
Thank you Anil
I wanted to connect to stream and create stream and send messages to stream.