I am trying to figure out how to use Mass Transit correctly, if I don't have any consumers all of my messages are ending up in the _error queue over time. If I have a consumer it all seems to work fine. Obviously I want my messages to hang around until something is ready to consume them.
This is the code I am using:
Bus.Initialize(x =>
{
x.ReceiveFrom("rabbitmq://im-dev01/TestQueue");
x.UseRabbitMqRouting();
});
for (int i = 0; i < 1000; i++)
{
Bus.Instance.Publish(new PlayerGroupMovementMessage { PlayerGroupId = i, AddToGroup = true, ProcessId = 3 });
}