Пример #1
0
 public IRabbitMqMessageConsumer Create(
     ExchangeDeclareConfiguration exchange,
     QueueDeclareConfiguration queue,
     string connectionName = null)
 {
     Consumer.Initialize(exchange, queue, connectionName);
     return(Consumer);
 }
Пример #2
0
 public void Initialize(
     ExchangeDeclareConfiguration exchange,
     QueueDeclareConfiguration queue,
     string connectionName = null)
 {
     Exchange       = exchange;
     Queue          = queue;
     ConnectionName = connectionName;
     Timer.Start();
 }