Ejemplo n.º 1
0
 public IRabbitMqMessageConsumer Create(
     ExchangeDeclareConfiguration exchange,
     QueueDeclareConfiguration queue,
     string connectionName = null)
 {
     Consumer.Initialize(exchange, queue, connectionName);
     return(Consumer);
 }
Ejemplo n.º 2
0
 public void Initialize(
     ExchangeDeclareConfiguration exchange,
     QueueDeclareConfiguration queue,
     string connectionName = null)
 {
     Exchange       = exchange;
     Queue          = queue;
     ConnectionName = connectionName;
     Timer.Start();
 }