public class ConsumeConfiguration
{
public QueueConfiguration Queue { get; set; }
public ExchangeConfiguration Exchange { get; set; }
public bool NoAck { get; set; }
public string ConsumerTag { get; set; }
public string RoutingKey { get; set; }
public bool NoLocal { get; set; }
public ushort PrefetchCount { get; set; }
public bool Exclusive { get; set; }
public Dictionary<string, object> Arguments { get; set; }
}
Where Queue and Exchange contains information about types, durability etc. The ConsumerConfiguration should only contain properties for performing the consume. That is, Queue should be replaces with the string QueueName.
The fluent configuration builder should be updated to something like this
The new
ConsumeConfiguration
looks like thisWhere
Queue
andExchange
contains information about types, durability etc. TheConsumerConfiguration
should only contain properties for performing the consume. That is,Queue
should be replaces with the stringQueueName
.The fluent configuration builder should be updated to something like this
But still support declaring exchanges and queues