Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 8f84bd3

Browse files
author
Facundo La Rocca
authored
Private readonly string changed to private const string (#1288)
1 parent 66d81f6 commit 8f84bd3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/BuildingBlocks/EventBus/EventBusRabbitMQ/EventBusRabbitMQ.cs

+1-2
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)