Binding queue using existing cosumerChannel
This commit is contained in:
parent
8bb15ce987
commit
c2e53ed5f1
@ -144,12 +144,9 @@ namespace Microsoft.eShopOnContainers.BuildingBlocks.EventBusRabbitMQ
|
|||||||
_persistentConnection.TryConnect();
|
_persistentConnection.TryConnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
using (var channel = _persistentConnection.CreateModel())
|
_consumerChannel.QueueBind(queue: _queueName,
|
||||||
{
|
exchange: BROKER_NAME,
|
||||||
channel.QueueBind(queue: _queueName,
|
routingKey: eventName);
|
||||||
exchange: BROKER_NAME,
|
|
||||||
routingKey: eventName);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user