Hi!
I am trying to run RetailDemo on RabbitMQ transport and found that NSB doesn’t create some required elements like exchanges and queues.
Is there a way to create all required elements automatically?
That is my code
static async Task Main()
{
Console.Title = "Sales";
var endpointConfiguration = new EndpointConfiguration("Sales");
var transport = endpointConfiguration.UseTransport<RabbitMQTransport>();
transport.UseConventionalRoutingTopology();
transport.ConnectionString("host=localhost");
var endpointInstance = await Endpoint.Start(endpointConfiguration)
.ConfigureAwait(false);
Console.WriteLine("Press Enter to exit.");
Console.ReadLine();
await endpointInstance.Stop()
.ConfigureAwait(false);
}