File tree Expand file tree Collapse file tree
src/BuildingBlocks/EventBus/EventBusRabbitMQ Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ namespace Microsoft.eShopOnContainers.BuildingBlocks.EventBusRabbitMQ
2121 public class EventBusRabbitMQ : IEventBus , IDisposable
2222 {
2323 const string BROKER_NAME = "eshop_event_bus" ;
24+ const string AUTOFAC_SCOPE_NAME = "eshop_event_bus" ;
2425
2526 private readonly IRabbitMQPersistentConnection _persistentConnection ;
2627 private readonly ILogger < EventBusRabbitMQ > _logger ;
2728 private readonly IEventBusSubscriptionsManager _subsManager ;
2829 private readonly ILifetimeScope _autofac ;
29- private readonly string AUTOFAC_SCOPE_NAME = "eshop_event_bus" ;
3030 private readonly int _retryCount ;
3131
3232 private IModel _consumerChannel ;
@@ -86,7 +86,6 @@ public void Publish(IntegrationEvent @event)
8686
8787 using ( var channel = _persistentConnection . CreateModel ( ) )
8888 {
89-
9089 _logger . LogTrace ( "Declaring RabbitMQ exchange to publish event: {EventId}" , @event . Id ) ;
9190
9291 channel . ExchangeDeclare ( exchange : BROKER_NAME , type : "direct" ) ;
You can’t perform that action at this time.
0 commit comments