Skip to content

Commit b8b39b1

Browse files
committed
👌 Default RabbitMQ Options.
1 parent a9c24f2 commit b8b39b1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/EasyCaching.Bus.RabbitMQ/Configurations/RabbitMQBusOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class RabbitMQBusOptions : BaseRabbitMQOptions
1111
/// Gets or sets the route key.
1212
/// </summary>
1313
/// <value>The route key.</value>
14-
public string RouteKey { get; set; } = "easycaching.subscriber.*";
14+
public string RouteKey { get; set; } = "rmq.queue.undurable.easycaching.subscriber.*";
1515

1616
/// <summary>
1717
/// Gets or sets the name of the queue.

src/EasyCaching.Bus.RabbitMQ/DefaultRabbitMQBus.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class DefaultRabbitMQBus : IEasyCachingBus
4242
/// <summary>
4343
/// The identifier.
4444
/// </summary>
45-
private readonly string _Id;
45+
private readonly string _busId;
4646

4747
/// <summary>
4848
/// Initializes a new instance of the <see cref="T:EasyCaching.Bus.RabbitMQ.DefaultRabbitMQBus"/> class.
@@ -74,7 +74,7 @@ IPooledObjectPolicy<IConnection> _objectPolicy
7474

7575
_pubConnectionPool = new DefaultObjectPool<IConnection>(_objectPolicy);
7676

77-
_Id = Guid.NewGuid().ToString("N");
77+
_busId = Guid.NewGuid().ToString("N");
7878
}
7979

8080
/// <summary>
@@ -144,7 +144,7 @@ public void Subscribe(string topic, Action<EasyCachingMessage> action)
144144
var queueName = string.Empty;
145145
if(string.IsNullOrWhiteSpace(_options.QueueName))
146146
{
147-
queueName = $"easycaching.subscriber.{_Id}";
147+
queueName = $"rmq.queue.undurable.easycaching.subscriber.{_busId}";
148148
}
149149
else
150150
{

src/EasyCaching.Core/Configurations/BaseRabbitMQOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class BaseRabbitMQOptions
2525
/// <summary>
2626
/// Topic exchange name when declare a topic exchange.
2727
/// </summary>
28-
public string TopicExchangeName { get; set; } = "easycaching.exchange";
28+
public string TopicExchangeName { get; set; } = "rmq.exchange.topic.easycaching";
2929

3030
/// <summary>
3131
/// Timeout setting for connection attempts (in milliseconds).

0 commit comments

Comments
 (0)