|
|
@@ -49,7 +49,11 @@ namespace DotNetCore.CAP.RabbitMQ |
|
|
|
_connection = _connectionFactory.CreateConnection(); |
|
|
|
_channel = _connection.CreateModel(); |
|
|
|
_channel.ExchangeDeclare(exchange: _exchageName, type: RabbitMQOptions.ExchangeType); |
|
|
|
_channel.QueueDeclare(_queueName, exclusive: false); |
|
|
|
_channel.QueueDeclare(_queueName, |
|
|
|
durable: true, |
|
|
|
exclusive: false, |
|
|
|
autoDelete: false, |
|
|
|
arguments: new Dictionary<string, object> { { "message-ttl", _rabbitMQOptions.XMessageTTL.TotalMilliseconds } }); |
|
|
|
} |
|
|
|
|
|
|
|
public void Subscribe(IEnumerable<string> topics) |
|
|
|