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