var factory = new ConnectionFactory
{
HostName = "localhost"
};
var connection = factory.CreateConnection();
using var channel = connection.CreateModel();
channel.QueueDeclare(queue: "ecommerce", durable: false, exclusive: false, autoDelete: false, arguments: null);
var json = JsonConvert.SerializeObject(@event);
var body = Encoding.UTF8.GetBytes(json);
channel.BasicPublish(exchange: "", routingKey: "ecommerce", basicProperties: null, body: body);
this is my code to DeclareQueue and send the message there, it doesnot thwors any exxception but still not receiving any events when I am checking it? I have set durable to true, but still not working…