According to RabbitMQ documentation:
Set the x-priority argument in the basic.consume method to an integer
value. Consumers which do not specify a value have priority 0.
Larger numbers indicate higher priority, and both positive and
negative numbers can be used.
When you setup consumer you can use ConsumerPriority in this case to set a lower priority
_busControl = Bus.Factory.CreateUsingRabbitMq(cfg =>
{
IRabbitMqHost host = cfg.Host(new Uri(ConfigurationManager.AppSettings["RabbitMQHost"]), h =>
{
h.Username(ConfigurationManager.AppSettings["RabbitMQUsername"]);
h.Password(ConfigurationManager.AppSettings["RabbitMQPassword"]);
});
cfg.ReceiveEndpoint(host, "Audit", e =>
{
e.PrefetchCount = 2;
e.ConsumerPriority = -1;
e.Consumer<AuditConsumer>();
});
});